This patch adds log for vring related info in handling of vhost message
VHOST_USER_SET_VRING_BASE, which will be useful in live migration case.
Signed-off-by: Andy Pei <andy.pei@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
vq->last_avail_idx = msg->payload.state.num;
}
+ VHOST_LOG_CONFIG(INFO,
+ "(%s) vring base idx:%u last_used_idx:%u last_avail_idx:%u.\n",
+ dev->ifname, msg->payload.state.index, vq->last_used_idx,
+ vq->last_avail_idx);
+
return RTE_VHOST_MSG_RESULT_OK;
}