qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pc_piix: enable legacy hotplug for Xen
@ 2014-02-04 21:32 Michael S. Tsirkin
  2014-02-04 21:55 ` Paolo Bonzini
  0 siblings, 1 reply; 11+ messages in thread
From: Michael S. Tsirkin @ 2014-02-04 21:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Sander Eikelenboom, Anthony Liguori

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

Sander, could you pleas econfirm this works for you?
Also, Xen really should switch to fw cfg some day ...

 hw/i386/pc_piix.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index a327d71..1acd2b2 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -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
 
-- 
MST

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-05 17:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 21:32 [Qemu-devel] [PATCH] pc_piix: enable legacy hotplug for Xen Michael S. Tsirkin
2014-02-04 21:55 ` Paolo Bonzini
2014-02-04 22:28   ` Sander Eikelenboom
2014-02-05 16:35     ` Stefano Stabellini
2014-02-05 16:45       ` Sander Eikelenboom
2014-02-05 16:50         ` Stefano Stabellini
2014-02-05 16:41   ` Stefano Stabellini
2014-02-05 16:47     ` Paolo Bonzini
2014-02-05 16:54       ` Stefano Stabellini
2014-02-05 17:04         ` Paolo Bonzini
2014-02-05 17:53           ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).