summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/IoMmuDxe
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/IoMmuDxe')
-rw-r--r--OvmfPkg/IoMmuDxe/AmdSevIoMmu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c b/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c
index 0ab7043498..bc57de5b57 100644
--- a/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c
+++ b/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c
@@ -611,6 +611,14 @@ IoMmuFreeBuffer (
UINTN CommonBufferPages;
COMMON_BUFFER_HEADER *CommonBufferHeader;
+ DEBUG ((
+ DEBUG_VERBOSE,
+ "%a: Host=0x%p Pages=0x%Lx\n",
+ __FUNCTION__,
+ HostAddress,
+ (UINT64)Pages
+ ));
+
CommonBufferPages = Pages + 1;
CommonBufferHeader = (COMMON_BUFFER_HEADER *)(
(UINTN)HostAddress - EFI_PAGE_SIZE
@@ -630,14 +638,6 @@ IoMmuFreeBuffer (
//
FreePages (CommonBufferHeader->StashBuffer, Pages);
- DEBUG ((
- DEBUG_VERBOSE,
- "%a Address 0x%Lx Pages 0x%Lx\n",
- __FUNCTION__,
- (UINT64)(UINTN)HostAddress,
- (UINT64)Pages
- ));
-
//
// Release the common buffer itself. Unmap() has re-encrypted it in-place, so
// no need to zero it.