]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtioBlkDxe: map VRING using VirtioRingMap()
authorBrijesh Singh <brijesh.singh@amd.com>
Sun, 27 Aug 2017 22:53:17 +0000 (18:53 -0400)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 28 Aug 2017 09:00:14 +0000 (11:00 +0200)
commit19165130470f010a427730ea270c154c9dd500df
treea23dd8130a4994c61ad8aa6d6aa142c1ce05c5f0
parenta2285a8963840683a28ed051077190b086c423eb
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>
OvmfPkg/VirtioBlkDxe/VirtioBlk.c
OvmfPkg/VirtioBlkDxe/VirtioBlk.h