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

@@ -396,6 +396,18 @@ components:
default: false
description: Virtual machine configuration
CpuTopology:
type: object
properties:
threads_per_core:
type: integer
cores_per_die:
type: integer
dies_per_package:
type: integer
packages:
type: integer
CpusConfig:
required:
- boot_vcpus
@@ -410,6 +422,8 @@ components:
minimum: 1
default: 1
type: integer
topology:
$ref: '#/components/schemas/CpuTopology'
MemoryConfig:
required: