main, vmm: Let the user define distincts memory zones

Introducing a new CLI option --memory-zone letting the user specify
custom memory zones. When this option is present, the --memory size
must be explicitly set to 0.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-08-18 15:19:49 +02:00
committed by Samuel Ortiz
parent d25ec66bb6
commit be475ddc22
3 changed files with 123 additions and 11 deletions

View File

@@ -448,6 +448,27 @@ components:
topology:
$ref: '#/components/schemas/CpuTopology'
MemoryZoneConfig:
required:
- size
type: object
properties:
size:
type: integer
format: int64
default: 512 MB
file:
type: string
mergeable:
type: boolean
default: false
shared:
type: boolean
default: false
hugepages:
type: boolean
default: false
MemoryConfig:
required:
- size
@@ -477,6 +498,10 @@ components:
balloon:
type: boolean
default: false
zones:
type: array
items:
$ref: '#/components/schemas/MemoryZoneConfig'
KernelConfig:
required: