]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtioScsiDxe: map VRING using VirtioRingMap()
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 31 Aug 2017 14:25:26 +0000 (10:25 -0400)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 31 Aug 2017 18:57:04 +0000 (20:57 +0200)
commitfc2168feb24827b3691d85a00f23c35ac4eb2910
tree64897be4fbec31c97f2f0bb72c9a89cd66c0c78e
parentfefeb416e63bf77aa809c2251571cd323c3ad60a
OvmfPkg/VirtioScsiDxe: 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>
Tested-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/VirtioScsiDxe/VirtioScsi.c
OvmfPkg/VirtioScsiDxe/VirtioScsi.h