summaryrefslogtreecommitdiffstats
path: root/sys/boot/forth
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2015-04-29 15:57:14 +0000
committerscottl <scottl@FreeBSD.org>2015-04-29 15:57:14 +0000
commitcac1f63fc81939aa1d40ae21f1ba61254985c8c2 (patch)
tree30c1b4d4f42d182a3a951b4ae53f192154ae3ffc /sys/boot/forth
parentb7942492e4ad09c98b966b7ea5ba3dd8f4ba763f (diff)
downloadFreeBSD-src-cac1f63fc81939aa1d40ae21f1ba61254985c8c2.zip
FreeBSD-src-cac1f63fc81939aa1d40ae21f1ba61254985c8c2.tar.gz
Improve support for blacklisting bad memory locations. The user can supply
a text file with a list of physical memory addresses to exclude, and have it loaded at boot time via the provided example in loader.conf. The tunable 'vm.blacklist' remains, but using an external file means that there's no practical limit to the size of the list. This change also improves the scanning algorithm for processing the list, scanning the list only once instead of scanning it for every page in the system. Both the sysctl and the file can be unsorted and contain duplicates so long as each entry is numeric (decimal or hex) and is separated by a space, comma, or newline character. The sysctl 'vm.page_blacklist' is now provided to report what memory locations were successfully excluded. Reviewed by: imp, emax Obtained from: Netflix, Inc. MFC after: 3 days
Diffstat (limited to 'sys/boot/forth')
-rw-r--r--sys/boot/forth/loader.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/boot/forth/loader.conf b/sys/boot/forth/loader.conf
index 275a58b..240e403 100644
--- a/sys/boot/forth/loader.conf
+++ b/sys/boot/forth/loader.conf
@@ -48,6 +48,16 @@ entropy_cache_type="/boot/entropy"
#kern.random.sys.seeded="0" # Set this to 1 to start /dev/random
# without waiting for a (re)seed.
+##############################################################
+### RAM Blacklist configuration #############################
+##############################################################
+
+ram_blacklist_load="NO" # Set this to YES to load a file
+ # containing a list of addresses to
+ # exclude from the running system.
+ram_blacklist_name="/boot/blacklist.txt" # Set this to the name of the file
+ram_blacklist_type="ram_blacklist" # Required for the kernel to find
+ # the blacklist module
##############################################################
### Loader settings ########################################
OpenPOWER on IntegriCloud