MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vhost_user_iotlb_pending_miss

Function vhost_user_iotlb_pending_miss

dpdk/lib/vhost/iotlb.c:126–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool
127vhost_user_iotlb_pending_miss(struct virtio_net *dev, uint64_t iova, uint8_t perm)
128{
129 struct vhost_iotlb_entry *node;
130 bool found = false;
131
132 rte_rwlock_read_lock(&dev->iotlb_pending_lock);
133
134 TAILQ_FOREACH(node, &dev->iotlb_pending_list, next) {
135 if ((node->iova == iova) && (node->perm == perm)) {
136 found = true;
137 break;
138 }
139 }
140
141 rte_rwlock_read_unlock(&dev->iotlb_pending_lock);
142
143 return found;
144}
145
146void
147vhost_user_iotlb_pending_insert(struct virtio_net *dev, uint64_t iova, uint8_t perm)

Callers 1

__vhost_iova_to_vvaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected