mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
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)
|
virArch guestarch)
|
||||||
{
|
{
|
||||||
char *ret;
|
char *ret;
|
||||||
const char *archstr = virQEMUCapsArchToString(guestarch);
|
const char *archstr;
|
||||||
char *binary;
|
char *binary;
|
||||||
|
|
||||||
|
if (ARCH_IS_PPC64(guestarch))
|
||||||
|
archstr = virQEMUCapsArchToString(VIR_ARCH_PPC64);
|
||||||
|
else
|
||||||
|
archstr = virQEMUCapsArchToString(guestarch);
|
||||||
|
|
||||||
if (virAsprintf(&binary, "qemu-system-%s", archstr) < 0)
|
if (virAsprintf(&binary, "qemu-system-%s", archstr) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user