Skip to contentSkip to conversation

access: Enable testing guest MAXPHYADDR < host MAXPHYADDR

PATCH New Mohammed Gamal 1 participant 3 messages Jun 19, 2020 KVM

lore
Share & tools
lore
#0 lore raw

cover access: Enable testing guest MAXPHYADDR < host MAXPHYADDR

Re-enable phys-bits=36 to test guest MAXPHYADDR < host MAXPHYADDR. Also increase timeout for access tests since using NPT=0 may need more time.

Mohammed Gamal (2):
Revert "access: disable phys-bits=36 for now"
unittests.cfg: Increase timeout for access test

 x86/unittests.cfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/2 Revert "access: disable phys-bits=36 for now"

This reverts commit 71de9c93fbdb15978ffa2f290dd120d3005a9292.

Now that guest_maxphyaddr < host_maxphyaddr patches are sent. Revert this change in kvm-unit-test

---
 x86/unittests.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/unittests.cfg +1 -1
index 504e04e..bf0d02e 100644
@@ -116,7 +116,7 @@ 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 host,phys-bits=36
 
 [smap]
 file = smap.flat
Signature · 1 line
2.26.2
#2 lore raw

PATCH 2/2 unittests.cfg: Increase timeout for access test

In reply to Mohammed Gamal

In case of npt=0 on kvm_amd, tests run slower and timeout, so increase the timeout. The tests then do succeed.

---
 x86/unittests.cfg | 1 +
 1 file changed, 1 insertion(+)
x86/unittests.cfg +1 -0
index bf0d02e..bc7184d 100644
@@ -117,6 +117,7 @@ extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline_immed
 file = access.flat
 arch = x86_64
 extra_params = -cpu host,phys-bits=36
+timeout = 180
 
 [smap]
 file = smap.flat
Signature · 1 line
2.26.2