]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86/iommu: Correct a recent change to iommu_domain_unload_entry()
authorAlan Cox <alc@FreeBSD.org>
Tue, 26 Jul 2022 04:53:15 +0000 (23:53 -0500)
committerAlan Cox <alc@FreeBSD.org>
Tue, 26 Jul 2022 06:07:21 +0000 (01:07 -0500)
commitc251563470831c34cf53242936425a0d4d995edf
tree2a7a2319558ea05d2e52cad6ee6005ef7add6bbc
parentf4d71d0c1a9976c047758e065adb2c1498cd9765
x86/iommu: Correct a recent change to iommu_domain_unload_entry()

Correct 8bc367384745.  When iommu_domain_unload_entry() performs a
synchronous IOTLB invalidation, it must call dmar_domain_free_entry()
to remove the entry from the domain's RB_TREE.

Push down the acquisition and release of the DMAR lock into the
recently introduced function dmar_qi_invalidate_sync_locked() and
remove the _locked suffix.

MFC with: 8bc367384745
sys/x86/iommu/intel_ctx.c
sys/x86/iommu/intel_dmar.h
sys/x86/iommu/intel_qi.c