diff options
author | David Hildenbrand <david@redhat.com> | 2017-04-07 10:50:25 +0200 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-04-12 20:17:13 +0200 |
commit | 0bceb15ad15e9374387688ced76c1ac5f5eb6e14 (patch) | |
tree | 059681ede1a52be8f301c77e08e4610973a935bf /arch/x86/kvm/ioapic.c | |
parent | 0191e92d84eefe6522a4546b0dfb69393835b168 (diff) | |
download | lwn-0bceb15ad15e9374387688ced76c1ac5f5eb6e14.tar.gz lwn-0bceb15ad15e9374387688ced76c1ac5f5eb6e14.zip |
KVM: x86: use ioapic_in_kernel() to check for ioapic existence
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm/ioapic.c')
-rw-r--r-- | arch/x86/kvm/ioapic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/ioapic.c b/arch/x86/kvm/ioapic.c index a433317d5787..da66650e3313 100644 --- a/arch/x86/kvm/ioapic.c +++ b/arch/x86/kvm/ioapic.c @@ -268,9 +268,7 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, ulong *ioapic_handled_vectors) void kvm_vcpu_request_scan_ioapic(struct kvm *kvm) { - struct kvm_ioapic *ioapic = kvm->arch.vioapic; - - if (!ioapic) + if (!ioapic_in_kernel(kvm)) return; kvm_make_scan_ioapic_request(kvm); } |