mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Preserving the guest clock across pause/resume and snapshot/restore is currently open-coded in the VMM against the x86-only get_clock/set_clock. aarch64 needs the same correction but via a different mechanism (i.e. the architected counter, CNTVCT). Having a common backend-agnostic interface that VMM can drive uniformly allows us to keep the architecture details behind the Hypervisor abstraction. This commit only introduces the abstraction while the future commits will actually move the implementation to use it. Use this opportunity to fix the full path to get SystemTime as well. Suggested-by: Sebastien Boeuf <sboeuf@meta.com> Signed-off-by: Atish Patra <atishp@meta.com>