From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGdq6-0004EE-La for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:56:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGdq0-00044u-HX for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:56:57 -0400 Received: from [199.232.76.173] (port=52501 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGdq0-00044L-7m for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:56:52 -0400 Received: from mail2.shareable.org ([80.68.89.115]:60765) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGdpz-0005F9-P3 for qemu-devel@nongnu.org; Tue, 16 Jun 2009 14:56:51 -0400 Date: Tue, 16 Jun 2009 19:56:46 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Regression opening read-only cdroms Message-ID: <20090616185646.GL11893@shareable.org> References: <4A37896C.8050208@redhat.com> <20090616143259.GA29040@shareable.org> <4A37B23F.6040604@eu.citrix.com> <20090616145421.GD29040@shareable.org> <4A37C82B.5030805@codemonkey.ws> <4A37D30D.40003@eu.citrix.com> <20090616174653.GA11893@shareable.org> <4A37DC64.4090501@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A37DC64.4090501@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Christoph Hellwig , qemu-devel , Stefano Stabellini Avi Kivity wrote: > On 06/16/2009 08:46 PM, Jamie Lokier wrote: > >Users who expect things to just work will be even more surprised that > >"-hda image" where image is read-only does not give any error from > >QEMU, but their guest crashes. Or that "-hda image" works as usual, > >and their guest crashes, and eventually they discover it's because > >their disk image is not writable, and it's always worked before > >because they were using -snapshot or something like that, and QEMU > >didn't warn them it would be a problem... > > I agree, for non-cdroms/floppies, non-backing store files we should > require write access. Did you miss that read-only disks exist, as seen through SCSI/USB/virtio, and that guests will mount them read-only automatically? There are real physical storage devices like that. Just think of your favourite USB flash drive with a write-protection switch. It's just a SCSI disk with the read-only flag set, to the guest. Modern guests know about them. -- Jamie