We provide additional debug message when notify the host of
additional buffer and the descriptor information while enqueuing
a buffer into the ring.
Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Reviewed-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
{
UK_ASSERT(vq);
- if (vq->vq_notify_host && virtqueue_notify_enabled(vq))
+ if (vq->vq_notify_host && virtqueue_notify_enabled(vq)) {
+ uk_pr_debug("notify queue %d\n", vq->queue_id);
vq->vq_notify_host(vq->vdev, vq->queue_id);
+ }
}
#ifdef __cplusplus
vrq->head_free_desc = idx;
vrq->desc_avail -= total_desc;
+ uk_pr_debug("Old head:%d, new head:%d, total_desc:%d\n",
+ head_idx, idx, total_desc);
+
virtqueue_ring_update_avail(vrq, head_idx);
return vrq->desc_avail;
}