virtio: combine write of an entry into used ring
commit1cdd2ee54a61ed288e56bd57a649ec50a5a88e8b
authorVincenzo Maffione <v.maffione@gmail.com>
Sun, 31 Jan 2016 10:29:06 +0000 (31 11:29 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 6 Feb 2016 18:44:08 +0000 (6 20:44 +0200)
tree85f503768e3e57783637645c86cc2f3197ad6981
parentbe1fea9bc286f64c6c995bb0d7145a0b738aeddb
virtio: combine write of an entry into used ring

Fill in an element of the used ring with a single combined access to the
guest physical memory, rather than using two separated accesses.
This reduces the overhead due to expensive address translation.

Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
Message-Id: <e4a89a767a4a92cbb6bcc551e151487eb36e1722.1450218353.git.v.maffione@gmail.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.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