mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
conf: parse and format machine virt ras feature
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ffaf77a30d
commit
aaf4196843
@ -2021,6 +2021,7 @@ Hypervisors may allow certain CPU / machine features to be toggled on/off.
|
||||
<tb-cache unit='MiB'>128</tb-cache>
|
||||
</tcg>
|
||||
<async-teardown enabled='yes'/>
|
||||
<ras state='on'/>
|
||||
</features>
|
||||
...
|
||||
|
||||
@ -2256,6 +2257,11 @@ are:
|
||||
Depending on the ``enabled`` attribute (values ``yes``, ``no``) enable or
|
||||
disable QEMU asynchronous teardown to improve memory reclaiming on a guest.
|
||||
:since:`Since 9.6.0` (QEMU only)
|
||||
``ras``
|
||||
Report host memory errors to a guest using ACPI and guest external abort
|
||||
exceptions when enabled (``on``). If the attribute is not defined, the
|
||||
hypervisor default will be used.
|
||||
:since:`Since 10.4.0` (QEMU/KVM and ARM virt guests only)
|
||||
|
||||
Time keeping
|
||||
------------
|
||||
|
@ -184,6 +184,7 @@ VIR_ENUM_IMPL(virDomainFeature,
|
||||
"ibs",
|
||||
"tcg",
|
||||
"async-teardown",
|
||||
"ras",
|
||||
);
|
||||
|
||||
VIR_ENUM_IMPL(virDomainCapabilitiesPolicy,
|
||||
@ -16842,7 +16843,8 @@ virDomainFeaturesDefParse(virDomainDef *def,
|
||||
|
||||
case VIR_DOMAIN_FEATURE_HTM:
|
||||
case VIR_DOMAIN_FEATURE_NESTED_HV:
|
||||
case VIR_DOMAIN_FEATURE_CCF_ASSIST: {
|
||||
case VIR_DOMAIN_FEATURE_CCF_ASSIST:
|
||||
case VIR_DOMAIN_FEATURE_RAS: {
|
||||
virTristateSwitch state;
|
||||
|
||||
if (virXMLPropTristateSwitch(nodes[i], "state",
|
||||
@ -20689,6 +20691,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef *src,
|
||||
case VIR_DOMAIN_FEATURE_HTM:
|
||||
case VIR_DOMAIN_FEATURE_NESTED_HV:
|
||||
case VIR_DOMAIN_FEATURE_CCF_ASSIST:
|
||||
case VIR_DOMAIN_FEATURE_RAS:
|
||||
if (src->features[i] != dst->features[i]) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("State of feature '%1$s' differs: source: '%2$s', destination: '%3$s'"),
|
||||
@ -27392,6 +27395,7 @@ virDomainDefFormatFeatures(virBuffer *buf,
|
||||
case VIR_DOMAIN_FEATURE_HTM:
|
||||
case VIR_DOMAIN_FEATURE_NESTED_HV:
|
||||
case VIR_DOMAIN_FEATURE_CCF_ASSIST:
|
||||
case VIR_DOMAIN_FEATURE_RAS:
|
||||
switch ((virTristateSwitch) def->features[i]) {
|
||||
case VIR_TRISTATE_SWITCH_LAST:
|
||||
case VIR_TRISTATE_SWITCH_ABSENT:
|
||||
|
@ -2171,6 +2171,7 @@ typedef enum {
|
||||
VIR_DOMAIN_FEATURE_IBS,
|
||||
VIR_DOMAIN_FEATURE_TCG,
|
||||
VIR_DOMAIN_FEATURE_ASYNC_TEARDOWN,
|
||||
VIR_DOMAIN_FEATURE_RAS,
|
||||
|
||||
VIR_DOMAIN_FEATURE_LAST
|
||||
} virDomainFeature;
|
||||
|
@ -6795,6 +6795,11 @@
|
||||
</optional>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="ras">
|
||||
<ref name="featurestate"/>
|
||||
</element>
|
||||
</optional>
|
||||
</interleave>
|
||||
</element>
|
||||
</optional>
|
||||
|
@ -226,6 +226,7 @@ qemuValidateDomainDefFeatures(const virDomainDef *def,
|
||||
}
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_FEATURE_RAS:
|
||||
case VIR_DOMAIN_FEATURE_SMM:
|
||||
case VIR_DOMAIN_FEATURE_KVM:
|
||||
case VIR_DOMAIN_FEATURE_XEN:
|
||||
|
Loading…
Reference in New Issue
Block a user