mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
ead2419df3
commit
3c5839973f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user