[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 04/13] accel/hvf: Remove pointless assertion
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v4 04/13] accel/hvf: Remove pointless assertion |
Date: |
Wed, 23 Mar 2022 18:17:42 +0100 |
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
Both the comment and the hvf_enabled() check are duplicated
at the beginning of hvf_cpu_thread_fn(), which is the thread
callback created by hvf_start_vcpu_thread(). Remove.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
accel/hvf/hvf-accel-ops.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c
index 54457c76c2..5c33dc602e 100644
--- a/accel/hvf/hvf-accel-ops.c
+++ b/accel/hvf/hvf-accel-ops.c
@@ -446,12 +446,6 @@ static void hvf_start_vcpu_thread(CPUState *cpu)
{
char thread_name[VCPU_THREAD_NAME_SIZE];
- /*
- * HVF currently does not support TCG, and only runs in
- * unrestricted-guest mode.
- */
- assert(hvf_enabled());
-
cpu->thread = g_malloc0(sizeof(QemuThread));
cpu->halt_cond = g_malloc0(sizeof(QemuCond));
qemu_cond_init(cpu->halt_cond);
--
2.35.1
- [PATCH v4 00/13] accel: Fix vCPU memory leaks, Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 01/13] cpu: Free cpu->cpu_ases in cpu_address_space_destroy(), Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 02/13] target/i386/kvm: Free xsave_buf when destroying vCPU, Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 03/13] target/i386/hvf: Free resources when vCPU is destroyed, Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 04/13] accel/hvf: Remove pointless assertion,
Philippe Mathieu-Daudé <=
- [PATCH v4 05/13] accel/tcg: Init TCG cflags in vCPU thread handler, Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 06/13] accel/tcg: Reorganize tcg_accel_ops_init(), Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 07/13] accel-ops: Introduce create_vcpu_thread_precheck / postcheck handlers, Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 08/13] accel/tcg: Extract rr_create_vcpu_thread_precheck(), Philippe Mathieu-Daudé, 2022/03/23
- [PATCH v4 09/13] accel/all: Extract common_vcpu_thread_create(), Philippe Mathieu-Daudé, 2022/03/23