mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu: Relax check for SMM feature
One of the things that this is improving is the fact that instead of error message (that was wrong) you get when starting a domain with SMM and i440fx we allow the setting to go through. SMM option exists and makes sense on i440fx as well (basically whenever that _SMM_OPT capability is set). Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
343894b74b
commit
3f2499d7d7
@ -3793,8 +3793,7 @@ qemuDomainDefValidateFeatures(const virDomainDef *def,
|
|||||||
|
|
||||||
case VIR_DOMAIN_FEATURE_SMM:
|
case VIR_DOMAIN_FEATURE_SMM:
|
||||||
if (def->features[i] != VIR_TRISTATE_SWITCH_ABSENT &&
|
if (def->features[i] != VIR_TRISTATE_SWITCH_ABSENT &&
|
||||||
(!virQEMUCapsGet(qemuCaps, QEMU_CAPS_MACHINE_SMM_OPT) ||
|
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_MACHINE_SMM_OPT)) {
|
||||||
!qemuDomainIsQ35(def))) {
|
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("smm is not available with this QEMU binary"));
|
_("smm is not available with this QEMU binary"));
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user