PowerPC : Explicitly associate 'qemu-system-ppc64' as the
default emulator for all 64-bit PowerPC guests ( both Big & Little Endian )
Signed-off-by: Prerna Saxena <prerna(a)linux.vnet.ibm.com>
---
src/qemu/qemu_capabilities.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index a04095e..4596f6c 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -673,9 +673,14 @@ virQEMUCapsFindBinaryForArch(virArch hostarch,
virArch guestarch)
{
char *ret;
- const char *archstr = virQEMUCapsArchToString(guestarch);
+ const char *archstr;
char *binary;
+ if (ARCH_IS_PPC64(guestarch))
+ archstr = virQEMUCapsArchToString(VIR_ARCH_PPC64);
+ else
+ archstr = virQEMUCapsArchToString(guestarch);
+
if (virAsprintf(&binary, "qemu-system-%s", archstr) < 0)
return NULL;
--
1.9.3
--
Prerna Saxena
Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India