summaryrefslogtreecommitdiffstats
path: root/sys/dev/virtio/balloon
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2012-07-11 02:57:19 +0000
committergrehan <grehan@FreeBSD.org>2012-07-11 02:57:19 +0000
commit6183c30d852bea67cae2dfe81fe1a68eddc6f7a4 (patch)
tree8a3b140f852701f8138eab8df8ec1a28affa4d22 /sys/dev/virtio/balloon
parent74cb07ed813fc1f1be50beccddabbf364f38d296 (diff)
downloadFreeBSD-src-6183c30d852bea67cae2dfe81fe1a68eddc6f7a4.zip
FreeBSD-src-6183c30d852bea67cae2dfe81fe1a68eddc6f7a4.tar.gz
Various VirtIO improvements
PCI: - Properly handle interrupt fallback from MSIX to MSI to legacy. The host may not have sufficient resources to support MSIX, so we must be able to fallback to legacy interrupts. - Add interface to get the (sub) vendor and device IDs. - Rename flags to VTPCI_FLAG_* like other VirtIO drivers. Block: - No longer allocate vtblk_requests from separate UMA zone. malloc(9) from M_DEVBUF is sufficient. Assert segment counts at allocation. - More verbose error and debug messages. Network: - Remove stray write once variable. Virtqueue: - Shuffle code around in preparation of converting the mb()s to the appropriate atomic(9) operations. - Only walk the descriptor chain when freeing if INVARIANTS is defined since the result is only KASSERT()ed. Submitted by: Bryan Venteicher (bryanv@daemoninthecloset.org)
Diffstat (limited to 'sys/dev/virtio/balloon')
-rw-r--r--sys/dev/virtio/balloon/virtio_balloon.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/virtio/balloon/virtio_balloon.c b/sys/dev/virtio/balloon/virtio_balloon.c
index d589a73..9b45459 100644
--- a/sys/dev/virtio/balloon/virtio_balloon.c
+++ b/sys/dev/virtio/balloon/virtio_balloon.c
@@ -412,7 +412,6 @@ vtballoon_send_page_frames(struct vtballoon_softc *sc, struct virtqueue *vq,
* interrupt handler will wake us up.
*/
VTBALLOON_LOCK(sc);
-
while ((c = virtqueue_dequeue(vq, NULL)) == NULL)
msleep_spin(sc, VTBALLOON_MTX(sc), "vtbspf", 0);
VTBALLOON_UNLOCK(sc);
OpenPOWER on IntegriCloud