From db52890926b6ecff9a416b3beda9c97c83f9fc60 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Sun, 27 Aug 2017 00:56:59 +0200 Subject: 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 Cc: Brijesh Singh Cc: Jordan Justen Cc: Tom Lendacky Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Tested-by: Brijesh Singh --- OvmfPkg/VirtioGpuDxe/Commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3