OSDN Git Service

virtio: use MemoryRegionCache to access descriptors
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 15:40:16 +0000 (16:40 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Feb 2017 19:52:30 +0000 (21:52 +0200)
commit5eba0404b98294906134c06519c272bfb5f50453
tree1b4b5492cd31c96ec473254d751a08e9989f4e3d
parent91047df38dffa80222179f63fbb74c1dfefa25ed
virtio: use MemoryRegionCache to access descriptors

For now, the cache is created on every virtqueue_pop.  Later on,
direct descriptors will be able to reuse it.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c
include/exec/memory.h