summaryrefslogtreecommitdiff
path: root/kvm-stub.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-05-17 10:32:33 -0300
committerAvi Kivity <avi@redhat.com>2012-05-21 19:22:49 +0300
commit92b4e489822d2126440f7645b116ebd5f63c0ef7 (patch)
tree9dc8caf1eb20642467492d1915fe354b2a5e5f10 /kvm-stub.c
parent1df186df3507f25f7e0503e0c2a761c753a0bf17 (diff)
downloadqemu-92b4e489822d2126440f7645b116ebd5f63c0ef7.tar.gz
qemu-92b4e489822d2126440f7645b116ebd5f63c0ef7.tar.bz2
qemu-92b4e489822d2126440f7645b116ebd5f63c0ef7.zip
kvm: Introduce kvm_irqchip_add_msi_route
Add a service that establishes a static route from a virtual IRQ line to an MSI message. Will be used for IRQFD and device assignment. As we will use this service outside of CONFIG_KVM protected code, stub it properly. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kvm-stub.c')
-rw-r--r--kvm-stub.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvm-stub.c b/kvm-stub.c
index 47c573d6f3..db3a7dc183 100644
--- a/kvm-stub.c
+++ b/kvm-stub.c
@@ -12,10 +12,13 @@
#include "qemu-common.h"
#include "hw/hw.h"
+#include "hw/msi.h"
#include "cpu.h"
#include "gdbstub.h"
#include "kvm.h"
+KVMState *kvm_state;
+
int kvm_init_vcpu(CPUArchState *env)
{
return -ENOSYS;
@@ -128,3 +131,8 @@ int kvm_on_sigbus(int code, void *addr)
{
return 1;
}
+
+int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg)
+{
+ return -ENOSYS;
+}