[5694] Reintroduce migrate-to-exec: support (Charles Duffy)
Revision: 5694
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5694 Author: aliguori Date: 2008-11-11 16:46:33 +0000 (Tue, 11 Nov 2008)
Log Message:
-----------
Reintroduce migrate-to-exec: support (Charles Duffy)
KVM's live migration support included support for exec: URLs, allowing system state to be written or received via an arbitrary popen()ed subprocess. This provides a convenient way to pipe state through a compression algorithm or an arbitrary network transport on its way to its destination, and a convenient way to write state to disk; libvirt's qemu driver currently uses migration to exec:
targets for this latter purpose.
This version of the patch refactors now-common code from migrate-tcp.c into migrate.c.
Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/hw.h
trunk/migration-tcp.c
trunk/migration.c
trunk/migration.h
trunk/vl.c
Added Paths:
-----------
trunk/migration-exec.c
Modified: trunk/Makefile.target
===================================================================
Makefile.target +1 -1
@@ -596,7 +596,7 @@ ifdef CONFIG_WIN32 OBJS+=block-raw-win32.o else -OBJS+=block-raw-posix.o +OBJS+=block-raw-posix.o migration-exec.o endif LIBS+=-lz
Modified: trunk/hw/hw.h
===================================================================
hw/hw.h +2 -0
@@ -35,6 +35,8 @@ QEMUFileRateLimit *rate_limit);QEMUFile *qemu_fopen (const char *filename,const char *mode);QEMUFile *qemu_fopen_socket (int fd); +QEMUFile *qemu_popen (FILE *popen_file,const char *mode); +QEMUFile *qemu_popen_cmd (const char *command,const char *mode);void qemu_fflush (QEMUFile *f);int qemu_fclose (QEMUFile *f);void qemu_put_buffer (QEMUFile *f,const uint8_t *buf,int size);
Added: trunk/migration-exec.c
===================================================================
migration-exec.c +141 -0
141 lines not on this page · raw message
Modified: trunk/migration-tcp.c
===================================================================
migration-tcp.c +18 -170
251 lines not on this page · raw message
Modified: trunk/migration.c
===================================================================
migration.c +178 -0
200 lines not on this page · raw message
Modified: trunk/migration.h
===================================================================
migration.h +49 -0
66 lines not on this page · raw message
Modified: trunk/vl.c
===================================================================
vl.c +64 -0
76 lines not on this page · raw message
Thomas Mueller
AppliedQuoted 17 lines · Anthony Liguori
Revision: 5694
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5694 Author: aliguori Date: 2008-11-11 16:46:33 +0000 (Tue, 11 Nov 2008)Log Message:
-----------
Reintroduce migrate-to-exec: support (Charles Duffy)KVM's live migration support included support for exec: URLs, allowing system state to be written or received via an arbitrary popen()ed subprocess. This provides a convenient way to pipe state through a compression algorithm or an arbitrary network transport on its way to its destination, and a convenient way to write state to disk; libvirt's qemu driver currently uses migration to exec: targets for this latter purpose.
Quoted 2 lines
This version of the patch refactors now-common code from
migrate-tcp.cintomigrate.c.
i applied this patch to the kvm-79 qemu.
save and restore works with "migration exec:cat >/tmp/vm.state"/"- incoming exec:cat /tmp/vm.state", altough there is an segfault logged to syslog:
[265193.983381] kvm[15017]: segfault at 0 ip 0 sp 7fffb85ecaa8 error 14
in kvm[400000+1af000]
my system:
Intel E5420, debian etch, kernel 2.6.26
- Thomas