vmm: Extend --numa parameter with NUMA node distances

By introducing 'distances' option, we let the user describe a list of
destination NUMA nodes with their associated distances compared to the
current node (defined through 'id').

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-08-31 14:20:20 +02:00
parent d6fc18da9e
commit a5a29134ca
3 changed files with 82 additions and 4 deletions

View File

@@ -721,6 +721,19 @@ components:
type: boolean
default: false
NumaDistance:
required:
- destination
- distance
type: object
properties:
destination:
type: integer
format: uint32
distance:
type: integer
format: uint8
NumaConfig:
required:
- id
@@ -734,6 +747,10 @@ components:
items:
type: integer
format: uint8
distances:
type: array
items:
$ref: '#/components/schemas/NumaDistance'
VmResize:
type: object