summaryrefslogtreecommitdiff
path: root/OvmfPkg/VirtioNetDxe/TechNotes.txt
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-09-14 16:22:42 -0500
committerLaszlo Ersek <lersek@redhat.com>2017-09-14 23:54:07 +0200
commit46b11f00ac704ed4a1e3c8c1c3439f914e2dfadc (patch)
tree1dd769f7b42341364f9633203764324c3ca52256 /OvmfPkg/VirtioNetDxe/TechNotes.txt
parent940baec09c8f4664b34842d13a30ce243d0b7b4b (diff)
downloadedk2-46b11f00ac704ed4a1e3c8c1c3439f914e2dfadc.zip
edk2-46b11f00ac704ed4a1e3c8c1c3439f914e2dfadc.tar.gz
edk2-46b11f00ac704ed4a1e3c8c1c3439f914e2dfadc.tar.bz2
OvmfPkg/VirtioNetDxe: alloc RxBuf using AllocateSharedPages()
When device is behind the IOMMU, VirtioNetDxe is required to use the device address in bus master operations. RxBuf is allocated using AllocatePool() which returns the system physical address. The patch uses VIRTIO_DEVICE_PROTOCOL.AllocateSharedPages() to allocate the RxBuf and map with VirtioMapAllBytesInSharedBuffer() so that we can obtain the device address for RxBuf. 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/VirtioNetDxe/TechNotes.txt')
-rw-r--r--OvmfPkg/VirtioNetDxe/TechNotes.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/VirtioNetDxe/TechNotes.txt b/OvmfPkg/VirtioNetDxe/TechNotes.txt
index 37250b1..fedbaee 100644
--- a/OvmfPkg/VirtioNetDxe/TechNotes.txt
+++ b/OvmfPkg/VirtioNetDxe/TechNotes.txt
@@ -247,7 +247,7 @@ In VirtioNetInitRx, the guest allocates the fixed size Receive Destination
Area, which accommodates all packets delivered asynchronously by the host. To
each packet, a slice of this area is dedicated; each slice is further
subdivided into virtio-net request header and network packet data. The
-(guest-physical) addresses of these sub-slices are denoted with A2, A3, A4 and
+(device-physical) addresses of these sub-slices are denoted with A2, A3, A4 and
so on. Importantly, an even-subscript "A" always belongs to a virtio-net
request header, while an odd-subscript "A" always belongs to a packet
sub-slice.