summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2015-05-14 21:08:48 +0000
committergrehan <grehan@FreeBSD.org>2015-05-14 21:08:48 +0000
commit288de166c45a373e52635180d407f31fbb3393f2 (patch)
tree2617f8f116381ece4f593187a2e09b641c4ea695 /usr.sbin/bhyve
parent32fd2595135d93f20fc8f390af020262ca99fe6d (diff)
downloadFreeBSD-src-288de166c45a373e52635180d407f31fbb3393f2.zip
FreeBSD-src-288de166c45a373e52635180d407f31fbb3393f2.tar.gz
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
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r--usr.sbin/bhyve/block_if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/block_if.h b/usr.sbin/bhyve/block_if.h
index 8e63407..b1849a6 100644
--- a/usr.sbin/bhyve/block_if.h
+++ b/usr.sbin/bhyve/block_if.h
@@ -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];
OpenPOWER on IntegriCloud