Thread (77 messages) 77 messages, 4 authors, 2025-01-23

RE: [PATCH v5 07/14] iommufd/viommu: Add iommufd_viommu_get_vdev_id helper

From: "Tian, Kevin" <kevin.tian@intel.com>
Date: 2025-01-10 07:07:54
Also in: linux-doc, linux-iommu, linux-kselftest, linux-patches, lkml

From: Nicolin Chen <redacted>
Sent: Wednesday, January 8, 2025 1:10 AM
+
+	xa_lock(&viommu->vdevs);
+	xa_for_each(&viommu->vdevs, index, vdev) {
+		if (vdev && vdev->dev == dev) {
+			vdev_id = (unsigned long)vdev->id;
+			break;
+		}
+	}
Nit. No need to check vdev pointer as commented in last review.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help