aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2016-01-31 11:29:04 +0100
committerMichael S. Tsirkin <mst@redhat.com>2016-02-06 20:44:08 +0200
commitb796fcd1bf2978aed15748db04e054f34789e9eb (patch)
tree93261b84a89e31a55a29472ab256b32b066e0a5c /exec.c
parentaa570d6fb6bd0402f27f151a76fb1762e26231ac (diff)
downloadqemu-b796fcd1bf2978aed15748db04e054f34789e9eb.zip
qemu-b796fcd1bf2978aed15748db04e054f34789e9eb.tar.gz
qemu-b796fcd1bf2978aed15748db04e054f34789e9eb.tar.bz2
virtio: cache used_idx in a VirtQueue field
Accessing used_idx in the VQ requires an expensive access to guest physical memory. Before this patch, 3 accesses are normally done for each pop/push/notify call. However, since the used_idx is only written by us, we can track it in our internal data structure. Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com> Message-Id: <3d062ec54e9a7bf9fb325c1fd693564951f2b319.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>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions