From 6cdb5a10f6b3a7886b63b48086530aa20d1f0f9e Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Fri, 29 Mar 2024 12:54:42 -0700 Subject: [PATCH] ref count Signed-off-by: Muminul Islam --- mshv-bindings/src/bindings.rs | 2 ++ mshv-ioctls/src/ioctls/vm.rs | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/mshv-bindings/src/bindings.rs b/mshv-bindings/src/bindings.rs index ca461651..bae3a7dd 100644 --- a/mshv-bindings/src/bindings.rs +++ b/mshv-bindings/src/bindings.rs @@ -8328,6 +8328,8 @@ pub const hv_partition_property_code_HV_PARTITION_PROPERTY_CPU_GROUP_ID: hv_partition_property_code = 131076; pub const hv_partition_property_code_HV_PARTITION_PROPERTY_TIME_FREEZE: hv_partition_property_code = 196611; +pub const hv_partition_property_code_HV_PARTITION_PROPERTY_REFERENCE_TIME: hv_partition_property_code = + 196613; pub const hv_partition_property_code_HV_PARTITION_PROPERTY_DEBUG_CHANNEL_ID: hv_partition_property_code = 262144; pub const hv_partition_property_code_HV_PARTITION_PROPERTY_VIRTUAL_TLB_PAGE_COUNT: diff --git a/mshv-ioctls/src/ioctls/vm.rs b/mshv-ioctls/src/ioctls/vm.rs index 6b912651..b06b1fea 100644 --- a/mshv-ioctls/src/ioctls/vm.rs +++ b/mshv-ioctls/src/ioctls/vm.rs @@ -836,6 +836,13 @@ mod tests { val == hv_unimplemented_msr_action_HV_UNIMPLEMENTED_MSR_ACTION_IGNORE_WRITE_READ_ZERO .into() ); + val = vm + .get_partition_property( + hv_partition_property_code_HV_PARTITION_PROPERTY_REFERENCE_TIME, + ) + .unwrap(); + println!("Ref Time: {val}"); + } #[test] fn test_irqfd() {