qemu-patch-raspberry4/migration
Cristian Klein 131fe9b843 Handle bi-directional communication for fd migration
libvirt prefers opening the TCP connection itself, for two reasons.
First, connection failed errors can be detected easier, without having
to parse qemu's error output.
Second, libvirt might be asked to secure the transfer by tunnelling the
communication through an TLS layer.
Therefore, libvirt opens the TCP connection itself and passes an FD to qemu
using QMP and a POSIX-specific mechanism.

Hence, in order to make the reverse-path work in such cases, qemu needs to
distinguish if the transmitted FD is a socket (reverse-path available)
or not (reverse-path might not be available) and use the corresponding
abstraction.

Signed-off-by: Cristian Klein <cristian.klein@cs.umu.se>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2015-01-16 13:06:17 +05:30
..
block.c migration/block: fix pending() return value 2015-01-13 11:47:56 +00:00
exec.c Remove migration- pre/post fixes off files in migration/ dir 2014-12-16 17:47:36 +05:30
fd.c Handle bi-directional communication for fd migration 2015-01-16 13:06:17 +05:30
Makefile.objs Split the QEMU buffered file code out 2014-12-16 17:47:36 +05:30
migration.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30
qemu-file-buf.c QEMUSizedBuffer: only free qsb that qemu_bufopen allocated 2015-01-16 13:06:17 +05:30
qemu-file-internal.h Split struct QEMUFile out 2014-12-16 17:47:36 +05:30
qemu-file-stdio.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30
qemu-file-unix.c socket shutdown 2015-01-16 13:06:17 +05:30
qemu-file.c socket shutdown 2015-01-16 13:06:17 +05:30
rdma.c Remove migration- pre/post fixes off files in migration/ dir 2014-12-16 17:47:36 +05:30
tcp.c Remove migration- pre/post fixes off files in migration/ dir 2014-12-16 17:47:36 +05:30
unix.c Remove migration- pre/post fixes off files in migration/ dir 2014-12-16 17:47:36 +05:30
vmstate.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30
xbzrle.c Start migrating migration code into a migration directory 2014-12-16 17:47:36 +05:30