Re: [PATCH v8 08/10] iommu/vt-d: Add custom allocator for IOASID

From: Lu Baolu
Date: Thu Jan 09 2020 - 20:21:05 EST


Hi,

On 1/10/20 6:06 AM, Jacob Pan wrote:
+static void register_pasid_allocator(struct intel_iommu *iommu)
+{
+ if (!intel_iommu_sm) {
Use sm_supported(iommu) instead.

sounds good, seems we could separate the sm code more cleanly in the
future to avoid all these checks.


Agreed.

Best regards,
baolu