virtio: use address_space_map/unmap to access descriptors
commit9796d0ac8fb0a8d522afd409cb25a607eae61617
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 15:40:14 +0000 (27 16:40 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Feb 2017 19:52:30 +0000 (17 21:52 +0200)
tree0d704af105929c29255ba011813dad3694ace59a
parente6a830d6eba6ed116a0b4ef5577ca0b46edf4c67
virtio: use address_space_map/unmap to access descriptors

This makes little difference, but it makes the code change smaller
for the next patch that introduces MemoryRegionCache.  This is
because map/unmap are similar to MemoryRegionCache init/destroy.

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