mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
vfio/xe: Add default handler for .get_region_info_caps
New requirement for the vfio drivers was added by the commitf978595038("vfio: Require drivers to implement get_region_info") followed by commit1b0ecb5baf("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:2e38c50ae4("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>
This commit is contained in:
parent
8bb808cea3
commit
1e91505038
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user