[libvirt] [PATCH v2 0/2] qemu: parse: Introduce qemuParseCommandLineMem

Nishith Shah nishithshah.2211 at gmail.com
Wed May 18 06:36:25 UTC 2016


This series moves the parsing of qemu -m memory into a separate function
and adds suffix support for the -m option.

The first patch introduces the function qemuParseCommandLineMem, and the
second patch handles suffixes for the -m values and adds a test for the
same.

Nishith Shah (2):
  qemu: parse: Use qemuParseCommandLineMem for -m memory
  qemu: parse: Handle suffixes for -m memory

 src/qemu/qemu_parse_command.c                      | 38 ++++++++++++++++++----
 tests/qemuargv2xmldata/qemuargv2xml-mem-scale.args | 22 +++++++++++++
 tests/qemuargv2xmldata/qemuargv2xml-mem-scale.xml  | 33 +++++++++++++++++++
 tests/qemuargv2xmltest.c                           |  1 +
 4 files changed, 87 insertions(+), 7 deletions(-)
 create mode 100644 tests/qemuargv2xmldata/qemuargv2xml-mem-scale.args
 create mode 100644 tests/qemuargv2xmldata/qemuargv2xml-mem-scale.xml

-- 
2.1.4




More information about the libvir-list mailing list