From: "Jan Beulich" Subject: Re: Xen 4.1 + Linux compiled with PVH == BOOM Date: Tue, 07 Jan 2014 08:23:28 +0000 Message-ID: <52CBC7900200007800110EF7@nat28.tlf.novell.com> References: <20131220175735.GA619@phenom.dumpdata.com> <1387624194.1025.70.camel@dagon.hellion.org.uk> <52B8046302000078000A9C8C@nat28.tlf.novell.com> <52B8235D02000078000A9CB1@nat28.tlf.novell.com> <20131224015650.GA2191@pegasus.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W0Rwk-0005go-CV for xen-devel@lists.xenproject.org; Tue, 07 Jan 2014 08:23:34 +0000 In-Reply-To: <20131224015650.GA2191@pegasus.dumpdata.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: xen-devel , Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 24.12.13 at 02:56, Konrad Rzeszutek Wilk wrote: > On Mon, Dec 23, 2013 at 11:49:49AM +0000, Jan Beulich wrote: >> >>> "Jan Beulich" 12/23/13 10:39 AM >>> >> >>>> Ian Campbell 12/21/13 12:10 PM >>> >> >>On Fri, 2013-12-20 at 12:57 -0500, Konrad Rzeszutek Wilk wrote: >> >>> But perhaps that is not the way to do it and we should just cherry-pick >> >>> 30832c06a8d1f9caff0987654ef9e24d59469d9a in Xen 4.1? >> >> >> >>I think we should do both, i.e. backport 30832c06a8d1 now to solve the >> >>immediate problem and then look at fixing unstable to be more accepting >> >>of new features which it doesn't yet know about. >> > >> >Hmm, not sure - without a split between necessary to be understood >> >and acceptable to be unknown ones, I'm not sure either model will be >> >the right thing. >> >> And actually, in the case at hand the "BOOM" is correct: If the kernel tells >> the hypervisor that it needs a feature the hypervisor doesn't even > recognize, >> it's surely wrong to ignore this. The mistake here is for the kernel to > require > > But it does not ignore it. It checks later on in construct_dom0 whether > the 'required' parameters are present, like: That's what I said: It is / would be wrong to ignore a feature th kernel requires. > if ( test_bit(XENFEAT_supervisor_mode_kernel, parms.f_required) ) This is even more confusing: 30832c06 is about hvm_callback_vector, not supervisor_mode_kernel. >> that feature statically in the first place - that should be done only if the > kernel >> could _only_ boot in PVH mode. > > The feature is not marked as "required" but rather - it can utilize said > extension (so supported). I am advocating that the calleer checks that > all of the required pieces are correct - and it can ignore the ones it > has no idea off (which it does for some of the Xen ELF notes - ignores > them if it has no idea of what they are). What would be to point of telling the hypervisor that the kernel can utilize a certain extension? The kernel could just utilize it, and the hypervisor would know by that simple fact. Jan