File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ specification:
104
104
| ` MemoryHotplugConfig ` | total_size_mib | O | O | O | O | O | O | O | ** R** |
105
105
| | slot_size_mib | O | O | O | O | O | O | O | ** R** |
106
106
| | block_size_mi | O | O | O | O | O | O | O | ** R** |
107
+ | ` MemoryHotplugSizeUpdate ` | requested_size_mib | O | O | O | O | O | O | O | ** R** |
107
108
108
109
\* ` Drive ` 's ` drive_id ` , ` is_root_device ` and ` partuuid ` can be configured by
109
110
either virtio-block or vhost-user-block devices.
Original file line number Diff line number Diff line change @@ -549,6 +549,26 @@ paths:
549
549
description : Internal server error
550
550
schema :
551
551
$ref : " #/definitions/Error"
552
+ patch :
553
+ summary : Updates the size of the hotpluggable memory region
554
+ operationId : patchMemoryHotplug
555
+ description :
556
+ Updates the size of the hotpluggable memory region. The guest will plug and unplug memory to
557
+ hit the requested memory.
558
+ parameters :
559
+ - name : body
560
+ in : body
561
+ description : Hotpluggable memory size update
562
+ required : true
563
+ schema :
564
+ $ref : " #/definitions/MemoryHotplugSizeUpdate"
565
+ responses :
566
+ 204 :
567
+ description : Hotpluggable memory configured
568
+ default :
569
+ description : Internal server error
570
+ schema :
571
+ $ref : " #/definitions/Error"
552
572
get :
553
573
summary : Retrieves the status of the hotpluggable memory
554
574
operationId : getMemoryHotplug
@@ -1422,6 +1442,15 @@ definitions:
1422
1442
description : (Logical) Block size for the hotpluggable memory in MiB. This will determine the logical
1423
1443
granularity of hot-plug memory for the guest. Refer to the device documentation on how to tune this value.
1424
1444
1445
+ MemoryHotplugSizeUpdate :
1446
+ type : object
1447
+ description :
1448
+ An update to the size of the hotpluggable memory region.
1449
+ properties :
1450
+ requested_size_mib :
1451
+ type : integer
1452
+ description : New target region size.
1453
+
1425
1454
MemoryHotplugStatus :
1426
1455
type : object
1427
1456
description :
You can’t perform that action at this time.
0 commit comments