qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] nand/onenand: reject read-only drives
@ 2011-10-20 12:53 juha.riihimaki
  2011-10-20 12:53 ` [Qemu-devel] [PATCH v2 1/2] hw/nand: " juha.riihimaki
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: juha.riihimaki @ 2011-10-20 12:53 UTC (permalink / raw)
  To: qemu-devel

From: Juha Riihimäki <juha.riihimaki@nokia.com>

Make NAND and OneNAND device models reject read-only drives.
Test for example by running

$ qemu-system-arm -drive if=none,file=/dev/zero,readonly,id=foo -device nand,drive=foo,chip_id=0x59 -kernel /dev/null

or

$ qemu-system-arm -drive if=none,file=/dev/zero,readonly,id=foo -device onenand,drive=foo -kernel /dev/null

Changes v1->v2:
+ fix bug introduced in pagesize calculation for NAND devices without a drive image
+ revise commit message in hw/nand patch

Juha Riihimäki (2):
  hw/nand: reject read-only drives
  hw/onenand: reject read-only drives

 hw/nand.c    |   20 +++++++++++++-------
 hw/onenand.c |    5 +++++
 2 files changed, 18 insertions(+), 7 deletions(-)

-- 
1.7.5.4

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

end of thread, other threads:[~2011-11-14  3:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-20 12:53 [Qemu-devel] [PATCH v2 0/2] nand/onenand: reject read-only drives juha.riihimaki
2011-10-20 12:53 ` [Qemu-devel] [PATCH v2 1/2] hw/nand: " juha.riihimaki
2011-10-20 12:53 ` [Qemu-devel] [PATCH v2 2/2] hw/onenand: " juha.riihimaki
2011-11-08  9:17 ` [Qemu-devel] [PATCH v2 0/2] nand/onenand: " Markus Armbruster
2011-11-14  3:02 ` andrzej zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).