On Fri, Jun 07, 2024 at 09:38:38AM +0000, Tian, Kevin wrote:
Wait, why did we make it per object? The fault FD is supposed to beFrom: Baolu Lu<baolu.lu@xxxxxxxxxxxxxxx>
Sent: Thursday, June 6, 2024 2:28 PM
On 6/5/24 4:28 PM, Tian, Kevin wrote:
iommufd_page_response_code.From: Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx>
Sent: Monday, May 27, 2024 12:05 PM
+
+/**
+ * struct iommu_hwpt_page_response - IOMMU page fault response
+ * @size: sizeof(struct iommu_hwpt_page_response)
+ * @flags: Must be set to 0
+ * @dev_id: device ID of target device for the response
+ * @pasid: Process Address Space ID
+ * @grpid: Page Request Group Index
+ * @code: One of response code in enum
+ * @cookie: The kernel-managed cookie reported in the fault message.with the response queue per fault object we don't need all fields here,
+ */
+struct iommu_hwpt_page_response {
+ __u32 size;
+ __u32 flags;
+ __u32 dev_id;
+ __u32 pasid;
+ __u32 grpid;
+ __u32 code;
+ __u32 cookie;
+ __u32 reserved;
+};
e.g. dev_id, pasid, etc. Cookie is sufficient.
sharable across HWPTs.