Existing iommu_gpasid_bind_data is used for binding guest page tables to a specified PASID. While for unwind it, a unbind_data structure is needed.
Cc: Kevin Tian <[email protected]> CC: Jacob Pan <[email protected]> Cc: Alex Williamson <[email protected]> Cc: Eric Auger <[email protected]> Cc: Jean-Philippe Brucker <[email protected]> Cc: Joerg Roedel <[email protected]> Cc: Lu Baolu <[email protected]> Signed-off-by: Liu Yi L <[email protected]> Signed-off-by: Jacob Pan <[email protected]> --- include/uapi/linux/iommu.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/uapi/linux/iommu.h b/include/uapi/linux/iommu.h index 02eac73..46a7c57 100644 --- a/include/uapi/linux/iommu.h +++ b/include/uapi/linux/iommu.h @@ -332,6 +332,19 @@ struct iommu_gpasid_bind_data { }; }; +/** + * struct iommu_gpasid_unbind_data - Information about device and guest PASID + * unbinding + * @argsz: User filled size of this data + * @flags: Additional information on guest unbind request + * @pasid: Process address space ID used for the guest mm in host IOMMU + */ +struct iommu_gpasid_unbind_data { + __u32 argsz; + __u64 flags; + __u64 pasid; +}; + struct iommu_nesting_info { __u32 size; __u32 format; -- 2.7.4

