vhost: obey VRING_AVAIL_F_NO_INTERRUPT
If VRING_AVAIL_F_NO_INTERRUPT flag for queue is negotiated, guest can set this flag in avail ring to suppress interrupts from host. Change-Id: I2043067de33da009a974be5915ae81b1343fc424 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
This commit is contained in:
parent
bf31637789
commit
66894635fa
@ -240,8 +240,10 @@ vq_used_ring_enqueue(struct rte_vhost_vring *vq, uint16_t id, uint32_t len)
|
|||||||
rte_compiler_barrier();
|
rte_compiler_barrier();
|
||||||
|
|
||||||
vq->used->idx = vq->last_used_idx;
|
vq->used->idx = vq->last_used_idx;
|
||||||
|
if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT)) {
|
||||||
eventfd_write(vq->callfd, (eventfd_t)1);
|
eventfd_write(vq->callfd, (eventfd_t)1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
vring_desc_has_next(struct vring_desc *cur_desc)
|
vring_desc_has_next(struct vring_desc *cur_desc)
|
||||||
|
Loading…
Reference in New Issue
Block a user