[PATCH v6 15/16] riscv: defconfig: Enable IOMMUFD and VFIO

Nutty.Liu nutty.liu at hotmail.com
Sun Sep 27 20:17:20 PDT 2026


On 9/25/2026 11:16 PM, Andrew Jones wrote:
> Enable iommufd and VFIO in the default configuration now that the
> RISC-V IOMMU provides the DMA and MSI remapping needed for userspace
> device access, including assignment to virtual machines.
>
> Signed-off-by: Andrew Jones <andrew.jones at oss.qualcomm.com>
> Tested-by: Fangyu Yu <fangyu.yu at linux.alibaba.com>
Reviewed-by: Nutty Liu <nutty.liu at hotmail.com>

Thanks,
Nutty
> ---
>   arch/riscv/configs/defconfig | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
> index 04ae305d5511..daf382c05441 100644
> --- a/arch/riscv/configs/defconfig
> +++ b/arch/riscv/configs/defconfig
> @@ -251,6 +251,10 @@ CONFIG_DMADEVICES=y
>   CONFIG_DMA_SUN6I=m
>   CONFIG_DW_AXI_DMAC=y
>   CONFIG_MMP_PDMA=m
> +CONFIG_IOMMUFD=m
> +CONFIG_VFIO_DEVICE_CDEV=y
> +CONFIG_VFIO=m
> +CONFIG_VFIO_PCI=m
>   CONFIG_VIRTIO_PCI=y
>   CONFIG_VIRTIO_BALLOON=y
>   CONFIG_VIRTIO_INPUT=y



More information about the linux-riscv mailing list