diff options
author | Brijesh Singh <brijesh.singh@amd.com> | 2017-08-31 10:25:26 -0400 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-08-31 20:57:04 +0200 |
commit | fc2168feb24827b3691d85a00f23c35ac4eb2910 (patch) | |
tree | 64897be4fbec31c97f2f0bb72c9a89cd66c0c78e /OvmfPkg/VirtioScsiDxe/VirtioScsi.h | |
parent | fefeb416e63bf77aa809c2251571cd323c3ad60a (diff) | |
download | edk2-fc2168feb24827b3691d85a00f23c35ac4eb2910.tar.gz edk2-fc2168feb24827b3691d85a00f23c35ac4eb2910.tar.bz2 edk2-fc2168feb24827b3691d85a00f23c35ac4eb2910.zip |
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>
Diffstat (limited to 'OvmfPkg/VirtioScsiDxe/VirtioScsi.h')
-rw-r--r-- | OvmfPkg/VirtioScsiDxe/VirtioScsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/VirtioScsiDxe/VirtioScsi.h b/OvmfPkg/VirtioScsiDxe/VirtioScsi.h index 6d00567e8c..05a6bf5672 100644 --- a/OvmfPkg/VirtioScsiDxe/VirtioScsi.h +++ b/OvmfPkg/VirtioScsiDxe/VirtioScsi.h @@ -60,6 +60,7 @@ typedef struct { VRING Ring; // VirtioRingInit 2
EFI_EXT_SCSI_PASS_THRU_PROTOCOL PassThru; // VirtioScsiInit 1
EFI_EXT_SCSI_PASS_THRU_MODE PassThruMode; // VirtioScsiInit 1
+ VOID *RingMap; // VirtioRingMap 2
} VSCSI_DEV;
#define VIRTIO_SCSI_FROM_PASS_THRU(PassThruPointer) \
|