From: Praveen K Paladugu Date: Fri, 7 Nov 2025 20:13:57 +0000 (-0600) Subject: conf: Fix virttype handling in schemas X-Git-Tag: v11.10.0-rc1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b40953a00ba92c7f9ac37c32ed9f2a2211d661;p=thirdparty%2Flibvirt.git conf: Fix virttype handling in schemas Create a common `virttype` definition in basictypes.rng and reuse it to enumerate all virt types. This change eliminates the need to duplicate virttypes in multiple locations. Signed-off-by: Praveen K Paladugu Reviewed-by: Martin Kletzander --- diff --git a/src/conf/schemas/basictypes.rng b/src/conf/schemas/basictypes.rng index 2931e316b7..5689170fad 100644 --- a/src/conf/schemas/basictypes.rng +++ b/src/conf/schemas/basictypes.rng @@ -677,4 +677,26 @@ + + + + qemu + kqemu + kvm + xen + lxc + uml + openvz + test + vmware + hyperv + vbox + phyp + vz + bhyve + hvf + + + + diff --git a/src/conf/schemas/capability.rng b/src/conf/schemas/capability.rng index a1606941e7..8ef6e9a282 100644 --- a/src/conf/schemas/capability.rng +++ b/src/conf/schemas/capability.rng @@ -421,19 +421,7 @@ - - - qemu - kqemu - kvm - xen - uml - lxc - openvz - test - hvf - - + diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng index 78cf0a08cf..d3255e2dd8 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -32,7 +32,7 @@ - + @@ -241,27 +241,6 @@ - - - - qemu - kqemu - kvm - xen - lxc - uml - openvz - test - vmware - hyperv - vbox - phyp - vz - bhyve - hvf - - -