]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: ignore -nodefconfig and -nodefaults when parsing commandline
authorLaine Stump <laine@laine.org>
Fri, 6 Jun 2014 13:03:58 +0000 (16:03 +0300)
committerLaine Stump <laine@laine.org>
Mon, 9 Jun 2014 10:53:06 +0000 (13:53 +0300)
commita7b0040ad2b9e2c8e3cca7b9bd5a75d41d58a315
treeda4c40e0f3c6c3efa200030dbeb55a93b8e7b998
parentb7b3fb56f565885c68a39a384c13c6cc33a68cef
qemu: ignore -nodefconfig and -nodefaults when parsing commandline

The qemu driver always adds these options to the qemu commandlines,
but the commandline parser didn't recognize them, so sending a
libvirt-generated qemu commandline to its own argvtoxml would always
result in a warning message and a qemu namespace added to the
xml. Since the options don't add any functionality to the domain, they
should just be ignored (similar to -S).

Note that we can't yet add a test for this to qemuargv2xmltest,
because we would have to add QEMU_CAPS_NODEFCONFIG and
QEMU_CAPS_DEVICE to the capabilities for any corresponding
xml2argvtest, and QEMU_CAPS_DEVICE would necessitate having support
for parsing a memballoon device in order for qemuargv2xmltest to
pass. So we wait to add a test for -nodefconfig and -nodefaults until
after adding support for parsing -device virtio-balloon-*.
src/qemu/qemu_command.c