[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]