From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adI1j-0006MY-Cz for qemu-devel@nongnu.org; Tue, 08 Mar 2016 08:50:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adI1f-0003Fv-Jb for qemu-devel@nongnu.org; Tue, 08 Mar 2016 08:50:19 -0500 Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]:32807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adI1f-0003Fi-F8 for qemu-devel@nongnu.org; Tue, 08 Mar 2016 08:50:15 -0500 Received: by mail-vk0-x22e.google.com with SMTP id k1so16851276vkb.0 for ; Tue, 08 Mar 2016 05:50:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1455288361-30117-1-git-send-email-peter.maydell@linaro.org> <56DD9C58.7050306@redhat.com> <56DEBF6A.6070809@redhat.com> <56DEC234.70907@redhat.com> From: Peter Maydell Date: Tue, 8 Mar 2016 20:49:55 +0700 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 0/4] virt: provide secure-only RAM and first flash List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ard Biesheuvel Cc: Paolo Bonzini , qemu-arm , "Michael S. Tsirkin" , QEMU Developers , Markus Armbruster On 8 March 2016 at 19:16, Ard Biesheuvel wrote: > The UEFI code is loaded into DRAM by the secure firmware, and > relocated and executed from there. Incidentally, since we're using the semihosting API to do this at the moment, this makes the whole thing completely dependent on the nonsecure guest not being badly behaved, because NS EL1 can happily make its own semihosting calls which do interesting things like read and write arbitrary host files. Presumably one could in theory configure ATF to use something more sensible (like having the various blobs it loads be stuffed into the flash with it, or loaded off an emulated disk or something). But the current use case is as a development tool for the firmware and secure apps and so on, not something intended to contain malicious code. Making the flash, ram, etc secure-only is worthwhile because it exposes plausible bugs in the guest code being developed. thanks -- PMM