[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 01/15] accel/kvm: Add more stubs
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 01/15] accel/kvm: Add more stubs |
Date: |
Mon, 17 May 2021 13:55:11 +0200 |
To be able to make softmmu/cpus.c not target-specific, we need to
add two more KVM stubs, to avoid:
/usr/bin/ld: libcommon.fa.p/softmmu_cpus.c.o: in function
`cpu_thread_is_idle':
softmmu/cpus.c:85: undefined reference to `kvm_halt_in_kernel_allowed'
/usr/bin/ld: libcommon.fa.p/softmmu_cpus.c.o: in function
`cpu_check_are_resettable':
include/sysemu/hw_accel.h:28: undefined reference to
`kvm_cpu_check_are_resettable'
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
accel/stubs/kvm-stub.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c
index 5b1d00a2224..6bda6c8c925 100644
--- a/accel/stubs/kvm-stub.c
+++ b/accel/stubs/kvm-stub.c
@@ -20,6 +20,7 @@
KVMState *kvm_state;
bool kvm_kernel_irqchip;
bool kvm_async_interrupts_allowed;
+bool kvm_halt_in_kernel_allowed;
bool kvm_eventfds_allowed;
bool kvm_irqfds_allowed;
bool kvm_resamplefds_allowed;
@@ -147,4 +148,10 @@ bool kvm_arm_supports_user_irq(void)
{
return false;
}
+
+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é <=
- [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é, 2021/05/17
- [RFC PATCH 06/15] hw/acpi/memory_hotplug: Remove unused 'hw/acpi/pc-hotplug.h' header, Philippe Mathieu-Daudé, 2021/05/17