[PATCH kvm-unit-tests] vmx_tests: use enter_guest if guest state is valid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change one remaining call site where the guest state is valid as far as
PAT is concerned; we should abort on both an early vmentry failure
as well as an invalid guest state.

Suggested-by: Krish Sadhukhan <krish.sadhukhan@xxxxxxxxxx>
Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
 x86/vmx_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
index a0b3639..b9bb169 100644
--- a/x86/vmx_tests.c
+++ b/x86/vmx_tests.c
@@ -6735,7 +6735,7 @@ static void test_pat(u32 field, const char * field_name, u32 ctrl_field,
 				report_prefix_pop();
 
 			} else {	// GUEST_PAT
-				enter_guest_with_invalid_guest_state();
+				enter_guest();
 				report_guest_pat_test("ENT_LOAD_PAT enabled",
 						       VMX_VMCALL, val);
 			}
-- 
1.8.3.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux