On 09/14/17 13:08, Brijesh Singh wrote: > When device is behind IOMMU, driver is require to pass the device address > of TxBuf in the Tx VRING. The patch adds helper functions and data > structure to map and unmap the TxBuf system physical address to a device > address. > > Since the TxBuf is returned back to caller from VirtioNetGetStatus() hence > we use OrderedCollection interface to save the TxBuf system physical to > device address mapping. After the TxBuf is succesfully transmitted > VirtioNetUnmapTxBuf() does the reverse lookup in OrderedCollection data > structure to get the system physical address of TxBuf for a given device > address. > > Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> > Cc: Jordan Justen <jordan.l.jus...@intel.com> > Cc: Tom Lendacky <thomas.lenda...@amd.com> > Cc: Laszlo Ersek <ler...@redhat.com> > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Brijesh Singh <brijesh.si...@amd.com> > --- > OvmfPkg/VirtioNetDxe/VirtioNet.inf | 1 + > OvmfPkg/VirtioNetDxe/VirtioNet.h | 38 ++++ > OvmfPkg/VirtioNetDxe/SnpInitialize.c | 18 +- > OvmfPkg/VirtioNetDxe/SnpSharedHelpers.c | 224 ++++++++++++++++++++ > 4 files changed, 279 insertions(+), 2 deletions(-)
Reviewed-by: Laszlo Ersek <ler...@redhat.com> _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel