[libvirt] [PATCH v2 REPOST 3/8] Handle arbitrary qemu command-lines in qemuParseCommandLine.

Eric Blake eblake at redhat.com
Thu Jul 1 21:43:03 UTC 2010


On 07/01/2010 02:59 PM, Chris Lalancette wrote:
> Now that we have the ability to specify arbitrary qemu
> command-line parameters in the XML, use it to handle unknown
> command-line parameters when doing a native-to-xml conversion.
> 
> Changes since v1:
>  - Rename num_extra to num_args
>  - Fix up a memory leak on an error path
> 
> Signed-off-by: Chris Lalancette <clalance at redhat.com>
> ---
>  src/qemu/qemu_conf.c |   28 ++++++++++++++++++++++------
>  1 files changed, 22 insertions(+), 6 deletions(-)
> 
> diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
>          } else {
> -            VIR_WARN("unknown QEMU argument '%s' during conversion", arg);
> -#if 0
> -            qemuReportError(VIR_ERR_INTERNAL_ERROR,
> -                            _("unknown argument '%s'"), arg);
> -            goto error;
> -#endif
> +            /* something we can't yet parse.  Add it to the qemu namespace
> +             * cmdline/environment advanced options and hope for the best
> +             */

Let's still keep the VIR_WARN, as it may help in debugging.

ACK, with that nit addressed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100701/3b40df1c/attachment-0001.sig>


More information about the libvir-list mailing list