virDomainFeaturesDefParse: Add comment warning about features being specified repeatedly

Few of the handlers didn't take that possibility into account. Warn
others.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Peter Krempa 2024-09-09 16:46:06 +02:00 committed by Pavel Hrdina
parent ead2419df3
commit 3c5839973f

View File

@ -16849,6 +16849,8 @@ virDomainFeaturesDefParse(virDomainDef *def,
return -1;
}
/* Beware that users can specify the given feature multiple times, so
* the parser must be able to handle that */
switch ((virDomainFeature) val) {
case VIR_DOMAIN_FEATURE_ACPI:
case VIR_DOMAIN_FEATURE_PAE: