tests: Use hugepages for test_vfio

Using hugepages with VFIO and virtiofs can improve the performance of
the test_vfio test.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
(cherry picked from commit 5c9828a34c)
This commit is contained in:
Rob Bradford
2020-02-13 14:32:24 +00:00
parent 27c1b40c83
commit 548ef43ca2
3 changed files with 9 additions and 3 deletions

View File

@@ -3830,7 +3830,7 @@ mod tests {
let mut child = Command::new("target/release/cloud-hypervisor")
.args(&["--cpus", "boot=4"])
.args(&["--memory", "size=1G,file=/dev/shm"])
.args(&["--memory", "size=1G,file=/dev/hugepages"])
.args(&["--kernel", kernel_path.to_str().unwrap()])
.args(&[
"--disk",