Re: [Qemu-devel] [PATCH v4 04/11] dataplane: add virtqueue vring code

2012-12-05 Thread Stefan Hajnoczi
On Thu, Nov 29, 2012 at 02:50:01PM +0200, Michael S. Tsirkin wrote: > On Thu, Nov 22, 2012 at 04:16:45PM +0100, Stefan Hajnoczi wrote: > > The virtio-blk-data-plane cannot access memory using the usual QEMU > > functions since it executes outside the global mutex and the memory APIs > > are this ti

Re: [Qemu-devel] [PATCH v4 04/11] dataplane: add virtqueue vring code

2012-11-29 Thread Paolo Bonzini
> > +/* Toggle guest->host notifies */ > > +void vring_set_notification(VirtIODevice *vdev, Vring *vring, bool > > enable) > > +{ > > +if (vdev->guest_features & (1 << VIRTIO_RING_F_EVENT_IDX)) { > > +if (enable) { > > +vring_avail_event(&vring->vr) = vring->vr.avail->idx;

Re: [Qemu-devel] [PATCH v4 04/11] dataplane: add virtqueue vring code

2012-11-29 Thread Michael S. Tsirkin
On Thu, Nov 22, 2012 at 04:16:45PM +0100, Stefan Hajnoczi wrote: > The virtio-blk-data-plane cannot access memory using the usual QEMU > functions since it executes outside the global mutex and the memory APIs > are this time are not thread-safe. > > This patch introduces a virtqueue module based

Re: [Qemu-devel] [PATCH v4 04/11] dataplane: add virtqueue vring code

2012-11-29 Thread Michael S. Tsirkin
On Thu, Nov 22, 2012 at 04:16:45PM +0100, Stefan Hajnoczi wrote: > The virtio-blk-data-plane cannot access memory using the usual QEMU > functions since it executes outside the global mutex and the memory APIs > are this time are not thread-safe. > > This patch introduces a virtqueue module based