Skip to contentSkip to conversation

x86: ioapic: boost default version to 0x20

PATCH Superseded Peter Xu 2 participants 2 messages Sep 22, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Peter Xu

author
#0 lore raw

PATCH 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.

---
 hw/intc/ioapic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/intc/ioapic.c +1 -1
index 31791b0..fd9208f 100644
@@ -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(),
 };
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 13 lines · Peter Xu

It's 2.8 now, and maybe it's time to switch IOAPIC default version to 0x20.

---
 hw/intc/ioapic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/intc/ioapic.c +0 -0
index 31791b0..fd9208f 100644

hw/intc/ioapic.c static void ioapic_realize(DeviceState *dev, Error **errp) · line 421

Quoted 7 lines
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(),
 };

Yes, but you need to set a compat property for 2.7 and earlier machine types (include/hw/compat.h).

Paolo