[PATCH 0/3] KVM: x86: consolidate "has lapic" checks

From: Paolo Bonzini
Date: Mon Feb 08 2016 - 11:18:38 EST


This cleans up "has in-kernel LAPIC" checks in various ways,
especially avoiding checking things twice and providing a single
way to do the test.

Paolo

Paolo Bonzini (3):
KVM: APIC: remove unnecessary double checks on APIC existence
KVM: x86: consolidate "has lapic" checks into irq.c
KVM: x86: consolidate different ways to test for in-kernel LAPIC

arch/x86/kvm/irq.c | 9 ++++++---
arch/x86/kvm/irq.h | 8 --------
arch/x86/kvm/lapic.c | 41 ++++++++++++-----------------------------
arch/x86/kvm/lapic.h | 8 ++++----
arch/x86/kvm/pmu.c | 2 +-
arch/x86/kvm/x86.c | 17 +++++++++--------
6 files changed, 32 insertions(+), 53 deletions(-)

--
1.8.3.1