Re: [Qemu-devel] [PATCH 4/7] virtio: use MemoryRegionCache to access descriptors

2017-01-24 Thread Stefan Hajnoczi
On Fri, Jan 20, 2017 at 06:07:54PM +0100, Paolo Bonzini wrote: > For now, the cache is created on every virtqueue_pop. Later on, > direct descriptors will be able to reuse it. > > Signed-off-by: Paolo Bonzini > --- > hw/virtio/virtio.c | 91 > ++-

[Qemu-devel] [PATCH 4/7] virtio: use MemoryRegionCache to access descriptors

2017-01-20 Thread Paolo Bonzini
For now, the cache is created on every virtqueue_pop. Later on, direct descriptors will be able to reuse it. Signed-off-by: Paolo Bonzini --- hw/virtio/virtio.c | 91 ++ 1 file changed, 50 insertions(+), 41 deletions(-) diff --git a/hw/virtio