]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Set arch to i686 if qemu-system-i386 is found
authorGuido Günther <agx@sigxcpu.org>
Thu, 18 Oct 2012 23:14:15 +0000 (01:14 +0200)
committerGuido Günther <agx@sigxcpu.org>
Fri, 19 Oct 2012 06:12:21 +0000 (08:12 +0200)
If we can't probe the architecture from QMP we parse the architecture
from the qemu binaries name. This results in the architecture being i386
instead of i686 which then results in QEMU_CAPS_PCI_MULTIBUS being unset
which gives a broken qemu command line.

This probably didn't show up earlier since most of the time there's also
a /usr/bin/qemu around which results in i686 capabilities.

src/qemu/qemu_capabilities.c

index 7c391b32ea3d4c74074d8712a7d2ad58a7d06b8b..e897f865999bcc502d4f573854ed2f3b40c85b15 100644 (file)
@@ -2055,6 +2055,8 @@ qemuCapsInitHelp(qemuCapsPtr caps)
         /* For historical compat we use 'itanium' as arch name */
         if (STREQ(tmp, "ia64"))
             tmp = "itanium";
+        else if (STREQ(tmp, "i386"))
+            tmp = "i686";
     } else {
         uname_normalize(&ut);
         tmp = ut.machine;