From: Stefan Hajnoczi <stefanha@gmail.com>
To: Felipe Franciosi <felipe@nutanix.com>
Cc: "Elena Ufimtseva" <elena.ufimtseva@oracle.com>,
"John G Johnson" <john.g.johnson@oracle.com>,
"Daniel P. Berrange" <berrange@redhat.com>,
"Jag Raman" <jag.raman@oracle.com>,
"Swapnil Ingle" <swapnil.ingle@nutanix.com>,
"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
"Markus Armbruster" <armbru@redhat.com>,
"Thanos Makatos" <thanos.makatos@nutanix.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: Feedback on multi-process QEMU muser prototype
Date: Mon, 20 Jan 2020 10:41:03 +0000 [thread overview]
Message-ID: <20200120104103.GE345995@stefanha-x1.localdomain> (raw)
In-Reply-To: <75F8F7A2-0925-4010-97EA-F135C873087F@nutanix.com>
[-- Attachment #1: Type: text/plain, Size: 1812 bytes --]
On Wed, Jan 15, 2020 at 10:58:38AM +0000, Felipe Franciosi wrote:
> > On Jan 14, 2020, at 3:22 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> >
> > I haven't seen the link to the muser prototype shared on the list yet,
> > so I'm taking the liberty of posting it for discussion:
> > https://github.com/oracle/qemu/tree/multi-process-qemu-v0.4.1-muser
> >
> > Great that a lot of the multi-process patch series is no longer
> > necessary. The muser approach requires less code in QEMU.
> >
> > The following points came to mind:
> >
> > 1. Configure PCI configuration space, BARs, and MSI/IRQs based on the PCIDevice
> > instead of hard-coding the LSI SCSI controller's specifics. That way any
> > PCIDevice can run as an muser device.
> >
> > 2. Integrate with QEMU's event loop instead of spawning threads and calling
> > lm_ctx_run(). The event loop should monitor the muser fd for activity using
> > aio_set_fd_handler() and then call into libmuser to handle the event. This
> > will avoid thread model problems in the future and also allow true
> > multi-threading (IOThreads).
>
> Allowing muser to be used like that is in our to-do list.
>
> (+ Thanos / Swapnil).
>
> We have to extend muser.ko to allow the device file descriptor to be
> "pollable". Let me know how soon you want to see that so we can
> prioritise accordingly or assist someone in doing the work.
Last I talked with the multi-process QEMU team the discussion was about
moving forward with the existing QEMU patches and then moving to
VFIO-over-socket. libmuser makes a nice library API for device emulator
programs and I think it will be revisited when VFIO-over-socket
integration begins.
This makes the pollable fd less of a priority for QEMU at the moment.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2020-01-20 11:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-14 15:22 Feedback on multi-process QEMU muser prototype Stefan Hajnoczi
2020-01-15 10:58 ` Felipe Franciosi
2020-01-20 10:41 ` Stefan Hajnoczi [this message]
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=20200120104103.GE345995@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=elena.ufimtseva@oracle.com \
--cc=felipe@nutanix.com \
--cc=jag.raman@oracle.com \
--cc=john.g.johnson@oracle.com \
--cc=konrad.wilk@oracle.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=swapnil.ingle@nutanix.com \
--cc=thanos.makatos@nutanix.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).