]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtioRngDxe: negotiate VIRTIO_F_IOMMU_PLATFORM
authorBrijesh Singh <brijesh.singh@amd.com>
Fri, 25 Aug 2017 10:37:47 +0000 (06:37 -0400)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 25 Aug 2017 14:19:57 +0000 (16:19 +0200)
commit4bef13da0022e3a748f9e6afc8ff197c2fb6764c
tree9167a02435da52bfca46c4ae5b8a70314f7c3596
parent4fb268029e2263eecac8250496e05fc309e770c6
OvmfPkg/VirtioRngDxe: negotiate VIRTIO_F_IOMMU_PLATFORM

VirtioRngDxe driver has been updated to use IOMMU-like member functions
from VIRTIO_DEVICE_PROTOCOL to translate the system physical address to
device address. We do not need to do anything special when
VIRTIO_F_IOMMU_PLATFORM bit is present hence treat it in parallel with
VIRTIO_F_VERSION_1.

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>
OvmfPkg/VirtioRngDxe/VirtioRng.c