mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: memory_manager: Apply NUMA policy to memory zones
Relying on the new option 'host_numa_node' from the 'memory-zone' parameter, the user can now define which NUMA node from the host should be used to back the current memory zone. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -2217,7 +2217,12 @@ mod tests {
|
||||
let mut cmd = GuestCommand::new(&guest);
|
||||
cmd.args(&["--cpus", "boot=1"])
|
||||
.args(&["--memory", "size=0"])
|
||||
.args(&["--memory-zone", "size=1G", "size=3G,file=/dev/shm"])
|
||||
.args(&[
|
||||
"--memory-zone",
|
||||
"size=1G",
|
||||
"size=3G,file=/dev/shm",
|
||||
"size=1G,host_numa_node=0",
|
||||
])
|
||||
.args(&["--kernel", guest.fw_path.as_str()])
|
||||
.default_disks()
|
||||
.default_net();
|
||||
|
||||
Reference in New Issue
Block a user