virtio-net: fix network stall under load
authorTom Lendacky <tahm@linux.vnet.ibm.com>
Mon, 8 Feb 2010 16:10:01 +0000 (10:10 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 10 Feb 2010 18:48:48 +0000 (12:48 -0600)
commita1f6cf33b85c903f630949f18596ed65efc605b2
tree7850b2ee2927dc4574ffcf142153566f7b77d070
parent2988030cfca6917e763c5d272af13ca62ffbe785
virtio-net: fix network stall under load

Fix a race condition where qemu finds that there are not enough virtio
ring buffers available and the guest make more buffers available before
qemu can enable notifications.

Signed-off-by: Tom Lendacky <toml@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-net.c