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

Konstantin Belousov kib at FreeBSD.org
Thu Nov 12 00:51:53 UTC 2020


Author: kib
Date: Thu Nov 12 00:51:53 2020
New Revision: 367607
URL: https://svnweb.freebsd.org/changeset/base/367607

Log:
  bhyve: increase allowed size for 64bit BAR allocation below 4G from 32 to 128 MB.
  
  Reviewed by:	grehan
  Sponsored by:	The FreeBSD Foundation
  MFC after:	2 weeks
  Differential revision:	https://reviews.freebsd.org/D27095

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

Modified: head/usr.sbin/bhyve/pci_emul.c
==============================================================================
--- head/usr.sbin/bhyve/pci_emul.c	Thu Nov 12 00:46:53 2020	(r367606)
+++ head/usr.sbin/bhyve/pci_emul.c	Thu Nov 12 00:51:53 2020	(r367607)
@@ -625,9 +625,9 @@ pci_emul_alloc_pbar(struct pci_devinst *pdi, int idx, 
 		 * Some drivers do not work well if the 64-bit BAR is allocated
 		 * above 4GB. Allow for this by allocating small requests under
 		 * 4GB unless then allocation size is larger than some arbitrary
-		 * number (32MB currently).
+		 * number (128MB currently).
 		 */
-		if (size > 32 * 1024 * 1024) {
+		if (size > 128 * 1024 * 1024) {
 			/*
 			 * XXX special case for device requiring peer-peer DMA
 			 */


More information about the svn-src-head mailing list