PowerPC : Make 'qemu-system-ppc64' the default emulator on ppc64[le].

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@linux.vnet.ibm.com>
This commit is contained in:
Prerna Saxena 2015-02-15 09:48:00 +05:30 committed by Ján Tomko
parent 337265bb52
commit bdbe723fcd
1 changed files with 6 additions and 1 deletions

View File

@ -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;