Re: [PATCH] qemu: Set arch to i686 if qemu-system-i386 is found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/18/2012 05:24 PM, Guido Günther wrote:
> If we can't probe the architecture from QMP we parse the architecture
> from the qemu binaries name. This results in the architecture being i386
> instead of i686 which then results in QEMU_CAPS_PCI_MULTIBUS being unset
> which gives a broken qemu command line.
> 
> This probably didn't show up earlier since most of the time there's also
> a /usr/bin/qemu around which results in i686 capabilities.
> ---
>  src/qemu/qemu_capabilities.c |    2 ++
>  1 file changed, 2 insertions(+)

ACK.

> 
> diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
> index 7c391b3..e897f86 100644
> --- a/src/qemu/qemu_capabilities.c
> +++ b/src/qemu/qemu_capabilities.c
> @@ -2055,6 +2055,8 @@ qemuCapsInitHelp(qemuCapsPtr caps)
>          /* For historical compat we use 'itanium' as arch name */
>          if (STREQ(tmp, "ia64"))
>              tmp = "itanium";
> +        else if (STREQ(tmp, "i386"))
> +            tmp = "i686";
>      } else {
>          uname_normalize(&ut);
>          tmp = ut.machine;
> 

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]