Hi,
I was debugging an issue caused by a bad usage of dpdk.
That is fixed in the meantime and I'll backport that into our code as well.
The following code can become an infinite loop:
/* Spin for a response, the kick causes an ioport write, trapping
* into the hypervisor, so the request should be handled immediately.
*/
while (!virtqueue_get_buf(vi->cvq, &tmp) &&
!virtqueue_is_broken(vi->cvq))
cpu_relax();
In my case dpdk broke something - not exactly clear what - and due to that following calls through virtnet_send_command ran into this hang.
Effectively it seems that the buffers didn't get refreshed at all anymore.
That said the dpdk issue to touch devices that belong to a kernel owned driver is fixed, so one could leave the code as is for now.
Yet I wanted to make you aware in case you would vote for a time or retry based upper limit on that loop to avoid hangs - who knows what else might bring it in this broken state in a different case.
Kind Regards,
Christian EhrhardtP.S.
Steps to reproduce, backtraces and more data can be found in:
A general setup howto for DPDK in KVM guests which is a prereq is at:
_______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization