svn commit: r268202 - head/usr.sbin/bhyve

Peter Grehan grehan at FreeBSD.org
Thu Jul 3 00:23:15 UTC 2014


Author: grehan
Date: Thu Jul  3 00:23:14 2014
New Revision: 268202
URL: http://svnweb.freebsd.org/changeset/base/268202

Log:
  Use correct flag for event index.
  
  Submitted by:	luigi
  Obtained from:	Vincenzo Maffione, Universita` di Pisa
  MFC after:	1 week

Modified:
  head/usr.sbin/bhyve/virtio.c

Modified: head/usr.sbin/bhyve/virtio.c
==============================================================================
--- head/usr.sbin/bhyve/virtio.c	Wed Jul  2 23:57:55 2014	(r268201)
+++ head/usr.sbin/bhyve/virtio.c	Thu Jul  3 00:23:14 2014	(r268202)
@@ -437,7 +437,7 @@ vq_endchains(struct vqueue_info *vq, int
 	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


More information about the svn-src-all mailing list