@@ -331,9 +331,10 @@ paths:
331
331
The vCPU count is restricted to the [1, 32] range.
332
332
With SMT enabled, the vCPU count is required to be either 1 or an even number in the range.
333
333
otherwise there are no restrictions regarding the vCPU count.
334
+ If 2M hugetlbfs pages are specified, then `mem_size_mib` must be a multiple of 2.
334
335
If any of the parameters has an incorrect value, the whole update fails.
335
336
All parameters that are optional and are not specified are set to their default values
336
- (smt = false, track_dirty_pages = false, cpu_template = None).
337
+ (smt = false, track_dirty_pages = false, cpu_template = None, huge_pages = None ).
337
338
operationId : putMachineConfiguration
338
339
parameters :
339
340
- name : body
@@ -1015,7 +1016,7 @@ definitions:
1015
1016
MachineConfiguration :
1016
1017
type : object
1017
1018
description :
1018
- Describes the number of vCPUs, memory size, SMT capabilities and
1019
+ Describes the number of vCPUs, memory size, SMT capabilities, huge page configuration and
1019
1020
the CPU template.
1020
1021
required :
1021
1022
- mem_size_mib
@@ -1043,6 +1044,12 @@ definitions:
1043
1044
minimum : 1
1044
1045
maximum : 32
1045
1046
description : Number of vCPUs (either 1 or an even number)
1047
+ huge_pages :
1048
+ type : string
1049
+ enum :
1050
+ - None
1051
+ - 2M
1052
+ description : Which huge pages configuration (if any) should be used to back guest memory.
1046
1053
1047
1054
MemoryBackend :
1048
1055
type : object
0 commit comments