Skip to content

Commit 37c6f45

Browse files
committed
qmp/raw: regenerate for CPUDefinitionInfo.UnavailableFeatures
1 parent d495d36 commit 37c6f45

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

qmp/raw/autogen.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3261,9 +3261,10 @@ func (e *CommandLineParameterType) UnmarshalJSON(bs []byte) error {
32613261

32623262
// CPUDefinitionInfo implements the "CpuDefinitionInfo" QMP API type.
32633263
type CPUDefinitionInfo struct {
3264-
Name string `json:"name"`
3265-
MigrationSafe *bool `json:"migration-safe,omitempty"`
3266-
Static bool `json:"static"`
3264+
Name string `json:"name"`
3265+
MigrationSafe *bool `json:"migration-safe,omitempty"`
3266+
Static bool `json:"static"`
3267+
UnavailableFeatures []string `json:"unavailable-features,omitempty"`
32673268
}
32683269

32693270
// CpuInfo -> CPUInfo (flat union)

qmp/raw/spec.txt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9263,14 +9263,37 @@
92639263
# QEMU version, machine type, machine options and accelerator options.
92649264
# A static model is always migration-safe. (since 2.8)
92659265
#
9266+
# @unavailable-features: #optional List of properties that prevent
9267+
# the CPU model from running in the current
9268+
# host. (since 2.8)
9269+
#
9270+
# @unavailable-features is a list of QOM property names that
9271+
# represent CPU model attributes that prevent the CPU from running.
9272+
# If the QOM property is read-only, that means there's no known
9273+
# way to make the CPU model run in the current host. Implementations
9274+
# that choose not to provide specific information return the
9275+
# property name "type".
9276+
# If the property is read-write, it means that it MAY be possible
9277+
# to run the CPU model in the current host if that property is
9278+
# changed. Management software can use it as hints to suggest or
9279+
# choose an alternative for the user, or just to generate meaningful
9280+
# error messages explaining why the CPU model can't be used.
9281+
# If @unavailable-features is an empty list, the CPU model is
9282+
# runnable using the current host and machine-type.
9283+
# If @unavailable-features is not present, runnability
9284+
# information for the CPU is not available.
9285+
#
92669286
# Since: 1.2.0
92679287
##
92689288
{
92699289
"struct": "CpuDefinitionInfo",
92709290
"data": {
92719291
"name": "str",
92729292
"*migration-safe": "bool",
9273-
"static": "bool"
9293+
"static": "bool",
9294+
"*unavailable-features": [
9295+
"str"
9296+
]
92749297
}
92759298
}
92769299

0 commit comments

Comments
 (0)