]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: Turn on user aliases
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Feb 2022 11:51:27 +0000 (12:51 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Mar 2022 10:53:30 +0000 (11:53 +0100)
When I implemented user aliases I've invented this
virDomainDefFeatures flag so that individual drivers can signal
support for user provided aliases. The reasoning was that a
device alias might be part of guest ABI, or used in a different
way then in QEMU. Well, neither applies to the libxl driver, so
it's safe to allow user aliases there.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/231
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_domain.c

index 205049f98a9ab39194250846e65dba63c2a72e18..d33e3811d1d48504ee40d5e158f7f04f2a5b4568 100644 (file)
@@ -452,7 +452,8 @@ virDomainDefParserConfig libxlDomainDefParserConfig = {
     .domainPostParseCallback = libxlDomainDefPostParse,
     .domainValidateCallback = libxlDomainDefValidate,
 
-    .features = VIR_DOMAIN_DEF_FEATURE_FW_AUTOSELECT |
+    .features = VIR_DOMAIN_DEF_FEATURE_USER_ALIAS |
+                VIR_DOMAIN_DEF_FEATURE_FW_AUTOSELECT |
                 VIR_DOMAIN_DEF_FEATURE_NET_MODEL_STRING,
 };