[Pkg-libvirt-commits] [Git][libvirt-team/libvirt][debian/trixie] 2 commits: patches: Add backports
Andrea Bolognani (@abologna)
gitlab at salsa.debian.org
Thu Jul 3 19:44:59 BST 2025
Andrea Bolognani pushed to branch debian/trixie at Libvirt Packaging Team / libvirt
Commits:
d10b70f5 by Andrea Bolognani at 2025-07-02T22:14:59+02:00
patches: Add backports
Specifically
* backport/qemu-Be-more-forgiving-when-acquiring-QUERY-job-when-form.patch
- - - - -
f39d15b1 by Andrea Bolognani at 2025-07-02T22:17:08+02:00
Document changes and release 11.3.0-3
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/backport/qemu-Be-more-forgiving-when-acquiring-QUERY-job-when-form.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+libvirt (11.3.0-3) unstable; urgency=medium
+
+ * [d10b70f] patches: Add backports
+ - backport/qemu-Be-more-forgiving-when-acquiring-QUERY-job-[...]
+
+ -- Andrea Bolognani <eof at kiyuko.org> Wed, 02 Jul 2025 22:15:28 +0200
+
libvirt (11.3.0-2) unstable; urgency=medium
* [eb4a97a] patches: Add backports
=====================================
debian/patches/backport/qemu-Be-more-forgiving-when-acquiring-QUERY-job-when-form.patch
=====================================
@@ -0,0 +1,70 @@
+From: Michal Privoznik <mprivozn at redhat.com>
+Date: Mon, 16 Jun 2025 10:28:37 +0200
+Subject: qemu: Be more forgiving when acquiring QUERY job when formatting
+ domain XML
+
+In my previous commit of v11.0.0-rc1~115 I've made QEMU driver
+implementation for virDomainGetXMLDesc() (qemuDomainGetXMLDesc())
+acquire QERY job. See its commit message for more info. But this
+unfortunately broke apps witch fetch domain XML for incoming
+migration (like virt-manager). The reason is that for incoming
+migration the VIR_ASYNC_JOB_MIGRATION_IN async job is set, but
+the mask of allowed synchronous jobs is empty (because QEMU can't
+talk on monitor really). This makes virDomainObjBeginJob() fail
+which in turn makes qemuDomainGetXMLDesc() fail too.
+
+It makes sense for qemuDomainGetXMLDesc() to acquire the job
+(e.g. so that it's coherent with another thread that might be in
+the middle of a MODIFY job). But failure to dump XML may be
+treated as broken daemon (e.g. virt-manager does so).
+
+Therefore, still try to acquire the QUERY job (if job mask
+permits it) but, do not treat failure as an error.
+
+Fixes: 6cc93bf28842526be2fd596a607ebca796b7fb2e
+Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2369243
+Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
+Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
+(cherry picked from commit 441c23a7e626c13e6df1946303a0bc0a84180d1c)
+
+Forwarded: not-needed
+Origin: https://gitlab.com/libvirt/libvirt/-/commits/441c23a7e626c13e6df1946303a0bc0a84180d1c
+---
+ src/qemu/qemu_driver.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
+index a34d6f1..9f04374 100644
+--- a/src/qemu/qemu_driver.c
++++ b/src/qemu/qemu_driver.c
+@@ -6188,6 +6188,7 @@ static char
+ {
+ virQEMUDriver *driver = dom->conn->privateData;
+ virDomainObj *vm;
++ bool hasJob = false;
+ char *ret = NULL;
+
+ virCheckFlags(VIR_DOMAIN_XML_COMMON_FLAGS | VIR_DOMAIN_XML_UPDATE_CPU,
+@@ -6199,8 +6200,10 @@ static char
+ if (virDomainGetXMLDescEnsureACL(dom->conn, vm->def, flags) < 0)
+ goto cleanup;
+
+- if (virDomainObjBeginJob(vm, VIR_JOB_QUERY) < 0)
+- goto cleanup;
++ if (virDomainNestedJobAllowed(vm->job, VIR_JOB_QUERY) &&
++ virDomainObjBeginJob(vm, VIR_JOB_QUERY) >= 0) {
++ hasJob = true;
++ }
+
+ qemuDomainUpdateCurrentMemorySize(vm);
+
+@@ -6216,7 +6219,8 @@ static char
+
+ ret = qemuDomainFormatXML(driver, vm, flags);
+
+- virDomainObjEndJob(vm);
++ if (hasJob)
++ virDomainObjEndJob(vm);
+
+ cleanup:
+ virDomainObjEndAPI(&vm);
=====================================
debian/patches/series
=====================================
@@ -1,4 +1,5 @@
backport/qemuProcessStartWithMemoryState-Don-t-setup-qemu-for-inco.patch
+backport/qemu-Be-more-forgiving-when-acquiring-QUERY-job-when-form.patch
debian/Debianize-libvirt-guests.patch
debian/apparmor_profiles_local_include.patch
debian/Use-sensible-editor-by-default.patch
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/compare/1e7a8b14024661f6cfbaa590deeb6c7c2aca9325...f39d15b10d04dd196aa946787600c9bf9ab99ebb
--
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/-/compare/1e7a8b14024661f6cfbaa590deeb6c7c2aca9325...f39d15b10d04dd196aa946787600c9bf9ab99ebb
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/20250703/9d1de281/attachment-0001.htm>
More information about the Pkg-libvirt-commits
mailing list