diff options
author | Nipun Gupta <nipun.gupta@amd.com> | 2023-05-31 15:45:57 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-06-16 21:27:04 +0300 |
commit | 234489ac561300ceed33e64c3bf3a810b9e2051d (patch) | |
tree | f6f6ec851deccebef71c16f10d5504c5b37e79ff /drivers/vfio/cdx/Kconfig | |
parent | 1e44c58cc485ce265696422c5a9282677ec45473 (diff) | |
download | linux-234489ac561300ceed33e64c3bf3a810b9e2051d.tar.xz |
vfio/cdx: add support for CDX bus
vfio-cdx driver enables IOCTLs for user space to query
MMIO regions for CDX devices and mmap them. This change
also adds support for reset of CDX devices. With VFIO
enabled on CDX devices, user-space applications can also
exercise DMA securely via IOMMU on these devices.
This change adds the VFIO CDX driver and enables the following
ioctls for CDX devices:
- VFIO_DEVICE_GET_INFO:
- VFIO_DEVICE_GET_REGION_INFO
- VFIO_DEVICE_RESET
Signed-off-by: Nipun Gupta <nipun.gupta@amd.com>
Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Tested-by: Nikhil Agarwal <nikhil.agarwal@amd.com>
Link: https://lore.kernel.org/r/20230531124557.11009-1-nipun.gupta@amd.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/cdx/Kconfig')
-rw-r--r-- | drivers/vfio/cdx/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/vfio/cdx/Kconfig b/drivers/vfio/cdx/Kconfig new file mode 100644 index 000000000000..e6de0a0caa32 --- /dev/null +++ b/drivers/vfio/cdx/Kconfig @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# VFIO CDX configuration +# +# Copyright (C) 2022-2023, Advanced Micro Devices, Inc. +# + +config VFIO_CDX + tristate "VFIO support for CDX bus devices" + depends on CDX_BUS + select EVENTFD + help + Driver to enable VFIO support for the devices on CDX bus. + This is required to make use of CDX devices present in + the system using the VFIO framework. + + If you don't know what to do here, say N. |