KVM: x86: consolidate different ways to test for in-kernel LAPIC
Different pieces of code checked for vcpu->arch.apic being (non-)NULL, or used kvm_vcpu_has_lapic (more optimized) or lapic_in_kernel. Replace everything with lapic_in_kernel's name and kvm_vcpu_has_lapic's implementation. Reviewed-by:Radim Krčmář <rkrcmar@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/kvm/irq.h 0 additions, 8 deletionsarch/x86/kvm/irq.h
- arch/x86/kvm/lapic.c 8 additions, 8 deletionsarch/x86/kvm/lapic.c
- arch/x86/kvm/lapic.h 4 additions, 4 deletionsarch/x86/kvm/lapic.h
- arch/x86/kvm/pmu.c 1 addition, 1 deletionarch/x86/kvm/pmu.c
- arch/x86/kvm/x86.c 9 additions, 8 deletionsarch/x86/kvm/x86.c
Loading
Please register or sign in to comment