hypervisor: implement clock data for MSHV

This PR implement time reference for Microsoft
Hypervisor based partition/VM.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2024-04-17 11:42:55 -07:00
committed by Bo Chen
parent bf6c9e6447
commit 4847f5c4f6
3 changed files with 38 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ pub enum ClockData {
#[cfg(feature = "kvm")]
Kvm(kvm_bindings::kvm_clock_data),
#[cfg(feature = "mshv")]
Mshv, /* MSHV does not support ClockData yet */
Mshv(mshv::MshvClockData),
}
#[cfg(target_arch = "x86_64")]