vmm: Add support for resizing the memory used by the VM

For now the new memory size is only used after a reboot but support for
hotplugging memory will be added in a later commit.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-01-10 15:52:23 +00:00
committed by Samuel Ortiz
parent 78dcb1862c
commit 82fce5a4e2
4 changed files with 17 additions and 4 deletions

View File

@@ -116,6 +116,7 @@ pub struct VmmPingResponse {
#[derive(Clone, Deserialize, Serialize)]
pub struct VmResizeData {
pub desired_vcpus: Option<u8>,
pub desired_ram: Option<u64>,
}
pub enum ApiResponsePayload {

View File

@@ -432,3 +432,5 @@ components:
desired_vcpus:
minimum: 1
type: integer
desired_ram:
type: integer