[Libvir] [PATCH 1/7] Fix memory leak

2007-08-12 Thread Jim Paris
Signed-off-by: Jim Paris [EMAIL PROTECTED] --- src/qemu_driver.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 7c75d9c..b05c3f6 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -204,6 +204,7 @@ qemudStartup(void) {

[Libvir] [PATCH 5/7] Add qemudEscapeShellArg for passing commandlines to qemu.

2007-08-12 Thread Jim Paris
Use this to escape a shell argument in a commandline passed to qemu. First we need to escape certain characters to get them through the qemu monitor interface. On the shell side, the argument will be enclosed in single quotes, so the only character that needs special treatment is the single quote

[Libvir] [PATCH 4/7] Add migration support to QEMU startup.

2007-08-12 Thread Jim Paris
Adds new fields in qemu_vm structure. vm-migrateFrom specifies the argument to -incoming. vm-stdinFd specifies the file descriptor to pass to virExec as stdin, which will be used for the -incoming stdio case. Signed-off-by: Jim Paris [EMAIL PROTECTED] --- src/qemu_conf.c | 12 +++-

[Libvir] [PATCH 3/7] Add option to pass stdin fd to virExec

2007-08-12 Thread Jim Paris
If nonzero, uses the supplied fd instead of /dev/null. Update callers accordingly. Signed-off-by: Jim Paris [EMAIL PROTECTED] --- src/openvz_driver.c |4 ++-- src/qemu_driver.c |5 +++-- src/util.c | 12 ++-- src/util.h |4 ++-- 4 files changed, 13

[Libvir] [PATCH 2/7] Fix issues with QEMU monitor interface.

2007-08-12 Thread Jim Paris
Due to the TTY layer, sending \n to the qemu monitor translates into \r\n when received. This triggers a bug in older versions of QEMU (KVM = 33) because the same command is executed twice, and still has problems with fixed QEMU because the (qemu) prompt is printed twice. Switch all monitor

[Libvir] [PATCH 7/7] Add KVM restore support using migration.

2007-08-12 Thread Jim Paris
Signed-off-by: Jim Paris [EMAIL PROTECTED] --- src/qemu_driver.c | 106 +++-- 1 files changed, 102 insertions(+), 4 deletions(-) diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 50ab702..c6de8a0 100644 --- a/src/qemu_driver.c +++

[Libvir] [PATCH 6/7] Add KVM save support using migration.

2007-08-12 Thread Jim Paris
The save file format consists of a header, XML for the domain, and the raw QEMU/KVM migration data stream. Signed-off-by: Jim Paris [EMAIL PROTECTED] --- src/qemu_driver.c | 109 ++--- 1 files changed, 103 insertions(+), 6 deletions(-) diff --git