瀏覽代碼

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 <peterx@redhat.com>
Message-Id: <1474608795-23058-1-git-send-email-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Peter Xu 9 年之前
父節點
當前提交
048a2e8869
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 1 1
      hw/intc/ioapic.c
  2. 4 0
      include/hw/compat.h

+ 1 - 1
hw/intc/ioapic.c

@@ -416,7 +416,7 @@ static void ioapic_realize(DeviceState *dev, Error **errp)
 }
 }
 
 
 static Property ioapic_properties[] = {
 static Property ioapic_properties[] = {
-    DEFINE_PROP_UINT8("version", IOAPICCommonState, version, 0x11),
+    DEFINE_PROP_UINT8("version", IOAPICCommonState, version, 0x20),
     DEFINE_PROP_END_OF_LIST(),
     DEFINE_PROP_END_OF_LIST(),
 };
 };
 
 

+ 4 - 0
include/hw/compat.h

@@ -6,6 +6,10 @@
         .driver   = "virtio-pci",\
         .driver   = "virtio-pci",\
         .property = "page-per-vq",\
         .property = "page-per-vq",\
         .value    = "on",\
         .value    = "on",\
+    },{\
+        .driver   = "ioapic",\
+        .property = "version",\
+        .value    = "0x11",\
     },
     },
 
 
 #define HW_COMPAT_2_6 \
 #define HW_COMPAT_2_6 \