Date: Thu, 3 Jul 2014 00:23:14 +0000 (UTC) From: Peter Grehan <grehan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268202 - head/usr.sbin/bhyve Message-ID: <201407030023.s630NEWP093013@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407030023.s630NEWP093013>