RE: [PATCH v3 05/17] iommufd/hw_pagetable: Do not populate user-managed hw_pagetables

From: Tian, Kevin
Date: Fri Jul 28 2023 - 05:52:28 EST


> From: Liu, Yi L <yi.l.liu@xxxxxxxxx>
> Sent: Monday, July 24, 2023 7:04 PM
>
> From: Nicolin Chen <nicolinc@xxxxxxxxxx>
>
> A user-managed hw_pagetable does not need to get populated, since it is
> managed by a guest OS. Move the iopt_table_add_domain and list_add_tail
> calls into a helper, where the hwpt pointer will be redirected to its
> hwpt->parent if it's available.
>
> Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
> Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx>

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>