KVM: x86: introduce lapic_in_kernel
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jul 2015 10:05:37 +0000 (12:05 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 13:06:25 +0000 (15:06 +0200)
commit35754c987f252e859bfa390a6816e85563afe79d
treecfb0a2d85738ea20b4421a13c2c5a8313b65f69d
parentd50ab6c1a2b24e12d3012d7beb343eba5b94a6ca
KVM: x86: introduce lapic_in_kernel

Avoid pointer chasing and memory barriers, and simplify the code
when split irqchip (LAPIC in kernel, IOAPIC/PIC in userspace)
is introduced.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/irq.c
arch/x86/kvm/irq.h
arch/x86/kvm/lapic.c
arch/x86/kvm/mmu.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c