aboutsummaryrefslogtreecommitdiff
path: root/accel/stubs
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-05-16 20:11:48 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-03-06 13:15:42 +0100
commitf94bee49d2f391a8bf1b1f9a3353b7b9fdb8ca20 (patch)
tree7cdf57f9ba67f66360881ae16391602da7a23c6e /accel/stubs
parent82bd4ca37cb0dfa65e00dc54ca103940279d98b5 (diff)
downloadqemu-f94bee49d2f391a8bf1b1f9a3353b7b9fdb8ca20.zip
qemu-f94bee49d2f391a8bf1b1f9a3353b7b9fdb8ca20.tar.gz
qemu-f94bee49d2f391a8bf1b1f9a3353b7b9fdb8ca20.tar.bz2
accel/kvm: Simplify user-mode #ifdef'ry
Now than we only build this stub with system emulation, remove the user-mode #ifdef'ry. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220207075426.81934-8-f4bug@amsat.org>
Diffstat (limited to 'accel/stubs')
-rw-r--r--accel/stubs/kvm-stub.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c
index 5319573..7e0fb88 100644
--- a/accel/stubs/kvm-stub.c
+++ b/accel/stubs/kvm-stub.c
@@ -12,10 +12,7 @@
#include "qemu/osdep.h"
#include "sysemu/kvm.h"
-
-#ifndef CONFIG_USER_ONLY
#include "hw/pci/msi.h"
-#endif
KVMState *kvm_state;
bool kvm_kernel_irqchip;
@@ -80,7 +77,6 @@ int kvm_on_sigbus(int code, void *addr)
return 1;
}
-#ifndef CONFIG_USER_ONLY
int kvm_irqchip_add_msi_route(KVMState *s, int vector, PCIDevice *dev)
{
return -ENOSYS;
@@ -152,4 +148,3 @@ bool kvm_dirty_ring_enabled(void)
{
return false;
}
-#endif