]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
vl: Clean up parsing of -boot option argument
authorMarkus Armbruster <armbru@redhat.com>
Fri, 14 Jun 2013 11:15:01 +0000 (13:15 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 19 Jun 2013 19:10:41 +0000 (14:10 -0500)
commit6ef4716cecdfa1b3794c1a33edba9840e1aa6b5f
treef3d69e6ccb94e82d186e2d1ce9c2cbde55dbb714
parentc1990468d5a13c8f1d9111fcca0a78a6adad062b
vl: Clean up parsing of -boot option argument

Commit 3d3b8303 threw in some QemuOpts parsing without replacing the
existing ad hoc parser, resulting in a confusing mess.  Clean it up.

Two user-visible changes:

1. Invalid options are reported more nicely.  Before:

        qemu: unknown boot parameter 'x' in 'x=y'

   After:

        qemu-system-x86_64: -boot x=y: Invalid parameter 'x'

2. If -boot is given multiple times, options accumulate, just like for
   -machine.  Before, only options order, once and menu accumulated.
   For the other ones, all but the first -boot in non-legacy syntax
   got simply ignored.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1371208516-7857-2-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c