Commit 1f5556ec authored by Michał Winiarski's avatar Michał Winiarski Committed by Thomas Hellström
Browse files

vfio/xe: Add device specific vfio_pci driver variant for Intel graphics



In addition to generic VFIO PCI functionality, the driver implements
VFIO migration uAPI, allowing userspace to enable migration for Intel
Graphics SR-IOV Virtual Functions.
The driver binds to VF device and uses API exposed by Xe driver to
transfer the VF migration data under the control of PF device.

Acked-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Reviewed-by: default avatarAlex Williamson <alex@shazbot.org>
Link: https://patch.msgid.link/20251127093934.1462188-5-michal.winiarski@intel.com
Link: https://lore.kernel.org/all/20251128125322.34edbeaf.alex@shazbot.org/


Signed-off-by: default avatarMichał Winiarski <michal.winiarski@intel.com>
(cherry picked from commit 2e38c50a)
Signed-off-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
parent bd45d46f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -27015,6 +27015,13 @@ L: virtualization@lists.linux.dev
S:	Maintained
F:	drivers/vfio/pci/virtio
VFIO XE PCI DRIVER
M:	Michał Winiarski <michal.winiarski@intel.com>
L:	kvm@vger.kernel.org
L:	intel-xe@lists.freedesktop.org
S:	Supported
F:	drivers/vfio/pci/xe
VGA_SWITCHEROO
R:	Lukas Wunner <lukas@wunner.de>
S:	Maintained
+2 −0
Original line number Diff line number Diff line
@@ -67,4 +67,6 @@ source "drivers/vfio/pci/nvgrace-gpu/Kconfig"

source "drivers/vfio/pci/qat/Kconfig"

source "drivers/vfio/pci/xe/Kconfig"

endmenu
+2 −0
Original line number Diff line number Diff line
@@ -19,3 +19,5 @@ obj-$(CONFIG_VIRTIO_VFIO_PCI) += virtio/
obj-$(CONFIG_NVGRACE_GPU_VFIO_PCI) += nvgrace-gpu/

obj-$(CONFIG_QAT_VFIO_PCI) += qat/

obj-$(CONFIG_XE_VFIO_PCI) += xe/
+12 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
config XE_VFIO_PCI
	tristate "VFIO support for Intel Graphics"
	depends on DRM_XE && PCI_IOV
	select VFIO_PCI_CORE
	help
	  This option enables device specific VFIO driver variant for Intel Graphics.
	  In addition to generic VFIO PCI functionality, it implements VFIO
	  migration uAPI allowing userspace to enable migration for
	  Intel Graphics SR-IOV Virtual Functions supported by the Xe driver.

	  If you don't know what to do here, say N.
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_XE_VFIO_PCI) += xe-vfio-pci.o
xe-vfio-pci-y := main.o
Loading