lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250925040637.14511-2-guoyaxing@bosc.ac.cn>
Date: Thu, 25 Sep 2025 12:06:37 +0800
From: Yaxing Guo <guoyaxing@...c.ac.cn>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
	anxu@...c.ac.cn,
	zhangjian@...c.ac.cn,
	wangran@...c.an.cn,
	guoyaxing@...c.ac.cn
Subject: [RFC v1 2/2] uio: Add Kconfig and Makefile support for UIO_PCI_GENERIC_SVA

Add config symbol and build infrastructure for the UIO PCI generic
driver with SVA (Shared Virtual Addressing) support.

This introduces:
- A new tristate config option 'UIO_PCI_GENERIC_SVA' in Kconfig,
  dependent on PCI and IOMMU_SVA.
- Build rule in Makefile to compile uio_pci_generic_sva.o when enabled.

Signed-off-by: Yaxing Guo <guoyaxing@...c.ac.cn>
---
 drivers/uio/Kconfig  | 5 +++++
 drivers/uio/Makefile | 1 +
 2 files changed, 6 insertions(+)

diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig
index b060dcd7c635..9849e53d1932 100644
--- a/drivers/uio/Kconfig
+++ b/drivers/uio/Kconfig
@@ -164,4 +164,9 @@ config UIO_DFL
 	    opae-sdk/tools/libopaeuio/
 
 	  If you compile this as a module, it will be called uio_dfl.
+
+config UIO_PCI_GENERIC_SVA
+	tristate "Generic driver for PCI Express that supports sva"
+	depends on PCI && IOMMU_SVA
+
 endif
diff --git a/drivers/uio/Makefile b/drivers/uio/Makefile
index 1c5f3b5a95cf..5352e21e918d 100644
--- a/drivers/uio/Makefile
+++ b/drivers/uio/Makefile
@@ -11,3 +11,4 @@ obj-$(CONFIG_UIO_MF624)         += uio_mf624.o
 obj-$(CONFIG_UIO_FSL_ELBC_GPCM)	+= uio_fsl_elbc_gpcm.o
 obj-$(CONFIG_UIO_HV_GENERIC)	+= uio_hv_generic.o
 obj-$(CONFIG_UIO_DFL)	+= uio_dfl.o
+obj-$(CONFIG_UIO_PCI_GENERIC_SVA)  += uio_pci_generic_sva.o
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ