From: Ian Campbell Subject: Re: [PATCH v1 05/10] libxl: synchronise configuration when we hotplug a device Date: Fri, 18 Jul 2014 14:44:32 +0100 Message-ID: <1405691072.14273.0.camel@kazak.uk.xensource.com> References: <1405002745-5034-1-git-send-email-wei.liu2@citrix.com> <1405002745-5034-6-git-send-email-wei.liu2@citrix.com> <1405529339.1087.82.camel@kazak.uk.xensource.com> <20140716171217.GE4913@zion.uk.xensource.com> <1405597483.29996.17.camel@kazak.uk.xensource.com> <20140717141331.GN4913@zion.uk.xensource.com> <1405673372.4823.8.camel@kazak.uk.xensource.com> <20140718112246.GH7142@zion.uk.xensource.com> <1405686011.13883.49.camel@kazak.uk.xensource.com> <20140718134105.GL7142@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140718134105.GL7142@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-07-18 at 14:41 +0100, Wei Liu wrote: > On Fri, Jul 18, 2014 at 01:20:11PM +0100, Ian Campbell wrote: > > On Fri, 2014-07-18 at 12:22 +0100, Wei Liu wrote: > > > I'm think about adding "xl initialise-dom0", which: > > > 1. generates UUID > > > 2. writes relevant xenstore keys > > > 3. generates stub JSON config > > > 4. launches QEMU > > > > > > I think we always needs first 3 items. But I'm not quite sure about the > > > 4th. It's more flexible to launch a process in xencommons, isn't it? > > > > I suppose so. Perhaps we can simply provide some --no-do-foo which would > > allow each of these to be turned off so that an interested admin can > > launch it themselves? > > > > What I had in mind is situation like this: if we are to launch some > other service, we would then need to modify a C program, which is a bit > error prone IMHO. And if we make mistake in parameters in one of our > releases, admin needs to either a) recompile xl or b) use --no-do-foo > then write some runes in xencommon. > > For plan a), recompiling a binary is a hassle comparing to modifying a > script. For plan b), the admin ends up modifying the script anyway. > > If admin wants to launch new service then he / she ends up editing some > init-scripts as well. > > And AIUI we don't have qemu-system-arm for the moment. So picking up the > right arch for QEMU isn't really a requirement now. > > So I propose we implement the first 3 items for the moment, and leave > launching QEMU as is in xencommon. Sure.