xen/x86: introduce is_domain_direct_mapped(d) as ((void)(d), 0) on x86
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 1 Aug 2014 14:45:23 +0000 (15:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 9 Sep 2014 10:47:08 +0000 (11:47 +0100)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/memory.c
xen/include/asm-x86/domain.h

index 031672a81bcb791681c890e30fd79522e9df3c30..2e3225df74374eb35538a0f42b1aeff69670a888 100644 (file)
 #include <xsm/xsm.h>
 #include <xen/trace.h>
 
-#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. */
index 83329ed3bc346ecadfec5980e9a58ef380a7624a..8fc5a45bc05ce81a717f18eae715d999c727f3fe 100644 (file)
@@ -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