From: "Jan Beulich" Subject: Re: [V1 PATCH 1/5] PVH xen tools: Elf and header change. Date: Thu, 05 Sep 2013 09:29:22 +0100 Message-ID: <52285D0202000078000F0B16@nat28.tlf.novell.com> References: <1378344728-30624-1-git-send-email-mukesh.rathor@oracle.com> <1378344728-30624-2-git-send-email-mukesh.rathor@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VHUwI-0000QL-Mx for xen-devel@lists.xenproject.org; Thu, 05 Sep 2013 08:29:18 +0000 In-Reply-To: <1378344728-30624-2-git-send-email-mukesh.rathor@oracle.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: Mukesh Rathor Cc: xen-devel@lists.xenproject.org, Ian.Jackson@eu.citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 05.09.13 at 03:32, Mukesh Rathor wrote: > Add XENFEAT_hvm_callback_vector to elf_xen_feature_names > so we can ensure the kernel supports all features requird for > PVH mode. Note, hvm callback is required for PVH. > Also, introduce _XEN_DOMINF_pvh_guest. I suppose you lumped these together just because they're both outside the tools tree? The domctl change clearly belongs in the hypervisor series. Whether the libelf change belongs in the tools or hypervisor series you know. In any event, no matter how small the constituent parts, these changes continue your model of randomly mixing changes together rather than structuring things in a logical way. Once we get to see George's rework of your hypervisor series, it'll become clear whether allowing the change here to be left as is would be just one more exception we make for your stuff to finally make it in, or whether we can rather get something committed that's well structured. Jan > Signed-off-by: Mukesh Rathor > --- > xen/common/libelf/libelf-dominfo.c | 1 + > xen/include/public/domctl.h | 3 +++ > 2 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/xen/common/libelf/libelf-dominfo.c > b/xen/common/libelf/libelf-dominfo.c > index e79b339..25dd892 100644 > --- a/xen/common/libelf/libelf-dominfo.c > +++ b/xen/common/libelf/libelf-dominfo.c > @@ -27,6 +27,7 @@ static const char *const elf_xen_feature_names[] = { > [XENFEAT_auto_translated_physmap] = "auto_translated_physmap", > [XENFEAT_supervisor_mode_kernel] = "supervisor_mode_kernel", > [XENFEAT_pae_pgdir_above_4gb] = "pae_pgdir_above_4gb", > + [XENFEAT_hvm_callback_vector] = "hvm_callback_vector", > [XENFEAT_dom0] = "dom0" > }; > static const unsigned elf_xen_features = > diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h > index 4c5b2bb..6b1aa11 100644 > --- a/xen/include/public/domctl.h > +++ b/xen/include/public/domctl.h > @@ -89,6 +89,9 @@ struct xen_domctl_getdomaininfo { > /* Being debugged. */ > #define _XEN_DOMINF_debugged 6 > #define XEN_DOMINF_debugged (1U<<_XEN_DOMINF_debugged) > +/* domain is PVH */ > +#define _XEN_DOMINF_pvh_guest 7 > +#define XEN_DOMINF_pvh_guest (1U<<_XEN_DOMINF_pvh_guest) > /* XEN_DOMINF_shutdown guest-supplied code. */ > #define XEN_DOMINF_shutdownmask 255 > #define XEN_DOMINF_shutdownshift 16 > -- > 1.7.2.3