From: Ian Campbell Subject: Re: [V3 PATCH 2/3] PVH xen tools: libxc changes to build a PVH guest. Date: Thu, 12 Sep 2013 09:31:53 +0100 Message-ID: <1378974713.10076.14.camel@kazak.uk.xensource.com> References: <1378850158-25805-1-git-send-email-mukesh.rathor@oracle.com> <1378850158-25805-3-git-send-email-mukesh.rathor@oracle.com> <1378893825.10928.52.camel@kazak.uk.xensource.com> <20130911144114.44c18388@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VK2Ji-000167-P9 for xen-devel@lists.xenproject.org; Thu, 12 Sep 2013 08:31:58 +0000 In-Reply-To: <20130911144114.44c18388@mantra.us.oracle.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: Mukesh Rathor Cc: xen-devel@lists.xenproject.org, Ian.Jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2013-09-11 at 14:41 -0700, Mukesh Rathor wrote: > On Wed, 11 Sep 2013 11:03:45 +0100 > Ian Campbell wrote: > > > On Tue, 2013-09-10 at 14:55 -0700, Mukesh Rathor wrote: > > > Signed-off-by: Mukesh Rathor > > > ----- > > > > This needs to be exactly the "---" I quoted when I asked for it in > > order to be affective (it causes git am to strip these comments) > > > > > V2: Make pvh_features string const, and fail 32bit PVH guest > > > creation. Move PVH check to xc_dom_gnttab_init(). > > > V3: let xc_dom_gnttab_hvm_seed be called for PVH. > > > --- > > > > ^ Like this > > > > > tools/libxc/xc_dom.h | 1 + > > > tools/libxc/xc_dom_core.c | 9 ++++ > > > tools/libxc/xc_dom_x86.c | 90 > > > +++++++++++++++++++++++++++++--------------- 3 files changed, 69 > > > insertions(+), 31 deletions(-) diff --git > > > a/tools/libxc/xc_dom_core.c b/tools/libxc/xc_dom_core.c index > > > 0f367f6..faa7e0f 100644 --- a/tools/libxc/xc_dom_core.c > > > +++ b/tools/libxc/xc_dom_core.c > > > @@ -766,6 +766,15 @@ int xc_dom_parse_image(struct xc_dom_image > > > *dom) goto err; > > > } > > > > > > + if ( dom->pvh_enabled ) > > > + { > > > + const char *pvh_features = "writable_descriptor_tables|" > > > + "auto_translated_physmap|" > > > + "supervisor_mode_kernel|" > > > + "hvm_callback_vector"; > > > + elf_xen_parse_features(pvh_features, dom->f_requested, > > > NULL); > > > > Is there a check somewhere that these features actually ended up being > > available? > > Right below it will check to make sure active features are supported. Of course, sorry -- I was confused what parse features was filling in. I'll reply to v4 with my ack. Ian.