]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
S390: Override QEMU_CAPS_NO_ACPI for s390x
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Fri, 22 Jun 2012 11:50:10 +0000 (13:50 +0200)
committerCole Robinson <crobinso@redhat.com>
Sun, 12 Aug 2012 23:21:18 +0000 (19:21 -0400)
Starting a KVM guest on s390 fails immediately. This is because
"qemu --help" reports -no-acpi even for the s390(x) architecture but
-no-acpi isn't supported there.
Workaround is to remove QEMU_CAPS_NO_ACPI from the capability set
after the version/capability extraction.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
(cherry picked from commit 6a6c347118f0310157277d90c556cdd41b7e922c)

(crobinso: add Viktor to AUTHORS)

AUTHORS
src/qemu/qemu_capabilities.c

diff --git a/AUTHORS b/AUTHORS
index 9efac2e29f564b9793f5890c088ff4b3ca932608..5a4e4955dab8021329e1eb41270b9237ba8fdbaa 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -237,6 +237,7 @@ Patches have also been contributed by:
   Beat Jörg            <Beat.Joerg@ssatr.ch>
   Gao feng             <gaofeng@cn.fujitsu.com>
   Dipankar Sarma       <dipankar@in.ibm.com>
+  Viktor Mihajlovski   <mihajlov@linux.vnet.ibm.com>
 
   [....send patches to get your name here....]
 
index 95d6823b578f994dbc420d15e582d900ad0f0d14..ae26967083321207599fd39a8d73ab96bab4f31f 100644 (file)
@@ -1496,6 +1496,11 @@ int qemuCapsExtractVersionInfo(const char *qemu, const char *arch,
         qemuCapsSet(flags, QEMU_CAPS_PCI_MULTIBUS);
     }
 
+    /* S390 and probably other archs do not support no-acpi -
+       maybe the qemu option parsing should be re-thought. */
+    if (STRPREFIX(arch, "s390"))
+        qemuCapsClear(flags, QEMU_CAPS_NO_ACPI);
+
     /* qemuCapsExtractDeviceStr will only set additional flags if qemu
      * understands the 0.13.0+ notion of "-device driver,".  */
     if (qemuCapsGet(flags, QEMU_CAPS_DEVICE) &&