Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions OvmfPkg/VirtioBlkDxe/VirtioBlk.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ SynchronousRequest (
EFI_PHYSICAL_ADDRESS RequestDeviceAddress;
EFI_STATUS Status;
EFI_STATUS UnmapStatus;
EFI_TPL CurrentTpl;

BlockSize = Dev->BlockIoMedia.BlockSize;

Expand Down Expand Up @@ -365,6 +366,8 @@ SynchronousRequest (
goto UnmapDataBuffer;
}

CurrentTpl = gBS->RaiseTPL (TPL_NOTIFY);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this needs to be moved above Status = VirtioMapAllBytesInSharedBuffer ( 🤔


VirtioPrepare (&Dev->Ring, &Indices);

//
Expand Down Expand Up @@ -438,6 +441,7 @@ SynchronousRequest (
Status = EFI_DEVICE_ERROR;
}

gBS->RestoreTPL (CurrentTpl);
Dev->VirtIo->UnmapSharedBuffer (Dev->VirtIo, StatusMapping);

UnmapDataBuffer:
Expand Down
Loading