[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] dataplane, thread and gpu stuff
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] dataplane, thread and gpu stuff |
Date: |
Tue, 19 Nov 2013 15:20:12 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Nov 18, 2013 at 05:37:20PM +0100, Paolo Bonzini wrote:
> Il 18/11/2013 16:03, Stefan Hajnoczi ha scritto:
> > 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.
> >
> > Paolo can give you details on the latest thread-safe memory API stuff
> > and whether it's already usable for virtio.
>
> vring and virtio are still separate even in my latest patches. I have
> patches to convert vring to use memory_region_find instead of hostmem.
>
> > Regarding irqfd, we could emulate it in TCG using an EventNotifier
> > (eventfd). At that point I think it's no longer kvm-specific.
>
> I think he's talking about ioeventfd though.
ioeventfd can be emulated using EventNotifier too, although it depends
on the handler function whether or not it's worth deferring it to
another thread.
Stefan