mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Fix virQEMUCapsFindTarget on ppc64le
virQEMUCapsFindTarget is supposed to find an alternative QEMU binary if qemu-system-$GUEST_ARCH doesn't exist. The alternative is using host architecture when it is compatible with $GUEST_ARCH. But a special treatment has to be applied for ppc64le since the QEMU binary is always called qemu-system-ppc64. Broken by me in v2.2.0-171-gf2e71550d. https://bugzilla.redhat.com/show_bug.cgi?id=1403745 Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
7ed89d7421
commit
f00c00475f
@ -482,13 +482,13 @@ static virArch
|
||||
virQEMUCapsFindTarget(virArch hostarch,
|
||||
virArch guestarch)
|
||||
{
|
||||
if (virQEMUCapsGuestIsNative(hostarch, guestarch))
|
||||
guestarch = hostarch;
|
||||
|
||||
/* Both ppc64 and ppc64le guests can use the ppc64 target */
|
||||
if (ARCH_IS_PPC64(guestarch))
|
||||
guestarch = VIR_ARCH_PPC64;
|
||||
|
||||
if (virQEMUCapsGuestIsNative(hostarch, guestarch))
|
||||
guestarch = hostarch;
|
||||
|
||||
return guestarch;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user