summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/VirtioGpuDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-08-27 00:56:59 +0200
committerLaszlo Ersek <lersek@redhat.com>2017-09-01 14:28:28 +0200
commitdb52890926b6ecff9a416b3beda9c97c83f9fc60 (patch)
tree73aa8e9d9bd016740aaffb25a9455cc4a4cc8911 /OvmfPkg/VirtioGpuDxe
parentf10ae923665fae7dff10a58a70f83e4be3409436 (diff)
downloadedk2-db52890926b6ecff9a416b3beda9c97c83f9fc60.tar.gz
edk2-db52890926b6ecff9a416b3beda9c97c83f9fc60.tar.bz2
edk2-db52890926b6ecff9a416b3beda9c97c83f9fc60.zip
OvmfPkg/VirtioGpuDxe: negotiate VIRTIO_F_IOMMU_PLATFORM
VirtioGpuDxe is now IOMMU-clean; it translates system memory addresses to bus master device addresses. Negotiate VIRTIO_F_IOMMU_PLATFORM in parallel with VIRTIO_F_VERSION_1. (Note: the VirtIo GPU device, and this driver, are virtio-1.0 only (a.k.a. "modern-only").) Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Brijesh Singh <brijesh.singh@amd.com>
Diffstat (limited to 'OvmfPkg/VirtioGpuDxe')
-rw-r--r--OvmfPkg/VirtioGpuDxe/Commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/VirtioGpuDxe/Commands.c b/OvmfPkg/VirtioGpuDxe/Commands.c
index db5bdbca4b..6e70b1c33f 100644
--- a/OvmfPkg/VirtioGpuDxe/Commands.c
+++ b/OvmfPkg/VirtioGpuDxe/Commands.c
@@ -90,7 +90,7 @@ VirtioGpuInit (
//
// We only want the most basic 2D features.
//
- Features &= VIRTIO_F_VERSION_1;
+ Features &= VIRTIO_F_VERSION_1 | VIRTIO_F_IOMMU_PLATFORM;
//
// ... and write the subset of feature bits understood by the [...] driver to