[libvirt] [PATCH] migrate VMs between different-endian hosts
Eric Blake
eblake at redhat.com
Thu Apr 14 16:53:37 UTC 2011
On 04/09/2011 09:48 AM, Stefan Berger wrote:
> This patch enables the migration of Qemu VMs between hosts of different
> endianess. I tested this by migrating a i686 VM between a x86 and ppc64
> host.
>
> I am converting the 'int's in the VM's state header to uint32_t assuming
> this doesn't break compatibility with existing deployments other than
> Linux.
>
> Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
>
> ---
> src/qemu/qemu_driver.c | 25 ++++++++++++++++++++-----
> 1 file changed, 20 insertions(+), 5 deletions(-)
>
> Index: libvirt-acl/src/qemu/qemu_driver.c
> ===================================================================
> --- libvirt-acl.orig/src/qemu/qemu_driver.c
> +++ 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.
--
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/ba2839ce/attachment-0001.sig>
More information about the libvir-list
mailing list