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

Peter Grehan grehan at FreeBSD.org
Thu May 14 21:08:49 UTC 2015


Author: grehan
Date: Thu May 14 21:08:48 2015
New Revision: 282922
URL: https://svnweb.freebsd.org/changeset/base/282922

Log:
  Bump the size of the blockif scatter-gather list to 67.
  
  The Windows virtio driver ignores the advertized seg_max
  field and assumes the host can accept up to 67 segments
  in indirect descriptors, triggering an assert in the bhyve
  process.
  
  No objection from:	mav
  Reviewed by:	neel
  Reported and tested by:	Leon Dang (ldang at nahannisys.com)
  MFC after:	2 weeks

Modified:
  head/usr.sbin/bhyve/block_if.h

Modified: head/usr.sbin/bhyve/block_if.h
==============================================================================
--- head/usr.sbin/bhyve/block_if.h	Thu May 14 20:19:22 2015	(r282921)
+++ head/usr.sbin/bhyve/block_if.h	Thu May 14 21:08:48 2015	(r282922)
@@ -39,7 +39,7 @@
 #include <sys/uio.h>
 #include <sys/unistd.h>
 
-#define BLOCKIF_IOV_MAX		33	/* not practical to be IOV_MAX */
+#define BLOCKIF_IOV_MAX		67	/* not practical to be IOV_MAX */
 
 struct blockif_req {
 	struct iovec	br_iov[BLOCKIF_IOV_MAX];


More information about the svn-src-all mailing list