From: Ian Campbell Subject: Re: [PATCH 4 of 6] libxl: support suspend_cancel in domain_resume Date: Thu, 2 Feb 2012 07:59:20 +0000 Message-ID: <1328169560.28964.59.camel@dagon.hellion.org.uk> References: <1328004041.26983.322.camel@zakaz.uk.xensource.com> <1328093634.17444.59.camel@zakaz.uk.xensource.com> <20120201154821.GL12984@reaktio.net> <1328112163.17444.86.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "rshriram@cs.ubc.ca" Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini , Ian Jackson , "brendan@cs.ubc.ca" , Anthony Perard List-Id: xen-devel@lists.xenproject.org On Thu, 2012-02-02 at 07:04 +0000, Shriram Rajagopalan wrote: > 2012/2/1 Shriram Rajagopalan > On 2012-02-01, at 8:02 AM, Ian Campbell > wrote: > = > > On Wed, 2012-02-01 at 15:48 +0000, Pasi K=E4rkk=E4inen wrote: > >> On Wed, Feb 01, 2012 at 10:53:54AM +0000, Ian Campbell > wrote: > >>> On Tue, 2012-01-31 at 17:52 +0000, Shriram Rajagopalan > wrote: > >>>> As for guests supporting this fast suspend, almost all > guests (pv/hvm > >>>> linux/windows) do support suspend_cancel. IIRC, I think > some very old > >>>> kernels didnt have this ability. > >>> > = > = > = > xenstore entry, local/domain//image/suspend-cancel - this entry > indicates if the guest supports co-operative suspend or not. = > But unfortunately, I coundnt find any reference in xend, that > "creates" this entry. There are references in xen/ and the tools/ > folder, that read the SUSPEND_CANCEL entry, like readnotes, > XendDomainInfo.py, xen/common/libelf/libelf-dominfo.c = The value of this setting needs to come from the kernel itself. In arch/x86/xen/xen-head.S I see: ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long 1) Is something (presumably the toolstack, in collaboration with libelf and xc_dom_mumble) supposed to reflect this into XenStore somehow? (and preserve it on migration etc etc) It looks like xend just assumes it to be true, judging from the various = # TODO: currently assumes SUSPEND_CANCEL is available comments. I guess assumption that just gets reflected into XS somewhere? Ian.