HomeFreeBSD

x86/iommu: Shrink the critical section in dmar_qi_task()

Description

x86/iommu: Shrink the critical section in dmar_qi_task()

It is safe to test and clear the Invalidation Wait Descriptor
Complete flag before acquiring the DMAR lock in dmar_qi_task(),
rather than waiting until the lock is held.

Reviewed by: kib
MFC after: 2 weeks

(cherry picked from commit 4eaaacc75535befdb9894cca4e0d8da376328fa4)

Details

Provenance
alcAuthored on Jul 18 2022, 12:56 AM
dougmCommitted on Aug 8 2022, 3:19 AM
Parents
rG6be8028f4441: iommu_gas: Eliminate a possible case of use-after-free
Branches
Unknown
Tags
Unknown