Re: [PATCH v2 02/10] iommu: Remove guest pasid related interfaces and definitions

Jason Gunthorpe
2022-02-09T13:30:01Z

On Tue, Feb 08, 2022 at 09:25:51AM +0800, Lu Baolu wrote:
> The guest pasid related uapi interfaces and definitions are not referenced
> anywhere in the tree. We've also reached a consensus to replace them with
> a new iommufd design. Remove them to avoid dead code.
>
> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> ---
> include/linux/iommu.h | 44 --------
> include/uapi/linux/iommu.h | 181 --------------------------------
> drivers/iommu/iommu.c | 210 -------------------------------------
> 3 files changed, 435 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

> diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h
> index 59178fc229ca..65d8b0234f69 100644
> --- a/include/uapi/linux/iommu.h
> +++ b/include/uapi/linux/iommu.h
> @@ -158,185 +158,4 @@ struct iommu_page_response {
> __u32 code;
> };

What is the plan for the rest of the dead code in this file?

Jason