kvm/ppc/mpic: add KVM_CAP_IRQ_MPIC
authorScott Wood <scottwood@freescale.com>
Fri, 12 Apr 2013 14:08:47 +0000 (14:08 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:27:24 +0000 (20:27 +0200)
commiteb1e4f43e0f47f2655372c7d32c43db9711c278e
treeac084d48a5590f6ca712242e0ca139abf57250a5
parent5df554ad5b7522ea62b0ff9d5be35183494efc21
kvm/ppc/mpic: add KVM_CAP_IRQ_MPIC

Enabling this capability connects the vcpu to the designated in-kernel
MPIC.  Using explicit connections between vcpus and irqchips allows
for flexibility, but the main benefit at the moment is that it
simplifies the code -- KVM doesn't need vm-global state to remember
which MPIC object is associated with this vm, and it doesn't need to
care about ordering between irqchip creation and vcpu creation.

Signed-off-by: Scott Wood <scottwood@freescale.com>
[agraf: add stub functions for kvmppc_mpic_{dis,}connect_vcpu]
Signed-off-by: Alexander Graf <agraf@suse.de>
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/mpic.c
arch/powerpc/kvm/powerpc.c
include/uapi/linux/kvm.h