The tests should check the "load PAT" entry control, not the exit control. 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 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; } -- 1.8.3.1