WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] RFC: Making QEMU honour 'readonly' flag for disks

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] RFC: Making QEMU honour 'readonly' flag for disks
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Wed, 30 Jul 2008 10:16:08 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 30 Jul 2008 02:34:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <18576.11753.2777.902201@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080724113627.GU1138@xxxxxxxxxx> <18568.34189.57005.491667@xxxxxxxxxxxxxxxxxxxxxxxx> <18576.11753.2777.902201@xxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Wed, Jul 30, 2008 at 10:01:29AM +0100, Ian Jackson wrote:
> Daniel P. Berrange writes ("[Xen-devel] RFC: Making QEMU honour 'readonly' 
> flag for disks"):
> > The Xen disk configuration syntax allows a block device to be marked as
> > readonly, exclusive writable or shared writeable. The xen hotplug scripts
> > will clash for clashing configs between domains, but  it is upto the
> > backend drivers to actually enforce the readonly flag on I/O operations.
> > The paravirt backend disk driver does this fine, but QEMU's emulated
> > backend driver does not.
> 
> I still think this is a fix we should have but your patch is very
> intrusive.  Is there some reason why you didn't just invent
> BDRV_O_RDONLY_NO__ACTUALLY__READONLY ?  A new parameter to bdrv_new
> seems quite wrong.
> 
> (It's a shame that the existing BDRV_O_RDONLY does something strange
> and probably wrong, but we probably don't want to fix that in our
> branch.)

Yeah, I'm actually attempting to fix that craziness, which is why
I've not posted an update yet. I think it may actually be easier
to fix that it appears....

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel