[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 05/15] accel/kvm: Simplify user-mode #ifdef'ry
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 05/15] accel/kvm: Simplify user-mode #ifdef'ry |
Date: |
Mon, 17 May 2021 13:55:15 +0200 |
Now than we only build this stub with system emulation,
remove the user-mode #ifdef'ry.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
accel/stubs/kvm-stub.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c
index 6bda6c8c925..6ae1ff62607 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;
@@ -81,7 +78,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;
@@ -153,5 +149,3 @@ bool kvm_cpu_check_are_resettable(void)
{
g_assert_not_reached();
}
-
-#endif
--
2.26.3
- [RFC PATCH 00/15] softmmu: Make various objects target agnostic, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 01/15] accel/kvm: Add more stubs, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 02/15] accel/whpx: Simplify #ifdef'ry, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 03/15] accel/hax: Simplify #ifdef'ry, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 04/15] accel: Only use TCG when building user-mode emulation, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 05/15] accel/kvm: Simplify user-mode #ifdef'ry,
Philippe Mathieu-Daudé <=
- [RFC PATCH 06/15] hw/acpi/memory_hotplug: Remove unused 'hw/acpi/pc-hotplug.h' header, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 08/15] softmmu/cpu-timers: Remove unused 'exec/exec-all.h' header, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 09/15] softmmu/runstate: Clean headers, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 07/15] softmmu/globals: Remove unused 'hw/i386/*' headers, Philippe Mathieu-Daudé, 2021/05/17
- [RFC PATCH 10/15] exec/gdbstub: Make gdb_exit() / gdb_set_stop_cpu() target agnostic, Philippe Mathieu-Daudé, 2021/05/17