From: Ian Campbell Subject: Re: xl create should refuse to share block devices RW between domains Date: Tue, 27 Jul 2010 09:18:58 +0100 Message-ID: <1280218738.5872.8148.camel@zakaz.uk.xensource.com> References: <4C4E2A06.9070604@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4C4E2A06.9070604@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Xen-devel@lists.xensource.com, Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2010-07-27 at 01:36 +0100, Jeremy Fitzhardinge wrote: > When creating a domain, "xl create" should fail if a block device is > shared RW between domains, like xm create does. > > I'm not sure how this would be implemented. Search xenstore for > references to the device when setting up a domain? The hotplug scripts have locking and calls to a function called "check_device_sharing" in them, I've been wondering why that wasn't kicking in for xl created domains for a little while but never got to investigating. Ian.