KVM: use jump label to optimize checking for HW enabled APIC in APIC_BASE MSR
authorGleb Natapov <gleb@redhat.com>
Sun, 5 Aug 2012 12:58:30 +0000 (15:58 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 6 Aug 2012 16:00:43 +0000 (19:00 +0300)
commitc5cc421ba3219b90f11d151bc55f1608c12830fa
treefa21392981697bbc01ed14c8aab98653622c5a33
parenta181dc14ed23f7a499542ff4c78532b5f24bb18f
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>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/x86.c