mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
accel/hvf: Fix TYPE_HVF_ACCEL instance size
Fixes: c97d6d2cdf
("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>
This commit is contained in:
parent
ff1bc6f4c5
commit
6cfe590c6b
2 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ typedef struct hvf_vcpu_caps {
|
|||
|
||||
struct HVFState {
|
||||
AccelState parent;
|
||||
|
||||
hvf_slot slots[32];
|
||||
int num_slots;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue