diff mbox series

[kvm-unit-tests,1/4] x86: vmx_tests: gate load guest PAT tests on the correct bit

Message ID 1569428066-27894-2-git-send-email-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series test GUEST_EFER field and address size controls | expand

Commit Message

Paolo Bonzini Sept. 25, 2019, 4:14 p.m. UTC
The tests should check the "load PAT" entry control,
not the exit control.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 x86/vmx_tests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
index a447d39..b404219 100644
--- a/x86/vmx_tests.c
+++ b/x86/vmx_tests.c
@@ -7203,7 +7203,7 @@  static void test_load_guest_pat(void)
 	/*
 	 * "load IA32_PAT" VM-entry control
 	 */
-	if (!(ctrl_exit_rev.clr & ENT_LOAD_PAT)) {
+	if (!(ctrl_enter_rev.clr & ENT_LOAD_PAT)) {
 		printf("\"Load-IA32-PAT\" entry control not supported\n");
 		return;
 	}