summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-08-05 14:58:30 +0200
committerAvi Kivity <avi@redhat.com>2012-08-06 18:00:43 +0200
commitc5cc421ba3219b90f11d151bc55f1608c12830fa (patch)
treefa21392981697bbc01ed14c8aab98653622c5a33 /arch/x86/kvm/x86.c
parentjump_label: Export jump_label_rate_limit() (diff)
downloadlinux-c5cc421ba3219b90f11d151bc55f1608c12830fa.tar.xz
linux-c5cc421ba3219b90f11d151bc55f1608c12830fa.zip
KVM: use jump label to optimize checking for HW enabled APIC in APIC_BASE MSR
Usually all APICs are HW enabled so the check can be optimized out. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3cafbb12ae05..29fa18d27e6e 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4903,6 +4903,7 @@ int kvm_arch_init(void *opaque)
if (cpu_has_xsave)
host_xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK);
+ kvm_lapic_init();
return 0;
out: