Skip to contentSkip to conversation

x86: cover emulation of reduced MAXPHYADDR

PATCH New Paolo Bonzini 1 participant 1 message Sep 25, 2020 KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

PATCH 1/1 x86: cover emulation of reduced MAXPHYADDR

Add a variant of x86/access.flat that covers the emulation of guest-MAXPHYADDR < host-MAXPHYADDR. Use an old-ish CPU model because to speed up the test, as Ivy Bridge did not have SMEP and PKU.

---
 x86/unittests.cfg | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
x86/unittests.cfg +8 -1
index 4fa42fa..bab1cce 100644
@@ -116,9 +116,16 @@ extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline_immed
 [access]
 file = access.flat
 arch = x86_64
-extra_params = -cpu host,host-phys-bits
+extra_params = -cpu max
 timeout = 180
 
+[access-reduced-maxphyaddr]
+file = access.flat
+arch = x86_64
+extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off
+timeout = 180
+check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y
+
 [smap]
 file = smap.flat
 extra_params = -cpu host
Signature · 1 line
2.26.2