svn commit: r366841 - head/sys/kern

Mark Johnston markj at FreeBSD.org
Mon Oct 19 16:58:00 UTC 2020


Author: markj
Date: Mon Oct 19 16:57:59 2020
New Revision: 366841
URL: https://svnweb.freebsd.org/changeset/base/366841

Log:
  link_elf_obj: Colour VM objects
  
  This will cause the VM to back sufficiently large .text sections, such
  as those in zfs.ko or amdgpu.ko on amd64, with superpage mappings when
  possible.
  
  Reviewed by:	alc, kib
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D26802

Modified:
  head/sys/kern/link_elf_obj.c

Modified: head/sys/kern/link_elf_obj.c
==============================================================================
--- head/sys/kern/link_elf_obj.c	Mon Oct 19 16:57:40 2020	(r366840)
+++ head/sys/kern/link_elf_obj.c	Mon Oct 19 16:57:59 2020	(r366841)
@@ -914,6 +914,9 @@ link_elf_load_file(linker_class_t cls, const char *fil
 		error = ENOMEM;
 		goto out;
 	}
+#if VM_NRESERVLEVEL > 0
+	vm_object_color(ef->object, 0);
+#endif
 
 	/*
 	 * In order to satisfy amd64's architectural requirements on the


More information about the svn-src-all mailing list