vmm: Add 'hotplug_size' to memory zones

In anticipation for resizing support of an individual memory zone,
this commit introduces a new option 'hotplug_size' to '--memory-zone'
parameter. This defines the amount of memory that can be added through
each specific memory zone.

Because memory zone resize is tied to virtio-mem, make sure the user
selects 'virtio-mem' hotplug method, otherwise return an error.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-09-10 12:20:22 +02:00
parent 30ff7e108f
commit c645a72c17
5 changed files with 40 additions and 5 deletions

View File

@@ -477,6 +477,9 @@ components:
host_numa_node:
type: integer
format: uint32
hotplug_size:
type: integer
format: int64
MemoryConfig:
required: