mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
337265bb52
commit
bdbe723fcd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue