Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2015 21:08:48 +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: r282922 - head/usr.sbin/bhyve
Message-ID:  <201505142108.t4EL8mYx053584@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505142108.t4EL8mYx053584>