diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-09-06 12:43:18 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-10-05 11:19:40 -0400 |
commit | d6ed27bae717ceac9de0c53a31389143846b8465 (patch) | |
tree | 4f27cd9299a6636f9a1a5b43dbb740d5e614b8a0 /util/cutils.c | |
parent | ab4dd2746c234f038206b3ccfe6bec1f19f98c24 (diff) |
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 'util/cutils.c')
0 files changed, 0 insertions, 0 deletions