[RFC PATCH 11/11] iommu/riscv: support nested iommu for getting iommu hardware information
fangyu.yu at linux.alibaba.com
fangyu.yu at linux.alibaba.com
Tue Apr 28 19:37:22 PDT 2026
>> From: Zong Li <zong.li at sifive.com>
>>
>> This patch implements .hw_info operation and the related data
>> structures for passing the IOMMU hardware capabilities for iommufd.
>>
>> Signed-off-by: Zong Li <zong.li at sifive.com>
>> Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
>> Signed-off-by: Fangyu Yu <fangyu.yu at linux.alibaba.com>
>> ---
>> drivers/iommu/riscv/iommu.c | 19 +++++++++++++++++++
>> include/uapi/linux/iommufd.h | 18 ++++++++++++++++++
>> 2 files changed, 37 insertions(+)
>
>This has nothing to do with dirty tracking. It should go with a series
>introducing viommu.
>
Thanks for pointing that out.
I added the .hw_info-related patch because, during passthrough testing with a
VM, I observed that QEMU calls iommufd_get_hw_info, so I initially thought it
was required. However, it appears that the .hw_info implementation is not
necessary for this series. I will remove the .hw_info-related patch from my
dirty-tracking series in a follow-up revision.
Thanks,
Fangyu
>Jason
More information about the linux-riscv
mailing list