[libvirt] [PATCH] migrate VMs between different-endian hosts
Eric Blake
eblake at redhat.com
Thu Apr 14 18:20:43 UTC 2011
On 04/14/2011 11:50 AM, Stefan Berger wrote:
>>> +++ libvirt-acl/src/qemu/qemu_driver.c
>>> @@ -43,6 +43,7 @@
>>> #include<sys/wait.h>
>>> #include<sys/ioctl.h>
>>> #include<sys/un.h>
>>> +#include<byteswap.h>
>> This won't work unless you also modify bootstrap.conf to include the
>> gnulib byteswap module.
>>
>> ACK with that nit fixed.
>>
> I don't think it's necessary to include it there:
>
> # rpm -q --whatprovides /usr/include/byteswap.h
> glibc-headers-2.12.90-21.x86_64
Not all the world is glibc. BSD and mingw lack byteswap.h, and qemu
compiles on more than just Linux. While I'm not sure if any non-Linux
hosts default to compiling the qemu driver at the current moment, that
does not mean that we should not be thinking about the portability
aspects. Adding a one-liner inclusion of the byteswap module to
bootstrap.conf will avoid any questions of portability pitfalls.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110414/09ab796a/attachment-0001.sig>
More information about the libvir-list
mailing list