public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Miroslav Rezanina <mrezanin@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qemu] eln: * Tue Aug 11 2026 Miroslav Rezanina <mrezanin@redhat.com> - 10.1.0-26
Date: Thu, 15 Oct 2026 07:30:51 GMT [thread overview]
Message-ID: <179204945180.1.1702046021314817239.rpms-qemu-84bfea6b1435@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/qemu
Branch : eln
Commit : 84bfea6b1435357627eb148d80df4a50bd1794d6
Author : Miroslav Rezanina <mrezanin@redhat.com>
Date : 2026-10-14T15:36:13+02:00
Stats : +75/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/qemu/c/84bfea6b1435357627eb148d80df4a50bd1794d6?branch=eln
Log:
* Tue Aug 11 2026 Miroslav Rezanina <mrezanin@redhat.com> - 10.1.0-26
- kvm-vfio-region-Clarify-dma-buf-failure-messages.patch [RHEL-224652]
- Resolves: RHEL-224652
(Backport vfio/region: Clarify dma-buf failure messages )
---
diff --git a/kvm-vfio-region-Clarify-dma-buf-failure-messages.patch b/kvm-vfio-region-Clarify-dma-buf-failure-messages.patch
new file mode 100644
index 0000000..55ad8f6
--- /dev/null
+++ b/kvm-vfio-region-Clarify-dma-buf-failure-messages.patch
@@ -0,0 +1,67 @@
+From c5a8a9187f8395f35218cb6e301ee777f4a0da7b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= <clg@redhat.com>
+Date: Wed, 15 Jul 2026 10:00:00 +0200
+Subject: [PATCH] vfio/region: Clarify dma-buf failure messages
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+RH-Author: Rodolfo Vick <None>
+RH-MergeRequest: 514: vfio/region: Clarify dma-buf failure messages
+RH-Jira: RHEL-224652
+RH-Acked-by: Cédric Le Goater <clg@redhat.com>
+RH-Acked-by: Eric Auger <eric.auger@redhat.com>
+RH-Commit: [1/1] 290b4b792bd444608b01bab64514a0e0725e9f89 (rovick1/qemu-kvm)
+
+The dma-buf failure messages in vfio_region_create_dma_buf() say "PCI
+BAR IOMMU mappings may fail", which suggests the BAR is broken. In
+practice, only P2P DMA is affected -- normal passthrough uses the mmap
+fallback.
+
+Reword both messages to mention P2P DMA explicitly and clarify that
+the mmap fallback is in use. Use warn_report_err_once() at the call
+site so per-BAR repetition on mdev devices is suppressed.
+
+Fixes: dcf1b77e834d ("hw/vfio/region: Create dmabuf for PCI BAR per region")
+Cc: Nicolin Chen <nicolinc@nvidia.com>
+Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
+Signed-off-by: Cédric Le Goater <clg@redhat.com>
+(cherry picked from commit 4b2e6505d59b7b16c6e15a2494942d00648e8510)
+---
+ hw/vfio/region.c | 11 +++++------
+ 1 file changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/hw/vfio/region.c b/hw/vfio/region.c
+index 1e9915fdd3..9258ab6847 100644
+--- a/hw/vfio/region.c
++++ b/hw/vfio/region.c
+@@ -316,13 +316,12 @@ static bool vfio_region_create_dma_buf(VFIORegion *region, Error **errp)
+ ret = vfio_device_get_feature(vbasedev, feature);
+ if (ret < 0) {
+ if (ret == -ENOTTY) {
+- warn_report_once("VFIO dma-buf not supported in kernel: "
+- "PCI BAR IOMMU mappings may fail");
++ warn_report_once("VFIO dma-buf not supported in kernel, "
++ "using mmap fallback, P2P DMA will not work");
+ return true;
+ }
+- /* P2P DMA or exposing device memory use cases are not supported. */
+- error_setg_errno(errp, -ret, "%s: failed to create dma-buf: "
+- "PCI BAR IOMMU mappings may fail",
++ error_setg_errno(errp, -ret, "%s: dma-buf unavailable, "
++ "using mmap fallback, P2P DMA will not work",
+ memory_region_name(region->mem));
+ return false;
+ }
+@@ -443,7 +442,7 @@ int vfio_region_mmap(VFIORegion *region)
+ }
+
+ if (!vfio_region_create_dma_buf(region, &local_err)) {
+- error_report_err(local_err);
++ warn_report_err_once(local_err);
+ }
+
+ return 0;
+--
+2.52.0
+
diff --git a/qemu.spec b/qemu.spec
index d5c9271..694d43c 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -143,7 +143,7 @@ Obsoletes: %{name}-block-ssh <= %{epoch}:%{version} \
Summary: QEMU is a machine emulator and virtualizer
Name: qemu-kvm
Version: 10.1.0
-Release: 25%{?rcrel}%{?dist}%{?cc_suffix}
+Release: 26%{?rcrel}%{?dist}%{?cc_suffix}
# Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped
# Epoch 15 used for RHEL 8
# Epoch 17 used for RHEL 9 (due to release versioning offset in RHEL 8.5)
@@ -1675,6 +1675,8 @@ Patch477: kvm-s390x-sclp-prevent-re-reading-the-sclp-header.patch
Patch478: kvm-s390x-sclpcpi-check-event-length-field-before-readin.patch
# For RHEL-192791 - RHEL10.0 - qemu s390x: interface harding fixes
Patch479: kvm-s390x-css-firm-up-handling-of-chained-TIC-CCWs.patch
+# For RHEL-224652 - Backport vfio/region: Clarify dma-buf failure messages
+Patch480: kvm-vfio-region-Clarify-dma-buf-failure-messages.patch
%if %{have_clang}
BuildRequires: clang
@@ -2757,6 +2759,11 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
%endif
%changelog
+* Tue Aug 11 2026 Miroslav Rezanina <mrezanin@redhat.com> - 10.1.0-26
+- kvm-vfio-region-Clarify-dma-buf-failure-messages.patch [RHEL-224652]
+- Resolves: RHEL-224652
+ (Backport vfio/region: Clarify dma-buf failure messages )
+
* Mon Aug 03 2026 Miroslav Rezanina <mrezanin@redhat.com> - 10.1.0-25
- kvm-hw-core-platform-bus-guard-platform_bus_get_mmio_add.patch [RHEL-180837]
- kvm-hw-tpm-gate-PPI-support-on-tpm-tis-device-behind-a-d.patch [RHEL-180837]
reply other threads:[~2026-10-15 7:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179204945180.1.1702046021314817239.rpms-qemu-84bfea6b1435@fedoraproject.org \
--to=mrezanin@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox