OvmfPkg/IoMmuDxe: IoMmuUnmap(): clean up DEBUG message
The only important external information for this function, and for the human looking at the log, is the Mapping input parameter. Log it on entry. Stop logging the contents of the MAP_INFO structure pointed-to by Mapping. Thanks to the previous patch, we can now associate IoMmuUnmap() messages with IoMmuMap() messages -- and thereby with MAP_INFO contents -- purely via Mapping. Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Brijesh Singh <brijesh.singh@amd.com> Tested-by: Brijesh Singh <brijesh.singh@amd.com>
This commit is contained in:
@@ -348,6 +348,8 @@ IoMmuUnmap (
|
||||
COMMON_BUFFER_HEADER *CommonBufferHeader;
|
||||
VOID *EncryptionTarget;
|
||||
|
||||
DEBUG ((DEBUG_VERBOSE, "%a: Mapping=0x%p\n", __FUNCTION__, Mapping));
|
||||
|
||||
if (Mapping == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
@@ -399,16 +401,6 @@ IoMmuUnmap (
|
||||
break;
|
||||
}
|
||||
|
||||
DEBUG ((
|
||||
DEBUG_VERBOSE,
|
||||
"%a PlainText 0x%Lx Crypted 0x%Lx Pages 0x%Lx Bytes 0x%Lx\n",
|
||||
__FUNCTION__,
|
||||
MapInfo->PlainTextAddress,
|
||||
MapInfo->CryptedAddress,
|
||||
(UINT64)MapInfo->NumberOfPages,
|
||||
(UINT64)MapInfo->NumberOfBytes
|
||||
));
|
||||
|
||||
//
|
||||
// Restore the memory encryption mask on the area we used to hold the
|
||||
// plaintext.
|
||||
|
Reference in New Issue
Block a user