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:
Jan Kiszka 2012-02-03 22:06:47 +01:00 committed by Anthony Liguori
parent 3bc3634972
commit 4cafe60604
2 changed files with 2 additions and 0 deletions

View File

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

View File

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