Patchwork KVM: Fix breakages of QOM conversion

login
register
mail settings
Submitter Jan Kiszka
Date Feb. 3, 2012, 9:06 p.m.
Message ID <4F2C4C67.60103@web.de>
Download mbox | patch
Permalink /patch/139454/
State New
Headers show

Comments

Jan Kiszka - Feb. 3, 2012, 9:06 p.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

KVM APIC and PIC require instance sizes.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 hw/kvm/apic.c  |    1 +
 hw/kvm/i8259.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/kvm/apic.c b/hw/kvm/apic.c
index 89e33b0..dfc2ab3 100644
--- a/hw/kvm/apic.c
+++ b/hw/kvm/apic.c
@@ -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,
 };
 
diff --git a/hw/kvm/i8259.c b/hw/kvm/i8259.c
index ae0f41d..00c7c91 100644
--- a/hw/kvm/i8259.c
+++ b/hw/kvm/i8259.c
@@ -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,
 };