diff options
author | Jason Wang <jasowang@redhat.com> | 2019-05-24 10:12:15 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-06-05 22:23:52 +0200 |
commit | 9b5e830b7120847da6c636af2d101f8380e73fa0 (patch) | |
tree | f845f50bb0681e801b9ca4c670a662302b1da651 /drivers/vhost/vhost.c | |
parent | vhost: fine grain userspace memory accessors (diff) | |
download | linux-9b5e830b7120847da6c636af2d101f8380e73fa0.tar.xz linux-9b5e830b7120847da6c636af2d101f8380e73fa0.zip |
vhost: rename vq_iotlb_prefetch() to vq_meta_prefetch()
Rename the function to be more accurate since it actually tries to
prefetch vq metadata address in IOTLB. And this will be used by
following patch to prefetch metadata virtual addresses.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/vhost.c')
-rw-r--r-- | drivers/vhost/vhost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index b89faedbb9bd..a0f2fbf35a27 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -1331,7 +1331,7 @@ static bool iotlb_access_ok(struct vhost_virtqueue *vq, return true; } -int vq_iotlb_prefetch(struct vhost_virtqueue *vq) +int vq_meta_prefetch(struct vhost_virtqueue *vq) { size_t s = vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX) ? 2 : 0; unsigned int num = vq->num; @@ -1350,7 +1350,7 @@ int vq_iotlb_prefetch(struct vhost_virtqueue *vq) num * sizeof(*vq->used->ring) + s, VHOST_ADDR_USED); } -EXPORT_SYMBOL_GPL(vq_iotlb_prefetch); +EXPORT_SYMBOL_GPL(vq_meta_prefetch); /* Can we log writes? */ /* Caller should have device mutex but not vq mutex */ |