]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix handling of itanium arch name in QEMU driver
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 26 Sep 2012 12:48:31 +0000 (13:48 +0100)
committerCole Robinson <crobinso@redhat.com>
Wed, 17 Oct 2012 20:53:30 +0000 (16:53 -0400)
For historical compat we use 'itanium' as the arch name, so
if the QEMU binary suffix is 'ia64' we need to translate it

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 3887afbb6bdfe190324ecf8bd520589b6112f051)

src/qemu/qemu_capabilities.c

index 3b08ef85967d3a20b54c1d245a70029687842a4c..37f1a2b1fc4295b8920b917c453d1b0dd373cb2e 100644 (file)
@@ -1940,6 +1940,10 @@ qemuCapsPtr qemuCapsNewForBinary(const char *binary)
     tmp = strstr(binary, QEMU_SYSTEM_PREFIX);
     if (tmp) {
         tmp += strlen(QEMU_SYSTEM_PREFIX);
+
+        /* For historical compat we use 'itanium' as arch name */
+        if (STREQ(tmp, "ia64"))
+            tmp = "itanium";
     } else {
         uname_normalize(&ut);
         tmp = ut.machine;