* [PATCH kvm-unit-tests] x86: cover emulation of reduced MAXPHYADDR
@ 2020-09-25 22:44 Paolo Bonzini
0 siblings, 0 replies; only message in thread
From: Paolo Bonzini @ 2020-09-25 22:44 UTC (permalink / raw)
To: kvm
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.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
x86/unittests.cfg | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index 4fa42fa..bab1cce 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -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
--
2.26.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-25 22:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 22:44 [PATCH kvm-unit-tests] x86: cover emulation of reduced MAXPHYADDR Paolo Bonzini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.