Browse Source

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>
pull/287/head
Philippe Mathieu-Daudé 1 year ago
parent
commit
6cfe590c6b
  1. 1
      accel/hvf/hvf-accel-ops.c
  2. 1
      include/system/hvf_int.h

1
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,
};

1
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;

Loading…
Cancel
Save