Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: dfb941d32a2f38c9177729e39c6a6515abbbad48
      
https://github.com/tianocore/edk2/commit/dfb941d32a2f38c9177729e39c6a6515abbbad48
  Author: Ard Biesheuvel <[email protected]>
  Date:   2023-09-02 (Sat, 02 Sep 2023)

  Changed paths:
    M OvmfPkg/IoMmuDxe/IoMmuBuffer.c
    M OvmfPkg/IoMmuDxe/IoMmuDxe.inf

  Log Message:
  -----------
  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 <[email protected]>
Acked-by: Pedro Falcato <[email protected]>




_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to