summaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2016-03-04 06:24:52 -0500
committerAlistair Strachan <astrachan@google.com>2019-01-15 17:08:33 -0800
commit29181c5bfa697b4bf0f80999c16f5906869fbb9b (patch)
tree72d262e32e7ee693db75623ed4d08e31dd7f08da /lib/test-string_helpers.c
parent2dd59f910bfddc78e7314782b7d060a74abc57c5 (diff)
UPSTREAM: vhost: introduce vhost_vq_avail_empty()
This patch introduces a helper which will return true if we're sure that the available ring is empty for a specific vq. When we're not sure, e.g vq access failure, return false instead. This could be used for busy polling code to exit the busy loop. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit d4a60603fa0b42012decfa058dfa44cffde7a10c) Bug: 121166534 Test: Ran cuttlefish with android-4.4 + VSOCKETS, VMWARE_VMCI_VSOCKETS Signed-off-by: Alistair Strachan <astrachan@google.com> Change-Id: I1d4e972543470530a5bc37e19f4199b1f345e042
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions