KVM: x86: make pic setup code look like ioapic setup
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 16 Dec 2016 15:10:03 +0000 (16:10 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 Jan 2017 13:45:28 +0000 (14:45 +0100)
commit099413664c71fcf9d0099eba4f8a4dd59653d5a3
tree77985de2e54850a188fa11936a6f5fa8145d0628
parent49776faf93f8074bb4990beac04781a9507d3650
KVM: x86: make pic setup code look like ioapic setup

We don't treat kvm->arch.vpic specially anymore, so the setup can look
like ioapic.  This gets a bit more information out of return values.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8259.c
arch/x86/kvm/irq.h
arch/x86/kvm/x86.c