[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] hw/nand hw/onenand and read-only
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] hw/nand hw/onenand and read-only |
Date: |
Wed, 19 Oct 2011 10:03:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
<address@hidden> writes:
> On 18.10.11 16:38 , "ext Markus Armbruster" <address@hidden> wrote:
>
>> $ qemu-system-arm -drive if=none,file=tmp.qcow2,readonly,id=foo
>>-device nand,drive=foo -kernel /dev/null
>> qemu: hardware error: nand_device_init: Unsupported NAND block size.
>> [...]
>>
>>Note that I didn't bother supplying a drive with sensible size. If I
>>did, I guess I'd get nand coupled to a read-only drive. Easy enough for
>>you to try :)
>
> Indeed, thanks ;) While I'm at it, I'll also fix the NAND init function to
> return -1 instead of aborting. I'll send patches for hw/nand and
> hw/onenand shortly. I'll simply make them reject read-only drives however
Thanks!
> both device models already support running without a drive as well by
> using a memory buffer instead so it would also be possible to make them
> use a read-only drive in a way that initial NAND/OneNAND contents would be
> read from the drive but any changes would not be written back to the drive
> and would be lost when QEMU is killed.
Sounds like it could be useful, but it's not what I'd expect for
"readonly".
You could create a boolean device property to make memory contents
transient rather than persistent. Then reject read-only drives only in
persistent mode, i.e. when the property is false. Feels cleaner to me.
- [Qemu-devel] hw/nand hw/onenand and read-only, Markus Armbruster, 2011/10/18
- Re: [Qemu-devel] hw/nand hw/onenand and read-only, Juha.Riihimaki, 2011/10/18
- Re: [Qemu-devel] hw/nand hw/onenand and read-only, Markus Armbruster, 2011/10/18
- Re: [Qemu-devel] hw/nand hw/onenand and read-only, Juha.Riihimaki, 2011/10/19
- Re: [Qemu-devel] hw/nand hw/onenand and read-only,
Markus Armbruster <=
- Re: [Qemu-devel] hw/nand hw/onenand and read-only, Peter Maydell, 2011/10/19
- Re: [Qemu-devel] hw/nand hw/onenand and read-only, Kevin Wolf, 2011/10/19
- Re: [Qemu-devel] hw/nand hw/onenand and read-only, Markus Armbruster, 2011/10/19