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

Function __vhost_log_cache_write_iova

dpdk/lib/vhost/vhost.c:286–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void
287__vhost_log_cache_write_iova(struct virtio_net *dev, struct vhost_virtqueue *vq,
288 uint64_t iova, uint64_t len)
289{
290 uint64_t hva, gpa, map_len;
291 map_len = len;
292
293 hva = __vhost_iova_to_vva(dev, vq, iova, &map_len, VHOST_ACCESS_RW);
294 if (map_len != len) {
295 VHOST_LOG_DATA(dev->ifname, ERR,
296 "failed to write log for IOVA 0x%" PRIx64 ". No IOTLB entry found\n",
297 iova);
298 return;
299 }
300
301 gpa = hva_to_gpa(dev, hva, len);
302 if (gpa)
303 __vhost_log_cache_write(dev, vq, gpa, len);
304}
305
306void *
307vhost_alloc_copy_ind_table(struct virtio_net *dev, struct vhost_virtqueue *vq,

Callers 1

vhost.hFile · 0.85

Calls 3

__vhost_iova_to_vvaFunction · 0.85
__vhost_log_cache_writeFunction · 0.85
hva_to_gpaFunction · 0.70

Tested by

no test coverage detected