Skip to content

Commit 0985748

Browse files
committed
mshv-ioctls: enable PMU for arm64 guests
Expose PMU to arm64 guests. Fixes the test_pmu_on testcase in CLH. Signed-off-by: Anirudh Rayabharam <[email protected]>
1 parent be0048d commit 0985748

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

mshv-ioctls/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
### Changed
77
* [[254]](https://github.com/rust-vmm/mshv/pull/254) Enable RDRAND support for x86 guests
8+
* [[253]](https://github.com/rust-vmm/mshv/pull/253) Enable PMU for arm64 guests
89

910
### Deprecated
1011

mshv-ioctls/src/ioctls/system.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ fn make_partition_create_arg(vm_type: VmType) -> mshv_create_partition_v2 {
109109
proc_features.__bindgen_anon_1.set_fp_hp(0);
110110
proc_features.__bindgen_anon_1.set_adv_simd(0);
111111
proc_features.__bindgen_anon_1.set_adv_simd_hp(0);
112+
113+
proc_features.__bindgen_anon_1.set_pmu_v3(0);
112114
}
113115

114116
// SAFETY: access union fields

0 commit comments

Comments
 (0)