audk/OvmfPkg/IoMmuDxe
Ard Biesheuvel dfb941d32a OvmfPkg/IoMmuDxe: don't rely on TPLs to manage concurrency
Instead of relying on raising the TPL to protect the critical sections
that manipulate the global bitmask that keeps track of bounce buffer
allocations, use compare-and-exchange to manage the global variable, and
tweak the logic to line up with that.

Given that IoMmuDxe implements a singleton protocol that is shared
between multiple drivers, and considering the elaborate and confusing
requirements in the UEFP spec regarding TPL levels at which protocol
methods may be invoked, not relying on TPL levels at all is a more
robust approach in this case.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2211060
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Pedro Falcato <pedro.falcato@gmail.com>
2023-09-02 14:52:28 +00:00
..
CcIoMmu.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
CcIoMmu.h OvmfPkg/IoMmuDxe: Rename AmdSevIoMmu to CcIoMmu 2022-12-18 02:14:31 +00:00
IoMmuBuffer.c OvmfPkg/IoMmuDxe: don't rely on TPLs to manage concurrency 2023-09-02 14:52:28 +00:00
IoMmuDxe.c OvmfPkg/IoMmuDxe: Rename AmdSevIoMmu to CcIoMmu 2022-12-18 02:14:31 +00:00
IoMmuDxe.inf OvmfPkg/IoMmuDxe: don't rely on TPLs to manage concurrency 2023-09-02 14:52:28 +00:00
IoMmuInternal.h OvmfPkg/IoMmuDxe: Reserve shared memory region for DMA operation 2022-12-18 02:14:31 +00:00