From f23a8ac1b917681a3b1ba3e795d007eebc7729b0 Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Thu, 3 Jul 2014 00:23:14 +0000 Subject: [PATCH] Use correct flag for event index. Submitted by: luigi Obtained from: Vincenzo Maffione, Universita` di Pisa MFC after: 1 week --- usr.sbin/bhyve/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/virtio.c b/usr.sbin/bhyve/virtio.c index 4e58dd62a0e..1f273009293 100644 --- a/usr.sbin/bhyve/virtio.c +++ b/usr.sbin/bhyve/virtio.c @@ -437,7 +437,7 @@ vq_endchains(struct vqueue_info *vq, int used_all_avail) if (used_all_avail && (vs->vs_negotiated_caps & VIRTIO_F_NOTIFY_ON_EMPTY)) intr = 1; - else if (vs->vs_flags & VIRTIO_EVENT_IDX) { + else if (vs->vs_negotiated_caps & VIRTIO_RING_F_EVENT_IDX) { event_idx = VQ_USED_EVENT_IDX(vq); /* * This calculation is per docs and the kernel