[Pkg-libvirt-commits] [Git][libvirt-team/libvirt][debian/latest] patches: Disable passt
Andrea Bolognani (@abologna)
gitlab at salsa.debian.org
Sun Feb 26 17:17:00 GMT 2023
Andrea Bolognani pushed to branch debian/latest at Libvirt Packaging Team / libvirt
Commits:
699a828f by Andrea Bolognani at 2023-02-25T19:08:39+01:00
patches: Disable passt
- - - - -
2 changed files:
- + debian/patches/debian/Disable-passt-support.patch
- debian/patches/series
Changes:
=====================================
debian/patches/debian/Disable-passt-support.patch
=====================================
@@ -0,0 +1,60 @@
+From: Andrea Bolognani <eof at kiyuko.org>
+Date: Sat, 25 Feb 2023 18:42:27 +0100
+Subject: Disable passt support
+
+Rejecting the value from the XML parser ensures that all the
+code related to passt, which is left untouched, is never
+executed.
+
+The error message reported in this case is the same that
+virXMLPropEnum() would generate when encountering a value
+that doesn't exist in the enum.
+
+Forwarded: not-needed
+---
+ src/conf/domain_conf.c | 6 ++++++
+ tests/qemuxml2argvtest.c | 1 -
+ tests/qemuxml2xmltest.c | 1 -
+ 3 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
+index 45965fa..0022722 100644
+--- a/src/conf/domain_conf.c
++++ b/src/conf/domain_conf.c
+@@ -9037,6 +9037,12 @@ virDomainNetBackendParseXML(xmlNodePtr node,
+ VIR_XML_PROP_NONZERO, &def->backend.type) < 0) {
+ return -1;
+ }
++ if (def->backend.type == VIR_DOMAIN_NET_BACKEND_PASST) {
++ virReportError(VIR_ERR_XML_ERROR,
++ _("Invalid value for attribute '%s' in element '%s': '%s'."),
++ "type", node->name, "passt");
++ return -1;
++ }
+
+ def->backend.logFile = virXMLPropString(node, "logFile");
+
+diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
+index 8c52feb..06eedc2 100644
+--- a/tests/qemuxml2argvtest.c
++++ b/tests/qemuxml2argvtest.c
+@@ -1470,7 +1470,6 @@ mymain(void)
+ DO_TEST_NOCAPS("net-user");
+ DO_TEST_CAPS_ARCH_LATEST_FULL("net-user", "x86_64", ARG_FLAGS, FLAG_SLIRP_HELPER);
+ DO_TEST_NOCAPS("net-user-addr");
+- DO_TEST_CAPS_LATEST("net-user-passt");
+ DO_TEST_NOCAPS("net-virtio");
+ DO_TEST_NOCAPS("net-virtio-device");
+ DO_TEST_NOCAPS("net-virtio-disable-offloads");
+diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
+index 72f724b..5ef3645 100644
+--- a/tests/qemuxml2xmltest.c
++++ b/tests/qemuxml2xmltest.c
+@@ -459,7 +459,6 @@ mymain(void)
+ DO_TEST_NOCAPS("net-vhostuser");
+ DO_TEST_NOCAPS("net-user");
+ DO_TEST_NOCAPS("net-user-addr");
+- DO_TEST_NOCAPS("net-user-passt");
+ DO_TEST_NOCAPS("net-virtio");
+ DO_TEST_NOCAPS("net-virtio-device");
+ DO_TEST_NOCAPS("net-virtio-disable-offloads");
=====================================
debian/patches/series
=====================================
@@ -15,3 +15,4 @@ debian/Debianize-libvirt-guests.patch
debian/Debianize-systemd-service-files.patch
debian/apparmor_profiles_local_include.patch
debian/Use-sensible-editor-by-default.patch
+debian/Disable-passt-support.patch
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/commit/699a828f3a424d336c95c3eea3b9f9d4984bd58b
--
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/commit/699a828f3a424d336c95c3eea3b9f9d4984bd58b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20230226/52f27f85/attachment-0001.htm>
More information about the Pkg-libvirt-commits
mailing list