vmm: Make Transparent Huge Pages controllable (default on)

Add MemoryConfig::thp and `--memory thp=on|off` to allow control of
Transparent Huge Pages.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-11-07 16:25:36 +00:00
parent b68add2d0d
commit f603afc46e
6 changed files with 32 additions and 4 deletions
+1
View File
@@ -2062,6 +2062,7 @@ mod unit_tests {
hugepage_size: None,
prefault: false,
zones: None,
thp: true,
},
payload: Some(PayloadConfig {
kernel: Some(PathBuf::from("/path/to/kernel")),