Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2020 23:53:47 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360107 - head/sys/amd64/vmm
Message-ID:  <202004192353.03JNrlh4065558@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Sun Apr 19 23:53:47 2020
New Revision: 360107
URL: https://svnweb.freebsd.org/changeset/base/360107

Log:
  vmm(4): Bump VM_MAX_MEMMAPS for vmgenid
  
  As a short term solution for the problem reported by Shawn Webb re: r359950,
  bump the maximum number of memmaps per VM. This structure is 40 bytes, and the
  additional four (fixed array embedded in the struct vm) members increase the
  size of struct vm by 3%.
  
  (The vast majority of struct vm is the embedded struct vcpu array, which
  accounts for 84% of the size -- over 4 kB.)
  
  Reported by:	Shawn Webb <shawn.webb AT hardenedbsd.org>
  Reviewed by:	grehan
  X-MFC-With:	r359950
  Differential Revision:	https://reviews.freebsd.org/D24507

Modified:
  head/sys/amd64/vmm/vmm.c

Modified: head/sys/amd64/vmm/vmm.c
==============================================================================
--- head/sys/amd64/vmm/vmm.c	Sun Apr 19 21:38:03 2020	(r360106)
+++ head/sys/amd64/vmm/vmm.c	Sun Apr 19 23:53:47 2020	(r360107)
@@ -134,7 +134,7 @@ struct mem_map {
 	int		prot;
 	int		flags;
 };
-#define	VM_MAX_MEMMAPS	4
+#define	VM_MAX_MEMMAPS	8
 
 /*
  * Initialization:



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