Skip to content

Commit 1a11c92

Browse files
anirudhrbNunoDasNeves
authored andcommitted
mshv-ioctls: enable FP & AdvSIMD for arm64 guests
Without this guest userspace is dysfunctional (random segfaults) since userspace is generally compiled with FP/SIMD enabled. Signed-off-by: Anirudh Rayabharam <[email protected]>
1 parent 842b84c commit 1a11c92

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mshv-ioctls/src/ioctls/system.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ fn make_partition_create_arg(vm_type: VmType) -> mshv_create_partition_v2 {
103103
unsafe {
104104
// This must always be enabled for ARM64 guests.
105105
proc_features.__bindgen_anon_1.set_gic_v3v4(0u64);
106+
107+
proc_features.__bindgen_anon_1.set_fp(0);
108+
proc_features.__bindgen_anon_1.set_fp_hp(0);
109+
proc_features.__bindgen_anon_1.set_adv_simd(0);
110+
proc_features.__bindgen_anon_1.set_adv_simd_hp(0);
106111
}
107112

108113
// SAFETY: access union fields

0 commit comments

Comments
 (0)