From: Ian Campbell Subject: Re: Xen 4.1 + Linux compiled with PVH == BOOM Date: Tue, 7 Jan 2014 13:39:08 +0000 Message-ID: <1389101948.31766.155.camel@kazak.uk.xensource.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> <52CBC7900200007800110EF7@nat28.tlf.novell.com> <1389094274.31766.133.camel@kazak.uk.xensource.com> <52CBF81D02000078001110EF@nat28.tlf.novell.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 1W0WsR-0000kC-3m for xen-devel@lists.xenproject.org; Tue, 07 Jan 2014 13:39:27 +0000 In-Reply-To: <52CBF81D02000078001110EF@nat28.tlf.novell.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: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2014-01-07 at 11:50 +0000, Jan Beulich wrote: > >>> On 07.01.14 at 12:31, Ian Campbell wrote: > > On Tue, 2014-01-07 at 08:23 +0000, Jan Beulich wrote: > >> >> 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. > > > > But for PVH doesn't the hypervisor need to now at dom0 build time > > whether to build a PV or PVH domain? > > Which needs to be communicated via hypervisor command line option > anyway. I would expect that the plan is to eventually enable PVH by default if the kernel can cope with it. > Specifying the option without have a suitable kernel is (of > course) a user error (generally expected to result in a kernel crash). In the case where the user has specified the option sure. Note that the original issue was a PVH capable kernel under a non-PVH capable Xen, although we've strayed a bit from that topic. Ian. > > Jan > > > So it needs to know upfront if the > > kernel could do PVH or not, and then pick, but once it has picked the > > kernel had best follow that choice. > > > > So in the PVH case it's not just a simple case of the kernel deciding to > > utilize an optional feature, the optional feature has already been > > enabled. > > > > Ian > > >