diff options
author | Si-Wei Liu <si-wei.liu@oracle.com> | 2022-05-06 19:28:17 -0700 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-05-16 16:15:41 -0400 |
commit | d71b0609fc04217e28d17009f04d74b08be6f466 (patch) | |
tree | 5367096083d3269189fabc7fd619a1411890069f /softmmu | |
parent | 6aee7e4233f6467f69531fcd352adff028f3f5ea (diff) | |
download | qemu-d71b0609fc04217e28d17009f04d74b08be6f466.zip qemu-d71b0609fc04217e28d17009f04d74b08be6f466.tar.gz qemu-d71b0609fc04217e28d17009f04d74b08be6f466.tar.bz2 |
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>
Diffstat (limited to 'softmmu')
0 files changed, 0 insertions, 0 deletions