From: Ian Jackson Subject: Re: Driver domains and hotplug scripts, redux Date: Thu, 12 Jan 2012 16:50:07 +0000 Message-ID: <20239.3903.482693.622400@mariner.uk.xensource.com> References: <1325694562.25206.304.camel@zakaz.uk.xensource.com> <20229.59079.535980.830271@mariner.uk.xensource.com> <20235.9838.103514.619546@mariner.uk.xensource.com> <20236.27158.706017.813195@mariner.uk.xensource.com> <20236.28931.127139.752426@mariner.uk.xensource.com> <1326284268.17210.200.camel@zakaz.uk.xensource.com> <81A73678E76EA642801C8F2E4823AD21C4F901F5A9@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <81A73678E76EA642801C8F2E4823AD21C4F901F5A9@LONPMAILBOX01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dave Scott Cc: "xen-devel@lists.xensource.com" , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Dave Scott writes ("Re: [Xen-devel] Driver domains and hotplug scripts, redux"): > FYI XCP/xapi is a heavy user of blktap2 and we use it like this: > > 0. user calls VM.start > 1. xapi invokes one of its "storage managers" (plugin scripts, one per > storage type) telling it to "attach" a disk. > 2. the storage manager zones-in the relevant LUN and runs "tap-ctl" > commands to create a block device. This is returned to xapi. > 3. xapi creates the block backend directory in xenstore with > "params=". Thanks for the info. Right, this is a model we should continue to support in libxl. All the "management" is done outside libxl, and libxl is simply provided with the block device. ATM libxl only supports taking an actual device name in /dev, and TBH I can't really see that changing because some parts of libxl might need to actually open it in dom0. I guess though it wouldn't be hard for xapi to provide a name in /dev. It must surely make one for its own purposes. Ian.