qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [qemu devel] disable shared memory is not available wit


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [qemu devel] disable shared memory is not available with this QEMU binary
Date: Wed, 01 Apr 2015 11:07:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0


On 01/04/2015 10:42, Markus Armbruster wrote:
> The obvious way to return them is to put them right back in
> qemu_machine_opts.desc[].  But then -machine rejects machine-specific
> parameters.
> 
> Hack: monkey-patch them in after we're done parsing.
> 
> Cleaner: "empty desc[] means accept anything" has always been overly
> restrictive.  Have a flag "accept additional parameters".
> 
> We may have to do the former for 2.3, but that's no excuse not to
> replace it by something less gross in 2.4.

The latter sounds less intrusive, actually.  Could it be as easy as

 static bool opts_accepts_any(const QemuOpts *opts)
 {
-    return opts->list->desc[0].name == NULL;
+    return opts->list->desc[0].name == NULL || opts->list->accept_any;
 }

?

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]