Skip to contentSkip to conversation

vmx: separate VPID tests

PATCH In review Paolo Bonzini 2 participants 2 messages Dec 23, 2021 KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

PATCH 1/1 vmx: separate VPID tests

The VPID tests take quite a long time (about 12 minutes overall), so separate them from vmx_pf_exception_test and do not run vmx_pf_invvpid_test twice.

---
 x86/unittests.cfg | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)
x86/unittests.cfg +23 -2
index f0727f1..5367013 100644
@@ -293,7 +293,7 @@ arch = i386
 
 [vmx]
 file = vmx.flat
-extra_params = -cpu max,+vmx -append "-exit_monitor_from_l2_test -ept_access* -vmx_smp* -vmx_vmcs_shadow_test -atomic_switch_overflow_msrs_test -vmx_init_signal_test -vmx_apic_passthrough_tpr_threshold_test -apic_reg_virt_test -virt_x2apic_mode_test -vmx_pf_exception_test -vmx_pf_no_vpid_test -vmx_pf_vpid_test"
+extra_params = -cpu max,+vmx -append "-exit_monitor_from_l2_test -ept_access* -vmx_smp* -vmx_vmcs_shadow_test -atomic_switch_overflow_msrs_test -vmx_init_signal_test -vmx_apic_passthrough_tpr_threshold_test -apic_reg_virt_test -virt_x2apic_mode_test -vmx_pf_exception_test -vmx_pf_no_vpid_test -vmx_pf_invvpid_test -vmx_pf_vpid_test"
 arch = x86_64
 groups = vmx
 
@@ -362,10 +362,31 @@ groups = vmx
 
 [vmx_pf_exception_test]
 file = vmx.flat
-extra_params = -cpu max,+vmx -append "vmx_pf_exception_test vmx_pf_no_vpid_test vmx_pf_vpid_test vmx_pf_invvpid_test"
+extra_params = -cpu max,+vmx -append "vmx_pf_exception_test"
 arch = x86_64
 groups = vmx nested_exception
 
+[vmx_pf_vpid_test]
+file = vmx.flat
+extra_params = -cpu max,+vmx -append "vmx_pf_vpid_test"
+arch = x86_64
+groups = vmx nested_exception
+timeout = 240
+
+[vmx_pf_invvpid_test]
+file = vmx.flat
+extra_params = -cpu max,+vmx -append "vmx_pf_invvpid_test"
+arch = x86_64
+groups = vmx nested_exception
+timeout = 240
+
+[vmx_pf_no_vpid_test]
+file = vmx.flat
+extra_params = -cpu max,+vmx -append "vmx_pf_no_vpid_test"
+arch = x86_64
+groups = vmx nested_exception
+timeout = 240
+
 [vmx_pf_exception_test_reduced_maxphyaddr]
 file = vmx.flat
 extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off,+vmx -append "vmx_pf_exception_test vmx_pf_no_vpid_test vmx_pf_vpid_test vmx_pf_invvpid_test"
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 45 lines · Paolo Bonzini

The VPID tests take quite a long time (about 12 minutes overall), so separate them from vmx_pf_exception_test and do not run vmx_pf_invvpid_test twice.

---
 x86/unittests.cfg | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)
x86/unittests.cfg +16 -2
index f0727f1..5367013 100644
@@ -293,7 +293,7 @@ arch = i386
 
 [vmx]
 file = vmx.flat
-extra_params = -cpu max,+vmx -append "-exit_monitor_from_l2_test -ept_access* -vmx_smp* -vmx_vmcs_shadow_test -atomic_switch_overflow_msrs_test -vmx_init_signal_test -vmx_apic_passthrough_tpr_threshold_test -apic_reg_virt_test -virt_x2apic_mode_test -vmx_pf_exception_test -vmx_pf_no_vpid_test -vmx_pf_vpid_test"
+extra_params = -cpu max,+vmx -append "-exit_monitor_from_l2_test -ept_access* -vmx_smp* -vmx_vmcs_shadow_test -atomic_switch_overflow_msrs_test -vmx_init_signal_test -vmx_apic_passthrough_tpr_threshold_test -apic_reg_virt_test -virt_x2apic_mode_test -vmx_pf_exception_test -vmx_pf_no_vpid_test -vmx_pf_invvpid_test -vmx_pf_vpid_test"
 arch = x86_64
 groups = vmx
 
@@ -362,10 +362,31 @@ groups = vmx
 
 [vmx_pf_exception_test]
 file = vmx.flat
-extra_params = -cpu max,+vmx -append "vmx_pf_exception_test vmx_pf_no_vpid_test vmx_pf_vpid_test vmx_pf_invvpid_test"
+extra_params = -cpu max,+vmx -append "vmx_pf_exception_test"
 arch = x86_64
 groups = vmx nested_exception
 
+[vmx_pf_vpid_test]
+file = vmx.flat
+extra_params = -cpu max,+vmx -append "vmx_pf_vpid_test"
+arch = x86_64
+groups = vmx nested_exception
+timeout = 240
+
+[vmx_pf_invvpid_test]
+file = vmx.flat
+extra_params = -cpu max,+vmx -append "vmx_pf_invvpid_test"
+arch = x86_64
+groups = vmx nested_exception
+timeout = 240
+

x86/unittests.cfg groups = vmx · line 392

Quoted 10 lines
x86/unittests.cfg +7 -0
+[vmx_pf_no_vpid_test]
+file = vmx.flat
+extra_params = -cpu max,+vmx -append "vmx_pf_no_vpid_test"
+arch = x86_64
+groups = vmx nested_exception
+timeout = 240
+
 [vmx_pf_exception_test_reduced_maxphyaddr]
 file = vmx.flat
 extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off,+vmx -append "vmx_pf_exception_test vmx_pf_no_vpid_test vmx_pf_vpid_test vmx_pf_invvpid_test"

I suffered from this exact problem today, so thanks a lot!

Best regards,
Maxim Levitsky