summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/VirtioBlkDxe/VirtioBlk.h
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-08-27 18:53:17 -0400
committerLaszlo Ersek <lersek@redhat.com>2017-08-28 11:00:14 +0200
commit19165130470f010a427730ea270c154c9dd500df (patch)
treea23dd8130a4994c61ad8aa6d6aa142c1ce05c5f0 /OvmfPkg/VirtioBlkDxe/VirtioBlk.h
parenta2285a8963840683a28ed051077190b086c423eb (diff)
downloadedk2-19165130470f010a427730ea270c154c9dd500df.tar.gz
edk2-19165130470f010a427730ea270c154c9dd500df.tar.bz2
edk2-19165130470f010a427730ea270c154c9dd500df.zip
OvmfPkg/VirtioBlkDxe: map VRING using VirtioRingMap()
When device is behind the IOMMU then driver need to pass the device address when programing the bus master. The patch uses VirtioRingMap() to map the VRING system physical address to device address. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/VirtioBlkDxe/VirtioBlk.h')
-rw-r--r--OvmfPkg/VirtioBlkDxe/VirtioBlk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/VirtioBlkDxe/VirtioBlk.h b/OvmfPkg/VirtioBlkDxe/VirtioBlk.h
index 6c402ca88e..9ec0b956b8 100644
--- a/OvmfPkg/VirtioBlkDxe/VirtioBlk.h
+++ b/OvmfPkg/VirtioBlkDxe/VirtioBlk.h
@@ -41,6 +41,7 @@ typedef struct {
VRING Ring; // VirtioRingInit 2
EFI_BLOCK_IO_PROTOCOL BlockIo; // VirtioBlkInit 1
EFI_BLOCK_IO_MEDIA BlockIoMedia; // VirtioBlkInit 1
+ VOID *RingMap; // VirtioRingMap 2
} VBLK_DEV;
#define VIRTIO_BLK_FROM_BLOCK_IO(BlockIoPointer) \