svn commit: r360107 - head/sys/amd64/vmm

Conrad Meyer cem at FreeBSD.org
Sun Apr 19 23:53:47 UTC 2020


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:


More information about the svn-src-all mailing list