[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 06/19] accel/hvf: Fix TYPE_HVF_ACCEL instance size
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 06/19] accel/hvf: Fix TYPE_HVF_ACCEL instance size |
Date: |
Fri, 6 Jun 2025 18:44:05 +0200 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/system/hvf_int.h | 1 +
accel/hvf/hvf-accel-ops.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/system/hvf_int.h b/include/system/hvf_int.h
index 8c8b84012d9..d774e58df91 100644
--- a/include/system/hvf_int.h
+++ b/include/system/hvf_int.h
@@ -44,6 +44,7 @@ typedef struct hvf_vcpu_caps {
struct HVFState {
AccelState parent;
+
hvf_slot slots[32];
int num_slots;
diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c
index 3dd9de26dbb..808ecea3816 100644
--- a/accel/hvf/hvf-accel-ops.c
+++ b/accel/hvf/hvf-accel-ops.c
@@ -366,6 +366,7 @@ static void hvf_accel_class_init(ObjectClass *oc, const
void *data)
static const TypeInfo hvf_accel_type = {
.name = TYPE_HVF_ACCEL,
.parent = TYPE_ACCEL,
+ .instance_size = sizeof(HVFState),
.class_init = hvf_accel_class_init,
};
--
2.49.0
- Re: [RFC PATCH 02/19] system/cpus: Only kick running vCPUs, (continued)
[RFC PATCH 03/19] accel: Keep reference to AccelOpsClass in AccelClass, Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 04/19] accel: Propagate AccelState to AccelClass::init_machine(), Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 05/19] accel/kvm: Prefer local AccelState over global MachineState::accel, Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 06/19] accel/hvf: Fix TYPE_HVF_ACCEL instance size,
Philippe Mathieu-Daudé <=
[RFC PATCH 07/19] accel/hvf: Re-use QOM allocated state, Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 08/19] accel/tcg: Prefer local AccelState over global current_accel(), Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 09/19] accel: Factor accel_cpu_realize() out, Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 10/19] accel/dummy: Factor dummy_thread_precreate() out, Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 12/19] accel: Factor accel_create_vcpu_thread() out, Philippe Mathieu-Daudé, 2025/06/06
[RFC PATCH 11/19] accel/dummy: Factor tcg_vcpu_thread_precreate() out, Philippe Mathieu-Daudé, 2025/06/06