From: Martin Kletzander Date: Fri, 10 Jan 2025 14:56:34 +0000 (+0100) Subject: conf: Do not parse hyperv features with passthrough mode X-Git-Tag: v11.0.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4def2eb9597b83c7c6a4b9f8b08c995cbf7ee1a;p=thirdparty%2Flibvirt.git conf: Do not parse hyperv features with passthrough mode The schema does not allow that anyway and we then format them all back which leads to libvirt producing an invalid XML. Resolves: https://issues.redhat.com/browse/RHEL-70656 Signed-off-by: Martin Kletzander Reviewed-by: Michal Privoznik --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index e658b68c48..3f88a77a8f 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -16643,6 +16643,9 @@ virDomainFeaturesHyperVDefParse(virDomainDef *def, def->features[VIR_DOMAIN_FEATURE_HYPERV] = mode; + if (mode == VIR_DOMAIN_HYPERV_MODE_PASSTHROUGH) + return 0; + node = xmlFirstElementChild(node); while (node != NULL) { int feature;