Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qapi: Fix QemuOpts visitor regression on unvisited input
An off-by-one in commit 15c2f66 meant that we were failing to check for unparsed input in all QemuOpts visitors. Recent testsuite additions show that fixing the obvious bug with bogus fields will also fix the case of an incomplete list visit; update the tests to match the new behavior. Simple testcase: ./x86_64-softmmu/qemu-system-x86_64 -nodefaults -nographic -qmp stdio -numa node,size=1g failed to diagnose that 'size' is not a valid argument to -numa, and now once again reports: qemu-system-x86_64: -numa node,size=1g: Invalid parameter 'size' See also https://bugzilla.redhat.com/show_bug.cgi?id=1434666 CC: [email protected] Signed-off-by: Eric Blake <[email protected]> Reviewed-by: Michael Roth <[email protected]> Tested-by: Laurent Vivier <[email protected]> Message-Id: <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Signed-off-by: Markus Armbruster <[email protected]>
- Loading branch information