]> xenbits.xensource.com Git - libvirt.git/commitdiff
virQEMUCapsArch: openrisc vs or32
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jun 2015 14:26:45 +0000 (16:26 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Jun 2015 14:44:24 +0000 (16:44 +0200)
With a few exceptions, we assume that qemu binary for given
architecture has form of qemu-system-$arch. Well, openrisc is yet
another exception. It's binary is called qemu-system-or32.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c

index c519aec9b7b4882af66545f718053212aa84b62c..8a64422fb028194d3552409255b966497ada4e46 100644 (file)
@@ -358,6 +358,8 @@ static virArch virQEMUCapsArchFromString(const char *arch)
         return VIR_ARCH_I686;
     if (STREQ(arch, "arm"))
         return VIR_ARCH_ARMV7L;
+    if (STREQ(arch, "or32"))
+        return VIR_ARCH_OR32;
 
     return virArchFromString(arch);
 }
@@ -369,6 +371,8 @@ static const char *virQEMUCapsArchToString(virArch arch)
         return "i386";
     else if (arch == VIR_ARCH_ARMV7L)
         return "arm";
+    else if (arch == VIR_ARCH_OR32)
+        return "or32";
 
     return virArchToString(arch);
 }