diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-05 08:20:37 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-10 12:59:09 +0200 |
commit | 6cfe590c6b7876ba2471a4357274b33072d62214 (patch) | |
tree | 7acf2a33f6352487f41e4734b26f65d755eb64c5 | |
parent | ff1bc6f4c5be7315dcd3970f7bff6b4f986db877 (diff) | |
download | qemu-6cfe590c6b7876ba2471a4357274b33072d62214.zip qemu-6cfe590c6b7876ba2471a4357274b33072d62214.tar.gz qemu-6cfe590c6b7876ba2471a4357274b33072d62214.tar.bz2 |
accel/hvf: Fix TYPE_HVF_ACCEL instance size
Fixes: c97d6d2cdf9 ("i386: hvf: add code base from Google repo")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250606164418.98655-7-philmd@linaro.org>
-rw-r--r-- | accel/hvf/hvf-accel-ops.c | 1 | ||||
-rw-r--r-- | include/system/hvf_int.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c index b8b6116..d60446b 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, }; diff --git a/include/system/hvf_int.h b/include/system/hvf_int.h index 8c8b840..d774e58 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; |