From: Eric Blake <eblake@redhat.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] boards: add a 'none' machine type to all platforms
Date: Wed, 22 Aug 2012 14:52:19 -0600 [thread overview]
Message-ID: <50354683.8070809@redhat.com> (raw)
In-Reply-To: <1345667067-24298-1-git-send-email-aliguori@us.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]
On 08/22/2012 02:24 PM, Anthony Liguori wrote:
> This allows any QEMU binary to be executed with:
>
> $QEMU_BINARY -qmp stdio
Don't you mean:
$QEMU_BINARY -M none -qmp stdio
I agree with including this in 1.2, as otherwise your new query-target
and other commands are incomplete (that is, this is a 'bug fix' of
rounding out a feature already promised at hard freeze, and not a new
feature on its own).
> +static QEMUMachine machine_none = {
> + .name = "none",
> + .desc = "empty machine",
> + .init = machine_none_init,
> + .max_cpus = 0,
> +};
I guess libvirt just blindly tries '-S -M none'; if it works, we must be
talking to new enough qemu (and all the other QMP commands that we want
to probe are then immediately available); if it doesn't work, then we
must be talking to older qemu and can fall back to -help scraping (since
older versions won't be further modifying their -help output now that
they are released). I like the idea, although I'm not familiar enough
with this part of the code to know if my review counts for anything:
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake@redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]
next prev parent reply other threads:[~2012-08-22 20:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 20:24 [Qemu-devel] [PATCH] boards: add a 'none' machine type to all platforms Anthony Liguori
2012-08-22 20:52 ` Eric Blake [this message]
2012-08-22 21:29 ` Anthony Liguori
2012-08-22 20:53 ` Peter Maydell
2012-08-22 22:42 ` Anthony Liguori
2012-08-22 22:53 ` Peter Maydell
2012-08-23 2:03 ` Anthony Liguori
2012-08-23 12:03 ` Andreas Färber
2012-08-23 13:09 ` Anthony Liguori
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=50354683.8070809@redhat.com \
--to=eblake@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=armbru@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).