From: Marcel Apfelbaum <marcel@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Cc: "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 12:14:15 +0300 [thread overview]
Message-ID: <551BB6E7.4090003@redhat.com> (raw)
In-Reply-To: <551BB54A.9050700@redhat.com>
On 04/01/2015 12:07 PM, Paolo Bonzini wrote:
>
>
> 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;
> }
>
> ?
This + 'monkey-patch' may be a feasible solution for 2.4
Thanks, I'll give it a try and see how ugly will be
Marcel
>
> Paolo
>
next prev parent reply other threads:[~2015-04-01 9:14 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
2015-04-01 9:14 ` Marcel Apfelbaum [this message]
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=551BB6E7.4090003@redhat.com \
--to=marcel@redhat.com \
--cc=afaerber@suse.de \
--cc=akrowiak@linux.vnet.ibm.com \
--cc=armbru@redhat.com \
--cc=pbonzini@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).