summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/irq.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2017-04-07 10:50:20 +0200
committerRadim Krčmář <rkrcmar@redhat.com>2017-04-12 20:17:13 +0200
commit8bf463f3ba0eefd2c808fc22c005fc95f1ad48fe (patch)
tree8d10704c14e4940f2f51e9dc40050e40174a912f /arch/x86/kvm/irq.h
parent637e3f86faf97a930f1ac4c3f79fd667addae9e8 (diff)
downloadlinux-8bf463f3ba0eefd2c808fc22c005fc95f1ad48fe.tar.gz
linux-8bf463f3ba0eefd2c808fc22c005fc95f1ad48fe.tar.bz2
linux-8bf463f3ba0eefd2c808fc22c005fc95f1ad48fe.zip
KVM: x86: check against irqchip_mode in kvm_set_routing_entry()
Let's replace the checks for pic_in_kernel() and ioapic_in_kernel() by checks against irqchip_mode. Also make sure that creation of any route is only possible if we have an lapic in kernel (irqchip_in_kernel()) or if we are currently inititalizing the irqchip. This is necessary to switch pic_in_kernel() and ioapic_in_kernel() to irqchip_mode, too. Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm/irq.h')
0 files changed, 0 insertions, 0 deletions