]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: argv: parse qemu commandline memory arguments
authorKothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
Mon, 9 Oct 2017 17:16:29 +0000 (22:46 +0530)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 16 Oct 2017 15:18:25 +0000 (11:18 -0400)
commit67a52f709a7606cb3329abae2d04eb4de5185090
treed8b5bf6d2992d525258752a3ccabb51facfba8d8
parenta765e3094d0a28c9f8426068898b2101f32dfee6
qemu: argv: parse qemu commandline memory arguments

Existing qemuParseCommandLineMem() will parse "-m 4G" format string.
This patch allows it to parse "-m size=8126464k,slots=32,maxmem=33554432k"
format along with existing format. And adds a testcase to validate the changes.

Signed-off-by: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
src/qemu/qemu_parse_command.c
tests/qemuargv2xmldata/qemuargv2xml-mem-scale-maxmemory.args [new file with mode: 0644]
tests/qemuargv2xmldata/qemuargv2xml-mem-scale-maxmemory.xml [new file with mode: 0644]
tests/qemuargv2xmltest.c