kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vfio/qat: add support for intel QAT 6xxx virtual functions
@ 2025-07-15  8:11 Suman Kumar Chakraborty
  2025-07-16 20:23 ` Alex Williamson
  0 siblings, 1 reply; 2+ messages in thread
From: Suman Kumar Chakraborty @ 2025-07-15  8:11 UTC (permalink / raw)
  To: alex.williamson, jgg, yishaih, shameerali.kolothum.thodi,
	kevin.tian
  Cc: linux-crypto, qat-linux, kvm, herbert, giovanni.cabiddu

From: Małgorzata Mielnik <malgorzata.mielnik@intel.com>

Extend the qat_vfio_pci variant driver to support QAT 6xxx Virtual
Functions (VFs). Add the relevant QAT 6xxx VF device IDs to the driver's
probe table, enabling proper detection and initialization of these devices.

Update the module description to reflect that the driver now supports all
QAT generations.

Signed-off-by: Małgorzata Mielnik <malgorzata.mielnik@intel.com>
Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
---
 drivers/vfio/pci/qat/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/vfio/pci/qat/main.c b/drivers/vfio/pci/qat/main.c
index 845ed15b6771..499c9e1d67ee 100644
--- a/drivers/vfio/pci/qat/main.c
+++ b/drivers/vfio/pci/qat/main.c
@@ -675,6 +675,8 @@ static const struct pci_device_id qat_vf_vfio_pci_table[] = {
 	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4941) },
 	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4943) },
 	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4945) },
+	/* Intel QAT GEN6 6xxx VF device */
+	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4949) },
 	{}
 };
 MODULE_DEVICE_TABLE(pci, qat_vf_vfio_pci_table);
@@ -696,5 +698,5 @@ module_pci_driver(qat_vf_vfio_pci_driver);
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Xin Zeng <xin.zeng@intel.com>");
-MODULE_DESCRIPTION("QAT VFIO PCI - VFIO PCI driver with live migration support for Intel(R) QAT GEN4 device family");
+MODULE_DESCRIPTION("QAT VFIO PCI - VFIO PCI driver with live migration support for Intel(R) QAT device family");
 MODULE_IMPORT_NS("CRYPTO_QAT");

base-commit: bfeda8f971d01d0c1d0e3f4cf9d4e2b0a2b09d89
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] vfio/qat: add support for intel QAT 6xxx virtual functions
  2025-07-15  8:11 [PATCH] vfio/qat: add support for intel QAT 6xxx virtual functions Suman Kumar Chakraborty
@ 2025-07-16 20:23 ` Alex Williamson
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Williamson @ 2025-07-16 20:23 UTC (permalink / raw)
  To: Suman Kumar Chakraborty
  Cc: jgg, yishaih, shameerali.kolothum.thodi, kevin.tian, linux-crypto,
	qat-linux, kvm, herbert, giovanni.cabiddu

On Tue, 15 Jul 2025 09:11:50 +0100
Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com> wrote:

> From: Małgorzata Mielnik <malgorzata.mielnik@intel.com>
> 
> Extend the qat_vfio_pci variant driver to support QAT 6xxx Virtual
> Functions (VFs). Add the relevant QAT 6xxx VF device IDs to the driver's
> probe table, enabling proper detection and initialization of these devices.
> 
> Update the module description to reflect that the driver now supports all
> QAT generations.
> 
> Signed-off-by: Małgorzata Mielnik <malgorzata.mielnik@intel.com>
> Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
> ---
>  drivers/vfio/pci/qat/main.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/pci/qat/main.c b/drivers/vfio/pci/qat/main.c
> index 845ed15b6771..499c9e1d67ee 100644
> --- a/drivers/vfio/pci/qat/main.c
> +++ b/drivers/vfio/pci/qat/main.c
> @@ -675,6 +675,8 @@ static const struct pci_device_id qat_vf_vfio_pci_table[] = {
>  	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4941) },
>  	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4943) },
>  	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4945) },
> +	/* Intel QAT GEN6 6xxx VF device */
> +	{ PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_INTEL, 0x4949) },
>  	{}
>  };
>  MODULE_DEVICE_TABLE(pci, qat_vf_vfio_pci_table);
> @@ -696,5 +698,5 @@ module_pci_driver(qat_vf_vfio_pci_driver);
>  
>  MODULE_LICENSE("GPL");
>  MODULE_AUTHOR("Xin Zeng <xin.zeng@intel.com>");
> -MODULE_DESCRIPTION("QAT VFIO PCI - VFIO PCI driver with live migration support for Intel(R) QAT GEN4 device family");
> +MODULE_DESCRIPTION("QAT VFIO PCI - VFIO PCI driver with live migration support for Intel(R) QAT device family");
>  MODULE_IMPORT_NS("CRYPTO_QAT");
> 
> base-commit: bfeda8f971d01d0c1d0e3f4cf9d4e2b0a2b09d89

Applied to vfio next branch for v6.17.  Thanks,

Alex


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-16 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15  8:11 [PATCH] vfio/qat: add support for intel QAT 6xxx virtual functions Suman Kumar Chakraborty
2025-07-16 20:23 ` Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).