Re: [PATCH] intel-iommu: Turn off translations at shutdown

From: Lu Baolu
Date: Thu Nov 07 2019 - 22:09:55 EST


Hi,

On 11/8/19 5:27 AM, Deepa Dinamani wrote:
On Thu, Nov 7, 2019 at 12:59 PM Deepa Dinamani <deepa.kernel@xxxxxxxxx> wrote:
+static void intel_iommu_shutdown(void)
+ if (no_iommu || dmar_disabled)
+ return;

This check is actually not required here, as the handler is only
installed after these have been checked in intel_iommu_init.
I can remove this in the next version of the patch, but I'll wait a
few days for comments.

This is probably still necessary if moving to detect_intel_iommu().

Best regards,
baolu


-Deepa
_______________________________________________
iommu mailing list
iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/iommu