vmm: Add 'guest_numa_node' option to 'memory-zone'

With the introduction of this new option, the user will be able to
describe if a particular memory zone should belong to a specific NUMA
node from a guest perspective.

For instance, using '--memory-zone size=1G,guest_numa_node=2' would let
the user describe that a memory zone of 1G in the guest should be
exposed as being associated with the NUMA node 2.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-08-27 13:06:40 +02:00
parent 274c001eab
commit 768dbd1fb0
4 changed files with 14 additions and 2 deletions

View file

@ -120,7 +120,8 @@ fn create_app<'a, 'b>(
.help(
"User defined memory zone parameters \
\"size=<guest_memory_region_size>,file=<backing_file>,\
shared=on|off,hugepages=on|off,host_numa_node=<node_id>\"",
shared=on|off,hugepages=on|off,host_numa_node=<node_id>,\
guest_numa_node=<node_id>\"",
)
.takes_value(true)
.min_values(1)