All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 0/3] pflash_cfi01: allow reading/writing it only in secure mode
@ 2015-04-09 12:20 Paolo Bonzini
  2015-04-09 12:20 ` [Qemu-devel] [PATCH 1/3] pflash_cfi01: change big-endian property to BIT type Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Paolo Bonzini @ 2015-04-09 12:20 UTC (permalink / raw)
  To: qemu-devel
  Cc: edgar.iglesias, peter.crosthwaite, lersek, kraxel, peter.maydell

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.

In the meanwhile, a review of the approach and of the actual memattrs bit
would be great.

Paolo

Paolo Bonzini (3):
  pflash_cfi01: change big-endian property to BIT type
  pflash_cfi01: change to new-style MMIO accessors
  pflash_cfi01: add secure property

 hw/block/pflash_cfi01.c | 115 ++++++++++++------------------------------------
 1 file changed, 28 insertions(+), 87 deletions(-)

-- 
2.3.5

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-04-10  9:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 12:20 [Qemu-devel] [RFC PATCH 0/3] pflash_cfi01: allow reading/writing it only in secure mode Paolo Bonzini
2015-04-09 12:20 ` [Qemu-devel] [PATCH 1/3] pflash_cfi01: change big-endian property to BIT type Paolo Bonzini
2015-04-09 12:20 ` [Qemu-devel] [PATCH 2/3] pflash_cfi01: change to new-style MMIO accessors Paolo Bonzini
2015-04-09 12:20 ` [Qemu-devel] [PATCH 3/3] pflash_cfi01: add secure property Paolo Bonzini
2015-04-09 12:47 ` [Qemu-devel] [RFC PATCH 0/3] pflash_cfi01: allow reading/writing it only in secure mode Peter Maydell
2015-04-09 13:06   ` Paolo Bonzini
2015-04-09 13:12     ` Peter Maydell
2015-04-09 13:58     ` Edgar E. Iglesias
2015-04-09 14:43       ` Paolo Bonzini
2015-04-09 16:10         ` Laszlo Ersek
2015-04-09 16:27           ` Paolo Bonzini
2015-04-09 23:30             ` Edgar E. Iglesias
2015-04-10  9:54             ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.