mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-19 11:05:16 +00:00
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 <mkletzan@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
32140bdb09
commit
a4def2eb95
@ -16643,6 +16643,9 @@ virDomainFeaturesHyperVDefParse(virDomainDef *def,
|
|||||||
|
|
||||||
def->features[VIR_DOMAIN_FEATURE_HYPERV] = mode;
|
def->features[VIR_DOMAIN_FEATURE_HYPERV] = mode;
|
||||||
|
|
||||||
|
if (mode == VIR_DOMAIN_HYPERV_MODE_PASSTHROUGH)
|
||||||
|
return 0;
|
||||||
|
|
||||||
node = xmlFirstElementChild(node);
|
node = xmlFirstElementChild(node);
|
||||||
while (node != NULL) {
|
while (node != NULL) {
|
||||||
int feature;
|
int feature;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user