]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PvScsiDxe: Setup requests and completions rings
authorLiran Alon <liran.alon@oracle.com>
Sat, 28 Mar 2020 20:00:56 +0000 (23:00 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 30 Mar 2020 16:45:07 +0000 (16:45 +0000)
commitb654edec034a5e5dcc440f2f30fd2aa6c31aef3c
treebfec94afe2c198aaff63e677c3c9c37593e18f23
parent5269c26e07381dcc7e9de4fe1f2a5b7ed1e5c78a
OvmfPkg/PvScsiDxe: Setup requests and completions rings

These rings are shared memory buffers between host and device in which
a cyclic buffer is managed to send request descriptors from host to
device and receive completion descriptors from device to host.

Note that because device may be constrained by IOMMU or guest may be run
under AMD SEV, we make sure to map these rings to device by using
PciIo->Map().

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2567
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Message-Id: <20200328200100.60786-14-liran.alon@oracle.com>
Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/PvScsiDxe/PvScsi.c
OvmfPkg/PvScsiDxe/PvScsi.h
OvmfPkg/PvScsiDxe/PvScsiDxe.inf