From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CF06121DF809B for ; Mon, 28 Aug 2017 06:22:01 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD72790C7B; Mon, 28 Aug 2017 13:24:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CD72790C7B Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-67.phx2.redhat.com [10.3.116.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 761026061E; Mon, 28 Aug 2017 13:24:39 +0000 (UTC) From: Laszlo Ersek To: edk2-devel-01 Cc: Ard Biesheuvel , Brijesh Singh , Jordan Justen , Tom Lendacky Date: Mon, 28 Aug 2017 15:24:30 +0200 Message-Id: <20170828132436.15933-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 28 Aug 2017 13:24:40 +0000 (UTC) Subject: [PATCH 0/6] OvmfPkg/VirtioGpuDxe: map system memory addresses to device addresses X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2017 13:22:02 -0000 Repo: https://github.com/lersek/edk2.git Branch: virtio_gpu_map This series brings IOMMU support to VirtioGpuDxe. The interesting part is patch#5. I formatted the patches with function context, for easier review. I regression-tested this series in various environments; IA32, X64, AARCH64. My access to a SEV machine is still in the making, so I couldn't test the patches on SEV. Brijesh, if you could test the series for me on SEV, that would be great. I also plan to test it on SEV, once my access is established. Cc: Ard Biesheuvel Cc: Brijesh Singh Cc: Jordan Justen Cc: Tom Lendacky Thanks, Laszlo Laszlo Ersek (6): OvmfPkg/VirtioGpuDxe: map VRING for bus master common buffer operation OvmfPkg/VirtioGpuDxe: map virtio GPU command objects to device addresses OvmfPkg/VirtioGpuDxe: take EFI_PHYSICAL_ADDRESS in ResourceAttachBacking() OvmfPkg/VirtioGpuDxe: helpers for backing store (de)allocation+(un)mapping OvmfPkg/VirtioGpuDxe: map backing store to bus master device address OvmfPkg/VirtioGpuDxe: negotiate VIRTIO_F_IOMMU_PLATFORM OvmfPkg/VirtioGpuDxe/VirtioGpu.h | 89 ++++++- OvmfPkg/VirtioGpuDxe/Commands.c | 263 ++++++++++++++++++-- OvmfPkg/VirtioGpuDxe/DriverBinding.c | 1 - OvmfPkg/VirtioGpuDxe/Gop.c | 62 +++-- 4 files changed, 370 insertions(+), 45 deletions(-) -- 2.14.1.3.gb7cf6e02401b