From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: "Walker, Benjamin" <benjamin.walker@intel.com>,
"Elena Ufimtseva" <elena.ufimtseva@oracle.com>,
"Jag Raman" <jag.raman@oracle.com>,
"Swapnil Ingle" <swapnil.ingle@nutanix.com>,
"Harris, James R" <james.r.harris@intel.com>,
"john.g.johnson@oracle.com" <john.g.johnson@oracle.com>,
"Alex Williamson" <alex.williamson@redhat.com>,
"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Raphael Norwitz" <raphael.norwitz@nutanix.com>,
"Kirti Wankhede" <kwankhede@nvidia.com>,
"Marc-André Lureau" <marcandre.lureau@gmail.com>,
"Felipe Franciosi" <felipe@nutanix.com>,
"Kanth Ghatraju" <Kanth.Ghatraju@oracle.com>,
"Thanos Makatos" <thanos.makatos@nutanix.com>,
"Zhang, Tina" <tina.zhang@intel.com>,
"Liu, Changpeng" <changpeng.liu@intel.com>,
"dgilbert@redhat.com" <dgilbert@redhat.com>
Subject: Re: RFC: use VFIO over a UNIX domain socket to implement device offloading
Date: Thu, 2 Apr 2020 11:46:45 +0100 [thread overview]
Message-ID: <20200402104645.GF423991@redhat.com> (raw)
In-Reply-To: <20200402101942.GF28280@stefanha-x1.localdomain>
On Thu, Apr 02, 2020 at 11:19:42AM +0100, Stefan Hajnoczi wrote:
> On Wed, Apr 01, 2020 at 06:58:20PM +0200, Marc-André Lureau wrote:
> > On Wed, Apr 1, 2020 at 5:51 PM Thanos Makatos
> > <thanos.makatos@nutanix.com> wrote:
> > > > > Bear in mind that since this is just a PoC lots of things can break, e.g. some
> > > > > system call not intercepted etc.
> > > >
> > > > Cool, I had a quick look at libvfio and how the transport integrates
> > > > into libmuser. The integration on the libmuser side is nice and small.
> > > >
> > > > It seems likely that there will be several different implementations of
> > > > the vfio-over-socket device side (server):
> > > > 1. libmuser
> > > > 2. A Rust equivalent to libmuser
> > > > 3. Maybe a native QEMU implementation for multi-process QEMU (I think JJ
> > > > has been investigating this?)
> > > >
> > > > In order to interoperate we'll need to maintain a protocol
> > > > specification. Mayb You and JJ could put that together and CC the vfio,
> > > > rust-vmm, and QEMU communities for discussion?
> > >
> > > Sure, I can start by drafting a design doc and share it.
> >
> > ok! I am quite amazed you went this far with a ldpreload hack. This
> > demonstrates some limits of gpl projects, if it was necessary.
> >
> > I think with this work, and the muser experience, you have a pretty
> > good idea of what the protocol could look like. My approach, as I
> > remember, was a quite straightforward VFIO over socket translation,
> > while trying to see if it could share some aspects with vhost-user,
> > such as memory handling etc.
> >
> > To contrast with the work done on qemu-mp series, I'd also prefer we
> > focus our work on a vfio-like protocol, before trying to see how qemu
> > code and interface could be changed over multiple binaries etc. We
> > will start with some limitations, similar to the one that apply to
> > VFIO: migration, introspection, managements etc are mostly left out
> > for now. (iow, qemu-mp is trying to do too many things simultaneously)
>
> qemu-mp has been cut down significantly in order to make it
> non-invasive. The model is now much cleaner:
> 1. No monitor command or command-line option forwarding. The device
> emulation program has its own command-line and monitor that QEMU
> doesn't know about.
> 2. No per-device proxy objects. A single RemotePCIDevice is added to
> QEMU. In the current patch series it only supports the LSI SCSI
> controller but once the socket protocol is changed to
> vfio-over-socket it will be possible to use any PCI device.
>
> We recently agreed on dropping live migration to further reduce the
> patch series. If you have specific suggestions, please post reviews on
> the latest patch series.
To clarify - the decision was to *temporarily* drop live migration, to
make the initial patch series smaller and thus easier to merge. It does
ultimately need live migration, so there would be followup patch series
to provide migration support, after the initial merge.
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:[~2020-04-02 10:48 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-26 9:47 RFC: use VFIO over a UNIX domain socket to implement device offloading Thanos Makatos
2020-03-27 10:37 ` Thanos Makatos
2020-04-01 9:17 ` Stefan Hajnoczi
2020-04-01 15:49 ` Thanos Makatos
2020-04-01 16:58 ` Marc-André Lureau
2020-04-02 10:19 ` Stefan Hajnoczi
2020-04-02 10:46 ` Daniel P. Berrangé [this message]
2020-04-03 12:03 ` Stefan Hajnoczi
2020-04-20 11:05 ` Thanos Makatos
2020-04-22 15:29 ` Stefan Hajnoczi
2020-04-27 10:58 ` Thanos Makatos
2020-04-30 11:23 ` Thanos Makatos
2020-04-30 11:40 ` Daniel P. Berrangé
2020-04-30 15:20 ` Thanos Makatos
2020-05-01 15:01 ` Felipe Franciosi
2020-05-01 15:28 ` Daniel P. Berrangé
2020-05-04 9:45 ` Stefan Hajnoczi
2020-05-04 17:49 ` John G Johnson
2020-05-11 14:37 ` Stefan Hajnoczi
2020-05-14 16:32 ` John G Johnson
2020-05-14 19:20 ` Alex Williamson
2020-05-21 0:45 ` John G Johnson
2020-06-02 15:06 ` Alex Williamson
2020-06-10 6:25 ` John G Johnson
2020-06-15 10:49 ` Stefan Hajnoczi
2020-06-18 21:38 ` John G Johnson
2020-06-23 12:27 ` Stefan Hajnoczi
2020-06-26 3:54 ` John G Johnson
2020-06-26 13:30 ` Stefan Hajnoczi
2020-07-02 6:23 ` John G Johnson
2020-07-15 10:15 ` 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=20200402104645.GF423991@redhat.com \
--to=berrange@redhat.com \
--cc=Kanth.Ghatraju@oracle.com \
--cc=alex.williamson@redhat.com \
--cc=benjamin.walker@intel.com \
--cc=changpeng.liu@intel.com \
--cc=dgilbert@redhat.com \
--cc=elena.ufimtseva@oracle.com \
--cc=felipe@nutanix.com \
--cc=jag.raman@oracle.com \
--cc=james.r.harris@intel.com \
--cc=john.g.johnson@oracle.com \
--cc=konrad.wilk@oracle.com \
--cc=kwankhede@nvidia.com \
--cc=marcandre.lureau@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=raphael.norwitz@nutanix.com \
--cc=stefanha@redhat.com \
--cc=swapnil.ingle@nutanix.com \
--cc=thanos.makatos@nutanix.com \
--cc=tina.zhang@intel.com \
/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).