APIC code has a lot of checks for apic presence and apic HW/SW enable state. Most common configuration is when each vcpu has in kernel apic and it is fully enabled. This path series uses jump labels to turn checks to nops in the common case. Gleb Natapov (8): KVM: clean up kvm_(set|get)_apic_base KVM: use kvm_lapic_set_base() to change apic_base KVM: mark apic enabled on start up. Export jump_label_rate_limit() KVM: use jump label to optimize checking for HW enabled APIC in APIC_BASE MSR. KVM: use jump label to optimize checking for SW enabled apic in spurious interrupt register KVM: use jump label to optimize checking for in kernel local apic presence. KVM: inline kvm_apic_present() and kvm_lapic_enabled() arch/x86/kvm/lapic.c | 211 +++++++++++++++++++++++++++----------------------- arch/x86/kvm/lapic.h | 46 ++++++++++- arch/x86/kvm/x86.c | 18 ++--- arch/x86/kvm/x86.h | 1 + kernel/jump_label.c | 1 + 5 files changed, 170 insertions(+), 107 deletions(-) -- 1.7.10 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html