diff options
author | Igor Mammedov <imammedo@redhat.com> | 2013-04-23 10:29:35 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-05-01 13:04:17 +0200 |
commit | c4cfef5e8a6371aa5e6577f2b980315c2dc46cfb (patch) | |
tree | 7549f29632a7f6ef6f3b2f2e31a8edf7243e92a1 /kvm-stub.c | |
parent | e9016ee2bda1b7757072b856b2196f691aee3388 (diff) | |
download | qemu-c4cfef5e8a6371aa5e6577f2b980315c2dc46cfb.tar.gz qemu-c4cfef5e8a6371aa5e6577f2b980315c2dc46cfb.tar.bz2 qemu-c4cfef5e8a6371aa5e6577f2b980315c2dc46cfb.zip |
cpu: Make kvm-stub.o available outside softmmu
It will provide stubs for *-user targets once softmmu-specific calls
are attempted from common CPU code.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'kvm-stub.c')
-rw-r--r-- | kvm-stub.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kvm-stub.c b/kvm-stub.c index 5f52186ae7..b22837828e 100644 --- a/kvm-stub.c +++ b/kvm-stub.c @@ -12,10 +12,13 @@ #include "qemu-common.h" #include "hw/hw.h" -#include "hw/pci/msi.h" #include "cpu.h" #include "sysemu/kvm.h" +#ifndef CONFIG_USER_ONLY +#include "hw/pci/msi.h" +#endif + KVMState *kvm_state; bool kvm_kernel_irqchip; bool kvm_async_interrupts_allowed; @@ -111,6 +114,7 @@ int kvm_on_sigbus(int code, void *addr) return 1; } +#ifndef CONFIG_USER_ONLY int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg) { return -ENOSYS; @@ -134,3 +138,4 @@ int kvm_irqchip_remove_irqfd_notifier(KVMState *s, EventNotifier *n, int virq) { return -ENOSYS; } +#endif |