We used MMIO (xAPIC) for x2APIC.
This is the same as using xAPIC in globally disabled mode.

Signed-off-by: Radim Krčmář <rkrc...@redhat.com>
---
 lib/x86/apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/x86/apic.c b/lib/x86/apic.c
index 6876d85fac95..9c42c4d0a4fc 100644
--- a/lib/x86/apic.c
+++ b/lib/x86/apic.c
@@ -70,7 +70,7 @@ static void x2apic_icr_write(u32 val, u32 dest)
 
 static uint32_t x2apic_id(void)
 {
-    return xapic_read(APIC_ID);
+    return x2apic_read(APIC_ID);
 }
 
 static const struct apic_ops x2apic_ops = {
-- 
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to