[libvirt] [PATCH v2 0/4] qemu: handle ',' and '=' in VM name

Cole Robinson crobinso at redhat.com
Wed May 4 14:56:51 UTC 2016


This series adds qemu cli comma escaping to several places that
are dependent on the VM name, to enable names with embedded commas.

Patch 4 makes use of qemu -name guest=X value to allow names with
'=' in them.

https://bugzilla.redhat.com/show_bug.cgi?id=639926
https://bugzilla.redhat.com/show_bug.cgi?id=1276485

Note: There's likely other places that are VM name dependent that need
comma escaping too, but this hits the mandatory ones. I've listed some
more on the BiteSizedTasks page:

http://wiki.libvirt.org/page/BiteSizedTasks#qemu:_Use_comma_escaping_for_more_command_line_values

v2:
    Rebase to master

Cole Robinson (4):
  qemu: command: escape commas in VM name
  qemu: command: escape commas in secret master path
  qemu: command: escape commas in chardev socket path
  qemu: command: Use -name guest= if available

 src/qemu/qemu_capabilities.c                       |  2 ++
 src/qemu/qemu_capabilities.h                       |  1 +
 src/qemu/qemu_command.c                            | 22 ++++++++++++--------
 tests/qemucapabilitiesdata/caps_2.1.1-1.caps       |  1 +
 tests/qemucapabilitiesdata/caps_2.4.0-1.caps       |  1 +
 tests/qemucapabilitiesdata/caps_2.5.0-1.caps       |  1 +
 tests/qemucapabilitiesdata/caps_2.6.0-1.caps       |  1 +
 .../qemuxml2argvdata/qemuxml2argv-name-escape.args | 24 ++++++++++++++++++++++
 .../qemuxml2argvdata/qemuxml2argv-name-escape.xml  | 18 ++++++++++++++++
 tests/qemuxml2argvtest.c                           |  2 ++
 10 files changed, 65 insertions(+), 8 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-name-escape.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-name-escape.xml

-- 
2.7.4




More information about the libvir-list mailing list