From: Paolo Bonzini <pbonzini@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: marcel@redhat.com, "Tony Krowiak" <akrowiak@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, "Andreas Färber" <afaerber@suse.de>
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 [thread overview]
Message-ID: <551BB54A.9050700@redhat.com> (raw)
In-Reply-To: <87fv8kxmrh.fsf@blackfin.pond.sub.org>
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
next prev parent reply other threads:[~2015-04-01 9:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 14:21 [Qemu-devel] [qemu devel] disable shared memory is not available with this QEMU binary Tony Krowiak
2015-04-01 6:54 ` Marcel Apfelbaum
2015-04-01 8:01 ` Paolo Bonzini
2015-04-01 8:06 ` Marcel Apfelbaum
2015-04-01 8:20 ` Paolo Bonzini
2015-04-01 8:42 ` Markus Armbruster
2015-04-01 9:07 ` Paolo Bonzini [this message]
2015-04-01 9:14 ` Marcel Apfelbaum
2015-04-01 9:23 ` Paolo Bonzini
2015-04-01 9:27 ` Marcel Apfelbaum
2015-04-01 8:28 ` Markus Armbruster
2015-04-01 14:51 ` Marcel Apfelbaum
2015-04-01 15:53 ` Markus Armbruster
2015-04-01 16:11 ` Marcel Apfelbaum
2015-04-01 16:20 ` Eric Blake
2015-04-01 16:31 ` Marcel Apfelbaum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=551BB54A.9050700@redhat.com \
--to=pbonzini@redhat.com \
--cc=afaerber@suse.de \
--cc=akrowiak@linux.vnet.ibm.com \
--cc=armbru@redhat.com \
--cc=marcel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.