main, vmm: Add new --numa parameter

Through this new parameter, we give users the opportunity to specify a
set of CPUs attached to a NUMA node that has been previously created
from the --memory-zone parameter.

This parameter will be extended in the future to describe the distance
between multiple nodes.

For instance, if a user wants to attach CPUs 0, 1, 2 and 6 to a NUMA
node, here are two different ways of doing so:
Either
	./cloud-hypervisor ... --numa id=0,cpus=0-2:6
Or
	./cloud-hypervisor ... --numa id=0,cpus=0:1:2:6

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-08-28 18:20:12 +02:00
parent 36171caba9
commit 42f963d6f2
4 changed files with 120 additions and 1 deletions

View File

@@ -413,6 +413,10 @@ components:
type: array
items:
$ref: '#/components/schemas/SgxEpcConfig'
numa:
type: array
items:
$ref: '#/components/schemas/NumaConfig'
iommu:
type: boolean
default: false
@@ -717,6 +721,20 @@ components:
type: boolean
default: false
NumaConfig:
required:
- id
type: object
properties:
id:
type: integer
format: uint32
cpus:
type: array
items:
type: integer
format: uint8
VmResize:
type: object
properties: