pc_piix: enable legacy hotplug for Xen
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 4 Feb 2014 21:29:30 +0000 (23:29 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Feb 2014 14:55:50 +0000 (16:55 +0200)
xenfv has no fwcfg and so does not load acpi from QEMU.
as such new acpi features don't work.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c

index a327d71fb1b638a6774e0f3effac99142757f738..1acd2b2a20c8de999f9dbfa72b1164a55c9cec28 100644 (file)
@@ -793,6 +793,17 @@ static QEMUMachine xenfv_machine = {
     .max_cpus = HVM_MAX_VCPUS,
     .default_machine_opts = "accel=xen",
     .hot_add_cpu = pc_hot_add_cpu,
+    .compat_props = (GlobalProperty[]) {
+        /* xenfv has no fwcfg and so does not load acpi from QEMU.
+         * as such new acpi features don't work.
+         */
+        {
+            .driver   = "PIIX4_PM",
+            .property = "acpi-pci-hotplug-with-bridge-support",
+            .value    = "off",
+        },
+        { /* end of list */ }
+    },
 };
 #endif