mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Samuel Ortiz
parent
78dcb1862c
commit
82fce5a4e2
@@ -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 {
|
||||
|
||||
@@ -432,3 +432,5 @@ components:
|
||||
desired_vcpus:
|
||||
minimum: 1
|
||||
type: integer
|
||||
desired_ram:
|
||||
type: integer
|
||||
|
||||
Reference in New Issue
Block a user