diff options
author | Scott Wood <scottwood@freescale.com> | 2013-06-12 15:32:51 -0500 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-07-01 01:11:14 +0200 |
commit | d85937e683f6ff4d68293cb24c780fb1f6820d2c (patch) | |
tree | d5e22e6fe43fcb1d004d39d3974241e8fd1d7aa7 /target-ppc/kvm-stub.c | |
parent | 4be1db86060d803f2335c08a483218eb6a8bd9eb (diff) | |
download | qemu-d85937e683f6ff4d68293cb24c780fb1f6820d2c.zip qemu-d85937e683f6ff4d68293cb24c780fb1f6820d2c.tar.gz qemu-d85937e683f6ff4d68293cb24c780fb1f6820d2c.tar.bz2 |
kvm/openpic: in-kernel mpic support
Enables support for the in-kernel MPIC that thas been merged into the
KVM next branch. This includes irqfd/KVM_IRQ_LINE support from Alex
Graf (along with some other improvements).
Note from Alex regarding kvm_irqchip_create():
On x86, one would call kvm_irqchip_create() to initialize an
in-kernel interrupt controller. That function then goes ahead and
initializes global capability variables as well as the default irq
routing table.
On ppc, we can't call kvm_irqchip_create() because we can have
different types of interrupt controllers. So we want to do all the
things that function would do for us in the in-kernel device init
handler.
Signed-off-by: Scott Wood <scottwood@freescale.com>
[agraf: squash in kvm_irqchip_commit_routes patch, fix non-kvm build,
fix ppcemb]
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/kvm-stub.c')
-rw-r--r-- | target-ppc/kvm-stub.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-ppc/kvm-stub.c b/target-ppc/kvm-stub.c index 0f5c27d..ee3f5d2 100644 --- a/target-ppc/kvm-stub.c +++ b/target-ppc/kvm-stub.c @@ -10,3 +10,9 @@ * */ #include "qemu-common.h" +#include "hw/ppc/openpic.h" + +int kvm_openpic_connect_vcpu(DeviceState *d, CPUState *cs) +{ + return -EINVAL; +} |