Skip to content

Commit

Permalink
ref count
Browse files Browse the repository at this point in the history
Signed-off-by: Muminul Islam <[email protected]>
  • Loading branch information
russell-islam committed Mar 29, 2024
1 parent d9ec6ec commit 6cdb5a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mshv-bindings/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions mshv-ioctls/src/ioctls/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6cdb5a1

Please sign in to comment.