Reading the memory mapped page with x2apic is a bug. Use the generic reader instead. An alternative would be to disable x2apic. Signed-off-by: Radim Krčmář <rkrcmar@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 1f439522cad8..7be016ce4fbc 100644 --- a/x86/vmx_tests.c +++ b/x86/vmx_tests.c @@ -1031,7 +1031,7 @@ static int ept_init_common(bool have_ad) install_ept(pml4, (unsigned long)data_page1, (unsigned long)data_page2, EPT_RA | EPT_WA | EPT_EA); - apic_version = *((u32 *)0xfee00030UL); + apic_version = apic_read(APIC_LVR); return VMX_TEST_START; } -- 2.13.2