mirror of https://gitee.com/openkylin/qemu.git
KVM: Fix breakages of QOM conversion
KVM APIC and PIC require instance sizes. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3bc3634972
commit
4cafe60604
|
@ -135,6 +135,7 @@ static void kvm_apic_class_init(ObjectClass *klass, void *data)
|
|||
static TypeInfo kvm_apic_info = {
|
||||
.name = "kvm-apic",
|
||||
.parent = TYPE_APIC_COMMON,
|
||||
.instance_size = sizeof(APICCommonState),
|
||||
.class_init = kvm_apic_class_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -126,6 +126,7 @@ static void kvm_i8259_class_init(ObjectClass *klass, void *data)
|
|||
static TypeInfo kvm_i8259_info = {
|
||||
.name = "kvm-i8259",
|
||||
.parent = TYPE_PIC_COMMON,
|
||||
.instance_size = sizeof(PICCommonState),
|
||||
.class_init = kvm_i8259_class_init,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue