From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: Re: xend deprecation Date: Mon, 21 Oct 2013 11:13:40 -0400 Message-ID: <526544A4.7080703@oracle.com> References: <1377906042-12816-1-git-send-email-msw@linux.com> <20130902203256.GA23391@u109add4315675089e695.ant.amazon.com> <1378195426.7651.57.camel@kazak.uk.xensource.com> <20130904060642.GB25227@u109add4315675089e695.ant.amazon.com> <1378279747.6935.22.camel@dagon.hellion.org.uk> <20130904140414.GA3188@phenom.dumpdata.com> <20131021140953.GB1410@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VYHC4-0008Ac-Gu for xen-devel@lists.xenproject.org; Mon, 21 Oct 2013 15:14:56 +0000 In-Reply-To: <20131021140953.GB1410@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: Steven Noonan , Ian Campbell , Stefano Stabellini , George Dunlap , Matt Wilson , Ian Jackson , Matt Wilson , xen-devel List-Id: xen-devel@lists.xenproject.org On 10/21/2013 10:09 AM, Wei Liu wrote: > On Wed, Sep 04, 2013 at 10:04:14AM -0400, Konrad Rzeszutek Wilk wrote: > [...] >> There are issues that are stopping us from using it: >> > > I look at these xl items from time to time and see if I can fix them but > they come out a little bit more complex than I expect. > > Xl will store DomU configs in its private storage location and retrievs > them as it see fit. This behavior is causing a series of issues. > > For 'xl list -l', the detail info of a domain is retrieved from the > stored config file. > >> - No status in xl list -l when only dom0 is present. > > This would not work because there is no config file for Dom0. > >> - 'xl list -l' says 'Domain name must be specified' even though the '-l' >> is for 'Output all VM details' > > Haven't traced this one down, but I presume this is caused by the same > thing. > >> - No console in xl list -l, so can't get tty console port. > > This would not work because apparently you cannot specify a tty in > DomU's config file -- that's allcoated by xenconsoled. > > Along with the above issues, xl save/restored will only use the stored > config file which makes it impossible to persist any runtime info across > save/restore -- one significant defect is that VM's MAC address changes > every time unless it is specified in the original config file. > > These issues are all connected in a way -- runtime info is not retrieved > / updated / preserved. What I have in mind is that we might need to > introduce a mechanism to pull info from Xenstore, serialize / > deserialize config info / update stored config file when necessary. > > Comments? Long time ago, when I work on it, I have the same feeling (I haven't confirm the latest code yet). xend is a daemon: it handles all VM state change. With xl, a private storage location for each VM is the corresponding solution for now. My suggestion with my limited knowledge is: remove this private storage location and get all the info from xenstore/hypercall. Thanks, Zhigang