]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 16 Dec 2016 15:10:02 +0000 (16:10 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:42:47 +0000 (14:42 +0100)
commit49776faf93f8074bb4990beac04781a9507d3650
tree6a045c43997415ab5d5ff1fa8338908d7a83cc8c
parent35e6eaa3df55822d0cb1df3bf08e6cb816737131
KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it
just complicated the code.
Add a separate state for the irqchip mode.

Reviewed-by: David Hildenbrand <david@redhat.com>
[Used Paolo's version of condition in irqchip_in_kernel().]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/irq.h
arch/x86/kvm/x86.c