From: Max Reitz <mreitz@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>,
qemu-devel@nongnu.org, qemu-block@nongnu.org,
Eric Blake <eblake@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-block] RFC: use case for adding QMP, block jobs & multiple exports to qemu-nbd ?
Date: Thu, 2 Nov 2017 22:38:16 +0100 [thread overview]
Message-ID: <50b7935f-c02f-7d7d-4e8e-fc8967e85d2e@redhat.com> (raw)
In-Reply-To: <20171102120223.GI32533@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2252 bytes --]
On 2017-11-02 13:02, Daniel P. Berrange wrote:
[...]
> One alternative approach to doing this would be to suggest that we should
> instead just spawn qemu-system-x86_64 with '--machine none' and use that
> as a replacement for qemu-nbd, since it already has a built-in NBD server
> which can do many exports at once and arbitrary block jobs.
As far as I know, we had wanted to add QMP support to qemu-nbd maybe one
or two years ago, but nobody ever did it.
I've had some discussions about this with Markus and Kevin at KVM Forum.
They appeared to strongly prefer this approach. I agree with them that
design-wise, a qemu with no machine at all (and not even -M none) and
early QMP is the way we want to go anyway, and then this would be the
correct tool to use.
> I'm concerned that this could end up being a be a game of whack-a-mole
> though, constantly trying to cut out/down all the bits of system emulation
> in the machine emulators to get its resource overhead to match the low
> overhead of standalone qemu-nbd.
However, I personally share your concern. Especially, I think that
getting to a point where we can have no machine at all and early QMP
will take much longer than just adding QMP to qemu-nbd -- or adding a
qmp command to qemu-img (because you can add NBD exports through QMP, so
qemu-nbd's hardcoded focus on NBD exports seems kind of weird then)[1].
I'm very much torn here. There are two approaches: Stripping fat qemu
down, or fattening lean qemu-img (?) up. The latter is very simple.
The former is what we want anyway.
Markus says it's not too hard to strip down qemu. If that is true,
there is no point in fattening qemu-img now. I personally am not
convinced at all, but he knows the state of that project much better
than me, so I cannot reasonably disagree.
So my mail is more of a CC to Markus and Kevin -- but I think both are
on PTO right now.
I guess the main question is: If someone were to introduce a qemu-img
QMP subcommand -- would it be accepted? :-)
Max
[1] Also, adding QMP should trivially add block jobs and multiple
exports to whatever tool we are talking about (in fact, qemu-img already
does perform the mirror block job for committing).
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 512 bytes --]
next prev parent reply other threads:[~2017-11-02 21:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-02 12:02 [Qemu-devel] RFC: use case for adding QMP, block jobs & multiple exports to qemu-nbd ? Daniel P. Berrange
2017-11-02 16:40 ` [Qemu-devel] [Qemu-block] " Kashyap Chamarthy
2017-11-02 17:04 ` Daniel P. Berrange
2017-11-02 17:50 ` Eric Blake
2017-11-03 10:04 ` Stefan Hajnoczi
2017-11-03 10:16 ` Daniel P. Berrange
2017-11-02 18:06 ` Paolo Bonzini
2017-11-02 21:38 ` Max Reitz [this message]
2017-11-03 9:59 ` Stefan Hajnoczi
2017-11-09 13:54 ` Markus Armbruster
2017-11-09 16:02 ` Daniel P. Berrange
2017-11-03 6:00 ` [Qemu-devel] " Fam Zheng
2017-11-03 10:01 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
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=50b7935f-c02f-7d7d-4e8e-fc8967e85d2e@redhat.com \
--to=mreitz@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--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).