x86: ioapic: boost default version to 0x20
PATCH v2 1/1 x86: ioapic: boost default version to 0x20
It's 2.8 now, and maybe it's time to switch IOAPIC default version to 0x20.
Signed-off-by Peter Xu <[email protected]>
---
V2:
- keep compatible for qemu version <= 2.7 [Paolo]
hw/intc/ioapic.c | 2 +- include/hw/compat.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
hw/intc/ioapic.c +1 -1
@@ -416,7 +416,7 @@ static void ioapic_realize(DeviceState *dev, Error **errp) }static Property ioapic_properties[] = { -DEFINE_PROP_UINT8 ("version" , IOAPICCommonState, version,0x11 ), +DEFINE_PROP_UINT8 ("version" , IOAPICCommonState, version,0x20 ),DEFINE_PROP_END_OF_LIST (), };
include/hw/compat.h +4 -0
@@ -6,6 +6,10 @@ .driver = "virtio-pci",\ .property = "page-per-vq",\ .value = "on",\ + },{\ + .driver = "ioapic",\ + .property = "version",\ + .value = "0x11",\ },#define HW_COMPAT_2_6 \
Signature · 1 line
2.7.4
Paolo Bonzini
AppliedQuoted 32 lines · Peter Xu
It's 2.8 now, and maybe it's time to switch IOAPIC default version to
0x20.Signed-off-by Peter Xu <[email protected]>---
V2:
- keep compatible for qemu version <= 2.7 [Paolo]hw/intc/ioapic.c | 2 +- include/hw/compat.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)hw/intc/ioapic.c +1
-1@@ -416,7 +416,7 @@ static void ioapic_realize(DeviceState *dev, Error **errp) }static Property ioapic_properties[] = { -DEFINE_PROP_UINT8 ("version" , IOAPICCommonState, version,0x11 ), +DEFINE_PROP_UINT8 ("version" , IOAPICCommonState, version,0x20 ),DEFINE_PROP_END_OF_LIST (), };include/hw/compat.h +0
-0
include/hw/compat.h line 15
Quoted 10 lines
include/hw/compat.h +4
-0@@ -6,6 +6,10 @@ .driver = "virtio-pci",\ .property = "page-per-vq",\ .value = "on",\ + },{\ + .driver = "ioapic",\ + .property = "version",\ + .value = "0x11",\ },#define HW_COMPAT_2_6 \
Queued, thanks.
Paolo