Received: from eggs.gnu.org ([140.186.70.92]:43537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG5I6-0003lr-0j for qemu-devel@nongnu.org; Tue, 18 Oct 2011 04:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RG5I0-00058Z-31 for qemu-devel@nongnu.org; Tue, 18 Oct 2011 04:44:53 -0400 Received: from smtp.nokia.com ([147.243.1.47]:50464 helo=mgw-sa01.nokia.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG5Hz-00057x-CH for qemu-devel@nongnu.org; Tue, 18 Oct 2011 04:44:47 -0400 From: Date: Tue, 18 Oct 2011 08:44:25 +0000 Message-ID: In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: <398DBE8F75BA4C499E1097A3004A95AF@nokia.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] hw/nand hw/onenand and read-only List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: armbru@redhat.com Cc: peter.maydell@linaro.org, riku.voipio@iki.fi, qemu-devel@nongnu.org On 18.10.11 11:23 , "ext Markus Armbruster" wrote: >These guys have been converted to qdev relatively recently. > >I wonder what happens when they use a drive defined with "-drive >if=3Dnone,readonly". > >If that's not a valid configuration, we better reject read-only drives, >like ide_init_drive() does. I'm not an expert with QEMU command line options; how do you pass such a drive to a NAND device? With "if=3Dmtd" I get the following which I guess i= s expected result: $ qemu-system-arm -M beagle -drive if=3Dmtd,file=3Dnand.img,readonly qemu: readonly flag not supported for drive with this interface Regards, Juha