Received: from eggs.gnu.org ([2001:4830:134:3::10]:44041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpVoe-00077u-Tj for qemu-devel@nongnu.org; Fri, 23 Oct 2015 02:27:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpVob-0001xy-Nv for qemu-devel@nongnu.org; Fri, 23 Oct 2015 02:27:04 -0400 Received: from mga14.intel.com ([192.55.52.115]:14170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpVob-0001xo-If for qemu-devel@nongnu.org; Fri, 23 Oct 2015 02:27:01 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jordan Justen Message-ID: <20151023062700.30810.47746@jljusten-ivb> Date: Thu, 22 Oct 2015 23:27:00 -0700 Subject: [Qemu-devel] fw_cfg DMA security List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: markmb@redhat.com, qemu-devel@nongnu.org Back when I was looking at fw_cfg support for -kernel in OVMF, I noted that it took a while to read the kernel. We improved the perf substantially by using a 'rep insb' instruction, which I think kvm special cases to minimize VM traps. Nevertheless, I thought that it would be good to implement a DMA interface to fw_cfg. It's great to see that Marc made that happen. One complication I thought of was that it might be tricky to deal with the implications of allowing this DMA to specify any old address to fill with fw_cfg data. So, for example, since Red Hat is working on SMM. Would a DMA to SMRAM be protected? I haven't watched the fw_cfg DMA discussion too closely, but has this been thought about? One idea I had was that near the end of the firmware boot, the firmware could trigger fw_cfg in QEMU to stop supporting DMA until a reset. -Jordan