[edk2-devel] [PATCH 1/1] OvmfPkg/IoMmuDxe: add locking to IoMmuAllocateCommonBuffer

Gerd Hoffmann kraxel at redhat.com
Thu Jul 20 10:22:19 UTC 2023


  Hi,

> Not sure why InternalAllocateBuffer() doesn't update mReservedMemBitmap
> itself.  That would be needed to protect the allocation code paths with
> InterlockedCompareExchange32() too.

Not a straight forward conversion, current code copies around bitmap
snippets, so this logic needs a rewrite to work with
InterlockedCompareExchange32().  Don't have the time to do that now
(leaving tomorrow for my three week summer vacation ...).

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107095): https://edk2.groups.io/g/devel/message/107095
Mute This Topic: https://groups.io/mt/100251949/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list