KVM: use jump label to optimize checking for in kernel local apic presence
authorGleb Natapov <gleb@redhat.com>
Sun, 5 Aug 2012 12:58:32 +0000 (15:58 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 6 Aug 2012 16:00:44 +0000 (19:00 +0300)
commit54e9818f3903902a4ea3046035739b8770880092
tree25dbf8dfe2df2537a0463d9fafb8620cdd6f1bb2
parentf8c1ea103947038b7197bdd4c8451886a58af0c0
KVM: use jump label to optimize checking for in kernel local apic presence

Usually all vcpus have local apic pointer initialized, so the check may
be completely skipped.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h