From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: Re: [RFC PATCH 1/8]: PVH: Basic and preparatory changes Date: Tue, 11 Sep 2012 14:57:51 -0700 Message-ID: <20120911145751.599b8292@mantra.us.oracle.com> References: <20120815175724.3405043a@mantra.us.oracle.com> <1347285352.5305.86.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1347285352.5305.86.camel@zakaz.uk.xensource.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: Ian Campbell Cc: "Xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On Mon, 10 Sep 2012 14:55:52 +0100 Ian Campbell wrote: > On Thu, 2012-08-16 at 01:57 +0100, Mukesh Rathor wrote: > > diff --git a/include/xen/xen.h b/include/xen/xen.h > > index a164024..e823639 100644 > > --- a/include/xen/xen.h > > +++ b/include/xen/xen.h > > @@ -18,6 +18,10 @@ extern enum xen_domain_type xen_domain_type; > > xen_domain_type == XEN_PV_DOMAIN) > > #define xen_hvm_domain() (xen_domain() > > && \ xen_domain_type == XEN_HVM_DOMAIN) > > +/* xen_pv_domain check is necessary as start_info ptr is null in > > HVM. Also, > > + * note, xen PVH domain shares lot of HVM code */ > > +#define xen_pvh_domain() (xen_pv_domain() > > && \ > > + (xen_start_info->flags & > > SIF_IS_PVINHVM)) > > Can I suggest that for the time being this be gated on a new > CONFIG_XEN_PVH option (I think it's new, I can't find one right now) > which "depends EXPERIMENTAL". > > We don't want to get into the situation where whatever goes into Linux > now makes it into a distro (and is enabled) and is subsequently broken > on top of whatever the final hypervisor side stuff ends up looking > like. We've done the same for the ARM support for example. > > Ian. Well, I'm pretty much removing all xen_pv_domain() checks and moving to other checks, like you guys wanted. This code is pretty intermingled and can't be ifdef'd easily. Mukesh