diff options
| author | Jason Wang <jasowang@redhat.com> | 2016-03-04 06:24:52 -0500 |
|---|---|---|
| committer | Alistair Strachan <astrachan@google.com> | 2019-05-14 17:56:53 -0700 |
| commit | 179cda3b96b1edc266daa8773938f64c6a0639e1 (patch) | |
| tree | 778d24125b59b2ba04c33944e49073c43e38752d /lib/debugobjects.c | |
| parent | eb7e61ae8c0aa8b1e9d3e36a055785da096d0f0e (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/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
