vmm: config: Extend CpusConfig to add the topology

This allows the user to optionally specify the desired CPU topology. All
parts of the topology must be specified and the product of all parts
must match the maximum vCPUs.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-06-16 10:56:36 +01:00
committed by Sebastien Boeuf
parent 9099b067e1
commit 4a0439a993
3 changed files with 118 additions and 2 deletions

View File

@@ -487,6 +487,7 @@ mod unit_tests {
cpus: CpusConfig {
boot_vcpus: 1,
max_vcpus: 1,
topology: None,
},
memory: MemoryConfig {
size: 536_870_912,