commit | c5cc421ba3219b90f11d151bc55f1608c12830fa | [log] [tgz] |
---|---|---|
author | Gleb Natapov <gleb@redhat.com> | Sun Aug 05 15:58:30 2012 +0300 |
committer | Avi Kivity <avi@redhat.com> | Mon Aug 06 19:00:43 2012 +0300 |
tree | fa21392981697bbc01ed14c8aab98653622c5a33 | |
parent | a181dc14ed23f7a499542ff4c78532b5f24bb18f [diff] [blame] |
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>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 3cafbb1..29fa18d 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c
@@ -4903,6 +4903,7 @@ if (cpu_has_xsave) host_xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); + kvm_lapic_init(); return 0; out: