From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgBsZ-0002jO-1g for qemu-devel@nongnu.org; Thu, 09 Apr 2015 08:48:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgBsR-0006Mo-Jj for qemu-devel@nongnu.org; Thu, 09 Apr 2015 08:48:18 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:36611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgBsR-0006Mi-Fe for qemu-devel@nongnu.org; Thu, 09 Apr 2015 08:48:11 -0400 Received: by iebrs15 with SMTP id rs15so99412601ieb.3 for ; Thu, 09 Apr 2015 05:48:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1428582043-19080-1-git-send-email-pbonzini@redhat.com> References: <1428582043-19080-1-git-send-email-pbonzini@redhat.com> From: Peter Maydell Date: Thu, 9 Apr 2015 13:47:50 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [RFC PATCH 0/3] pflash_cfi01: allow reading/writing it only in secure mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "Edgar E. Iglesias" , Peter Crosthwaite , Laszlo Ersek , QEMU Developers , Gerd Hoffmann On 9 April 2015 at 13:20, Paolo Bonzini wrote: > This is an example of usage of attributes in a device model. It lets > you block flash writes unless the CPU is in secure mode. Enabling it > currently requires a -readconfig file: > > [global] > driver = "cfi.pflash01" > property = "secure" > value = "on" > > because the driver includes a "."; however, I plan to enable this through > the command line for the final version of the patches. Are real flash devices ever wired up like this? I would expect boards which want to provide secure-mode only flash to do so by not giving any access at all to the device from the non-secure address space. (Supporting multiple AddressSpaces for ARM CPUs is the next thing on my todo list; as well as partitioning the flash this would allow secure-mode-only RAM and UARTs, for instance.) -- PMM