| 634 | } |
| 635 | |
| 636 | static __rte_always_inline void |
| 637 | vhost_log_used_vring(struct virtio_net *dev, struct vhost_virtqueue *vq, |
| 638 | uint64_t offset, uint64_t len) |
| 639 | { |
| 640 | if (unlikely(dev->features & (1ULL << VHOST_F_LOG_ALL))) { |
| 641 | if (unlikely(vq->log_guest_addr == 0)) |
| 642 | return; |
| 643 | __vhost_log_write(dev, vq->log_guest_addr + offset, len); |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | static __rte_always_inline void |
| 648 | vhost_log_cache_write_iova(struct virtio_net *dev, struct vhost_virtqueue *vq, |
no test coverage detected