]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-vdpa: change name and polarity for vhost_vdpa_one_time_request()
authorSi-Wei Liu <si-wei.liu@oracle.com>
Sat, 7 May 2022 02:28:17 +0000 (19:28 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 May 2022 20:15:41 +0000 (16:15 -0400)
commitd71b0609fc04217e28d17009f04d74b08be6f466
tree5367096083d3269189fabc7fd619a1411890069f
parent6aee7e4233f6467f69531fcd352adff028f3f5ea
vhost-vdpa: change name and polarity for vhost_vdpa_one_time_request()

The name vhost_vdpa_one_time_request() was confusing. No
matter whatever it returns, its typical occurrence had
always been at requests that only need to be applied once.
And the name didn't suggest what it actually checks for.
Change it to vhost_vdpa_first_dev() with polarity flipped
for better readibility of code. That way it is able to
reflect what the check is really about.

This call is applicable to request which performs operation
only once, before queues are set up, and usually at the beginning
of the caller function. Document the requirement for it in place.

Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Message-Id: <1651890498-24478-7-git-send-email-si-wei.liu@oracle.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>
Acked-by: Jason Wang <jasowang@redhat.com>
hw/virtio/vhost-vdpa.c