diff options
author | Gleb Natapov <gleb@redhat.com> | 2012-08-05 15:58:30 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-08-06 19:00:43 +0300 |
commit | c5cc421ba3219b90f11d151bc55f1608c12830fa (patch) | |
tree | fa21392981697bbc01ed14c8aab98653622c5a33 /arch/x86/kvm/x86.c | |
parent | a181dc14ed23f7a499542ff4c78532b5f24bb18f (diff) | |
download | lwn-c5cc421ba3219b90f11d151bc55f1608c12830fa.tar.gz lwn-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.c | 1 |
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: |