From 40b38a422267b98b1d9f9117727a41284151f4a4 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Thu, 12 Mar 2020 20:11:12 +0000 Subject: [PATCH] openapi: Make desired_ram int64 format The option desired_ram is in byte, make larger the amount of memory to add. Signed-off-by: Jose Carlos Venegas Munoz --- docs/hotplug.md | 2 +- vmm/src/api/openapi/cloud-hypervisor.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/hotplug.md b/docs/hotplug.md index 84bb838e5..e3e11629e 100644 --- a/docs/hotplug.md +++ b/docs/hotplug.md @@ -91,7 +91,7 @@ Before issuing the API request it is necessary to run the following command insi root@ch-guest ~ # echo online | sudo tee /sys/devices/system/memory/auto_online_blocks ``` -To ask the VMM to add expand the RAM for the VM: +To ask the VMM to add expand the RAM for the VM (request is in bytes): ```shell curl -H "Accept: application/json" -H "Content-Type: application/json" -i -XPUT --unix-socket /tmp/ch-socket -d "{ \"desired_vcpus\": 4, \"desired_ram\" : 3221225472}" http://localhost/api/v1/vm.resize diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index b49e6a37d..cf29e802a 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -460,7 +460,9 @@ components: minimum: 1 type: integer desired_ram: + description: desired memory ram in bytes type: integer + format: int64 VmAddDevice: type: object