Skip to content

Commit 1e91505

Browse files
mwajdeczawilliam
authored andcommitted
vfio/xe: Add default handler for .get_region_info_caps
New requirement for the vfio drivers was added by the commit f978595 ("vfio: Require drivers to implement get_region_info") followed by commit 1b0ecb5 ("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: 2e38c50 ("vfio/xe: Add device specific vfio_pci driver variant for Intel graphics") Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com> Tested-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com> Link: https://lore.kernel.org/r/20251218205106.4578-1-michal.wajdeczko@intel.com Signed-off-by: Alex Williamson <alex@shazbot.org>
1 parent 8bb808c commit 1e91505

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/vfio/pci/xe/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ static const struct vfio_device_ops xe_vfio_pci_ops = {
504504
.open_device = xe_vfio_pci_open_device,
505505
.close_device = xe_vfio_pci_close_device,
506506
.ioctl = vfio_pci_core_ioctl,
507+
.get_region_info_caps = vfio_pci_ioctl_get_region_info,
507508
.device_feature = vfio_pci_core_ioctl_feature,
508509
.read = vfio_pci_core_read,
509510
.write = vfio_pci_core_write,

0 commit comments

Comments
 (0)