| 502 | } |
| 503 | |
| 504 | static inline int |
| 505 | virtqueue_kick_prepare_packed(struct virtqueue *vq) |
| 506 | { |
| 507 | uint16_t flags; |
| 508 | |
| 509 | /* |
| 510 | * Ensure updated data is visible to vhost before reading the flags. |
| 511 | */ |
| 512 | virtio_mb(vq->hw->weak_barriers); |
| 513 | flags = vq->vq_packed.ring.device->desc_event_flags; |
| 514 | |
| 515 | return flags != RING_EVENT_FLAGS_DISABLE; |
| 516 | } |
| 517 | |
| 518 | /* |
| 519 | * virtqueue_kick_prepare*() or the virtio_wmb() should be called |
no test coverage detected