| 491 | } |
| 492 | |
| 493 | static inline int |
| 494 | virtqueue_kick_prepare(struct virtqueue *vq) |
| 495 | { |
| 496 | /* |
| 497 | * Ensure updated avail->idx is visible to vhost before reading |
| 498 | * the used->flags. |
| 499 | */ |
| 500 | virtio_mb(vq->hw->weak_barriers); |
| 501 | return !(vq->vq_split.ring.used->flags & VRING_USED_F_NO_NOTIFY); |
| 502 | } |
| 503 | |
| 504 | static inline int |
| 505 | virtqueue_kick_prepare_packed(struct virtqueue *vq) |
no test coverage detected