[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251218205106.4578-1-michal.wajdeczko@intel.com>
Date: Thu, 18 Dec 2025 21:51:06 +0100
From: Michal Wajdeczko <michal.wajdeczko@...el.com>
To: intel-xe@...ts.freedesktop.org
Cc: Michal Wajdeczko <michal.wajdeczko@...el.com>,
Thomas Hellström <thomas.hellstrom@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Jason Gunthorpe <jgg@...dia.com>,
Kevin Tian <kevin.tian@...el.com>,
Alex Williamson <alex@...zbot.org>,
Michał Winiarski <michal.winiarski@...el.com>,
Marcin Bernatowicz <marcin.bernatowicz@...ux.intel.com>,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Subject: [PATCH] vfio/xe: Add default handler for .get_region_info_caps
New requirement for the vfio drivers was added by the commit
f97859503859 ("vfio: Require drivers to implement get_region_info")
followed by commit 1b0ecb5baf4a ("vfio/pci: Convert all PCI drivers
to get_region_info_caps") that was missed by the new vfio/xe driver.
Add handler for .get_region_info_caps to avoid -EINVAL errors.
Fixes: 2e38c50ae492 ("vfio/xe: Add device specific vfio_pci driver variant for Intel graphics")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@...el.com>
---
Cc: Thomas Hellström <thomas.hellstrom@...ux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@...el.com>
Cc: Jason Gunthorpe <jgg@...dia.com>
Cc: Kevin Tian <kevin.tian@...el.com>
Cc: Alex Williamson <alex@...zbot.org>
Cc: Michał Winiarski <michal.winiarski@...el.com>
Cc: Marcin Bernatowicz <marcin.bernatowicz@...ux.intel.com>
Cc: dri-devel@...ts.freedesktop.org
Cc: linux-kernel@...r.kernel.org
Cc: kvm@...r.kernel.org
---
drivers/vfio/pci/xe/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/vfio/pci/xe/main.c b/drivers/vfio/pci/xe/main.c
index 0156b53c678b..719ab4660085 100644
--- a/drivers/vfio/pci/xe/main.c
+++ b/drivers/vfio/pci/xe/main.c
@@ -504,6 +504,7 @@ static const struct vfio_device_ops xe_vfio_pci_ops = {
.open_device = xe_vfio_pci_open_device,
.close_device = xe_vfio_pci_close_device,
.ioctl = vfio_pci_core_ioctl,
+ .get_region_info_caps = vfio_pci_ioctl_get_region_info,
.device_feature = vfio_pci_core_ioctl_feature,
.read = vfio_pci_core_read,
.write = vfio_pci_core_write,
--
2.47.1
Powered by blists - more mailing lists