]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtioRngDxe: map host address to device address
authorBrijesh Singh <brijesh.singh@amd.com>
Wed, 23 Aug 2017 10:57:19 +0000 (06:57 -0400)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 25 Aug 2017 08:42:19 +0000 (10:42 +0200)
commit0a568ccbcbd13751b92438c000df79c0d6c2d8f9
tree8028c6f869c9812a0b22d091be1465d817025516
parent4b725858de68422e5f3543c1c052f61447e9969c
OvmfPkg/VirtioRngDxe: map host address to device address

patch maps the host address to a device address for buffers (including
rings, device specifc request and response pointed by vring descriptor,
and any further memory reference by those request and response).

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>
[lersek@redhat.com: return EFI_DEVICE_ERROR if mapping fails in GetRNG]
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/VirtioRngDxe/VirtioRng.c
OvmfPkg/VirtioRngDxe/VirtioRng.h