aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2017-02-03 15:18:18 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-02-16 14:06:55 +0100
commitb7a4104b73cd02cd014c12e467bc599b69421c7b (patch)
tree1a4b25bf0205c611ff76ebc4fc717b579f77d732 /hw
parent8d5516be1224468b5dbc141fbc7644bbd3a96183 (diff)
downloadqemu-b7a4104b73cd02cd014c12e467bc599b69421c7b.zip
qemu-b7a4104b73cd02cd014c12e467bc599b69421c7b.tar.gz
qemu-b7a4104b73cd02cd014c12e467bc599b69421c7b.tar.bz2
kvm/ioapic: correct kvm ioapic version
Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1486106298-3699-4-git-send-email-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/i386/kvm/ioapic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c
index 716d59a..98ca480 100644
--- a/hw/i386/kvm/ioapic.c
+++ b/hw/i386/kvm/ioapic.c
@@ -143,6 +143,11 @@ static void kvm_ioapic_realize(DeviceState *dev, Error **errp)
IOAPICCommonState *s = IOAPIC_COMMON(dev);
memory_region_init_reservation(&s->io_memory, NULL, "kvm-ioapic", 0x1000);
+ /*
+ * KVM ioapic only supports 0x11 now. This will only be used when
+ * we want to dump ioapic version.
+ */
+ s->version = 0x11;
qdev_init_gpio_in(dev, kvm_ioapic_set_irq, IOAPIC_NUM_PINS);
}