From: "Jan Beulich" Subject: Re: [PATCH v4 1/3] xen/x86: introduce is_domain_direct_mapped(d) as ((void)(d), 0) on x86 Date: Mon, 28 Jul 2014 11:48:58 +0100 Message-ID: <53D646BA020000780002689F@mail.emea.novell.com> References: <1406542610-18724-1-git-send-email-stefano.stabellini@eu.citrix.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 1XBiUJ-0003DZ-08 for xen-devel@lists.xenproject.org; Mon, 28 Jul 2014 10:49:03 +0000 In-Reply-To: <1406542610-18724-1-git-send-email-stefano.stabellini@eu.citrix.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: Stefano Stabellini Cc: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 28.07.14 at 12:16, wrote: > Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich > --- > > Changes in v4: > - remove define is_domain_direct_mapped in common/memory.c; > - define is_domain_direct_mapped as ((void)(d), 0) > --- > xen/common/memory.c | 4 ---- > xen/include/asm-x86/domain.h | 1 + > 2 files changed, 1 insertion(+), 4 deletions(-) > > diff --git a/xen/common/memory.c b/xen/common/memory.c > index c2dd31b..d69976f 100644 > --- a/xen/common/memory.c > +++ b/xen/common/memory.c > @@ -29,10 +29,6 @@ > #include > #include > > -#ifndef is_domain_direct_mapped > -# define is_domain_direct_mapped(d) ((void)(d), 0) > -#endif > - > struct memop_args { > /* INPUT */ > struct domain *domain; /* Domain to be affected. */ > diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h > index abf55fb..59a28ba 100644 > --- a/xen/include/asm-x86/domain.h > +++ b/xen/include/asm-x86/domain.h > @@ -19,6 +19,7 @@ > #define is_hvm_pv_evtchn_domain(d) (has_hvm_container_domain(d) && \ > d->arch.hvm_domain.irq.callback_via_type == HVMIRQ_callback_vector) > #define is_hvm_pv_evtchn_vcpu(v) (is_hvm_pv_evtchn_domain(v->domain)) > +#define is_domain_direct_mapped(d) ((void)(d), 0) > > #define VCPU_TRAP_NMI 1 > #define VCPU_TRAP_MCE 2 > -- > 1.7.10.4