From: Stefan Hajnoczi <stefanha@gmail.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Dave Airlie <airlied@gmail.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] dataplane, thread and gpu stuff
Date: Tue, 19 Nov 2013 15:20:53 +0100 [thread overview]
Message-ID: <20131119142053.GC3202@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CA+aC4kuGJ=SzOoEk25_NfO24d+qVbqsBV9ysOUzFPUF=44o=wg@mail.gmail.com>
On Mon, Nov 18, 2013 at 08:18:47AM -0800, Anthony Liguori wrote:
> On Nov 18, 2013 7:05 AM, "Stefan Hajnoczi" <stefanha@gmail.com> wrote:
> >
> > On Mon, Nov 18, 2013 at 02:52:53PM +1000, Dave Airlie wrote:
> > > So after talking to a few people at kvm forum I think the GPU code
> > > should probably use the dataplane stuff from the outset,
> > >
> > > The main advantages I think this gives me is being able to dequeue
> > > objects from the vq from a thread and send irq vectors from there as
> > > well.
> > >
> > > Though since it appears the dataplane stuff is kvm specific (at least
> > > the irq handling), I was wondering how I should deal with fallbacks
> > > for non-kvm operation, and quite how much falling back I need to do.
> > >
> > > Can I still use the dataplane/vring code from the normal bottom half
> > > handlers or do I have to write separate code for both situations.
> >
> > As of today, there are still two vring implementations in
> > hw/virtio/virtio.c and hw/virtio/dataplane/vring.c. This means it isn't
> > clean and easy to integrate into a new device yet. Existing dataplane
> > devices basically take advantage of the fact that the non-dataplane
> > version sets up the device before I/O.
>
> I think we also need some form of mdroth's GContext prior to introducing
> more dataplane devices. Sticking every device in a seperate thread with no
> way to control who is where can actually hurt performance. I think we
> really need to have a M-N device thread model too.
Yes, I agree. We need the concept of multiple event loops (QContext).
Stefan
next prev parent reply other threads:[~2013-11-19 14:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 4:52 [Qemu-devel] dataplane, thread and gpu stuff Dave Airlie
2013-11-18 15:03 ` Stefan Hajnoczi
2013-11-18 16:18 ` Anthony Liguori
2013-11-19 14:20 ` Stefan Hajnoczi [this message]
2013-11-18 16:37 ` Paolo Bonzini
2013-11-19 14:20 ` 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=20131119142053.GC3202@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=airlied@gmail.com \
--cc=anthony@codemonkey.ws \
--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).