From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 2/3] x86: drop is_pv_32on64_domain() Date: Mon, 6 Jul 2015 17:01:28 +0100 Message-ID: <1436198488.25646.130.camel@citrix.com> References: <558993E902000078000886B3@mail.emea.novell.com> <5589952802000078000886DF@mail.emea.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 1ZC92u-0007bt-G0 for xen-devel@lists.xenproject.org; Mon, 06 Jul 2015 16:15:04 +0000 In-Reply-To: <5589952802000078000886DF@mail.emea.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: Keir Fraser , George Dunlap , Ian Jackson , Tim Deegan , Andrew Cooper , xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2015-06-23 at 16:19 +0100, Jan Beulich wrote: > ... as being identical to is_pv_32bit_domain() after the x86-32 > removal. > > In a few cases this includes no longer open-coding is_pv_32bit_vcpu(). > > Signed-off-by: Jan Beulich Given that the common impact is effectively x86-only due to the ifdefs (CONFIG_COMPAT is effectively x86 IMHO) I don't think you really need it but: Acked-by: Ian Campbell > --- a/xen/common/kexec.c > +++ b/xen/common/kexec.c > @@ -872,7 +872,7 @@ static int kexec_load_slot(struct kexec_ > static uint16_t kexec_load_v1_arch(void) > { > #ifdef CONFIG_X86 > - return is_pv_32on64_domain(hardware_domain) ? EM_386 : EM_X86_64; > + return is_pv_32bit_domain(hardware_domain) ? EM_386 : EM_X86_64; > #else > return EM_NONE; > #endif > --- a/xen/common/xenoprof.c > +++ b/xen/common/xenoprof.c > @@ -219,7 +219,7 @@ static int alloc_xenoprof_struct( > bufsize = sizeof(struct xenoprof_buf); > i = sizeof(struct event_log); > #ifdef CONFIG_COMPAT > - d->xenoprof->is_compat = is_pv_32on64_domain(is_passive ? hardware_domain : d); > + d->xenoprof->is_compat = is_pv_32bit_domain(is_passive ? hardware_domain : d); > if ( XENOPROF_COMPAT(d->xenoprof) ) > { > bufsize = sizeof(struct compat_oprof_buf);