From: "Daniel P. Berrange" <berrange@redhat.com>
To: Kashyap Chamarthy <kchamart@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Qemu-block <qemu-block@nongnu.org>, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-block] Raw notes from a small block layer/QAPI/something pre-christmas meeting
Date: Wed, 20 Dec 2017 10:57:40 +0000 [thread overview]
Message-ID: <20171220105740.GQ21216@redhat.com> (raw)
In-Reply-To: <20171220104436.fzucmsombnpyxoke@eukaryote>
On Wed, Dec 20, 2017 at 11:44:36AM +0100, Kashyap Chamarthy wrote:
> On Mon, Dec 18, 2017 at 11:11:00AM +0100, Markus Armbruster wrote:
> > Max Reitz <mreitz@redhat.com> writes:
>
> [...]
>
> Thanks, Max, for the detailed notes.
>
> > > Image creation in qemu-system-* vs. qemu-img:
> > > In order to get proper introspection for qemu-img create, we need a
> > > QAPI schema. If we have a QAPI schema, we might as well add
> > > blockdev-create to QMP.
> > > As long as we do not have a really-none (null, void, ...) machine type
> > > for qemu-system-*, launching such a process just for creating an image
> > > will bring quite a bit of overhead (e.g. with -M none -accel qtest).
> > > However, as for libvirt, this is not exactly a regression since
> > > libvirt currently cannot create images at all (apart from implicitly
> > > through drive-mirror etc.). Further work on voidifying qemu-system-*
> > > will improve performance.
> >
> > Another thought: do we want to give qemu-system-* the necessary
> > privileges for creating images? Two cases: running with and without a
> > guest.
>
> Related: Just curious -- was it an explicit design decision to not give
> `qemu-system-*` permissions to create disk images?
Our security model considers QEMU broadly untrustworthy, and so any resources
it needs to use must either be passed in by libvirt, or have permissions
explicitly assigned to permit usage by QEMU. QEMU is allowed to create tmp
files, and create RAM files for memory backing, but in general we don't want
to have QEMU able to create arbitrary files, only open things that are
already created.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2017-12-20 10:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-15 16:38 [Qemu-devel] Raw notes from a small block layer/QAPI/something pre-christmas meeting Max Reitz
2017-12-18 10:11 ` Markus Armbruster
2017-12-20 10:44 ` [Qemu-devel] [Qemu-block] " Kashyap Chamarthy
2017-12-20 10:57 ` Daniel P. Berrange [this message]
2017-12-20 11:29 ` Kashyap Chamarthy
2017-12-20 13:33 ` Kevin Wolf
2017-12-20 13:40 ` Daniel P. Berrange
2017-12-21 12:04 ` Peter Krempa
2017-12-20 11:11 ` [Qemu-devel] " Daniel P. Berrange
2017-12-20 18:15 ` Markus Armbruster
2018-01-08 15:12 ` [Qemu-devel] [Qemu-block] " Peter Krempa
2017-12-22 11:01 ` [Qemu-devel] " Vladimir Sementsov-Ogievskiy
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=20171220105740.GQ21216@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=kchamart@redhat.com \
--cc=mreitz@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).