virtio: add MemoryListener to cache ring translations
commitc611c76417f52b335ecaab01c61743e3b705eb7c
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 15:40:17 +0000 (27 16:40 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Feb 2017 19:52:30 +0000 (17 21:52 +0200)
treea8cec626b13d7fccd8f43857745c1a27d6f3db70
parent5eba0404b98294906134c06519c272bfb5f50453
virtio: add MemoryListener to cache ring translations

The cached translations are RCU-protected to allow efficient use
when processing virtqueues.

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/hw/virtio/virtio.h