summaryrefslogtreecommitdiffstats
path: root/hw/core
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-09-06 12:43:18 +0200
committerMichael S. Tsirkin2021-10-05 17:19:40 +0200
commitd6ed27bae717ceac9de0c53a31389143846b8465 (patch)
tree4f27cd9299a6636f9a1a5b43dbb740d5e614b8a0 /hw/core
parenthw/virtio: Acquire RCU read lock in virtqueue_packed_drop_all() (diff)
downloadqemu-d6ed27bae717ceac9de0c53a31389143846b8465.tar.gz
qemu-d6ed27bae717ceac9de0c53a31389143846b8465.tar.xz
qemu-d6ed27bae717ceac9de0c53a31389143846b8465.zip
hw/virtio: Have virtqueue_get_avail_bytes() pass caches arg to callees
Both virtqueue_packed_get_avail_bytes() and virtqueue_split_get_avail_bytes() access the region cache, but their caller also does. Simplify by having virtqueue_get_avail_bytes calling both with RCU lock held, and passing the caches as argument. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210906104318.1569967-4-philmd@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions