]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
xen: make need_iommu == 0 if !HAS_PASSTHROUGH
authorIan Campbell <ian.campbell@citrix.com>
Wed, 15 Feb 2012 12:24:19 +0000 (12:24 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Feb 2012 12:24:19 +0000 (12:24 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: keir@xen.org
Committed-by: Ian Campbell <Ian.Campbell@citrix.com>
xen/Rules.mk
xen/arch/arm/dummy.S
xen/include/xen/sched.h

index ee54179757b49a2dc9b2b23edf733bcebd405234..6123835ec14bb05073200aab9fb89d1a38876639 100644 (file)
@@ -51,6 +51,7 @@ CFLAGS-$(perfc)         += -DPERF_COUNTERS
 CFLAGS-$(perfc_arrays)  += -DPERF_ARRAYS
 CFLAGS-$(lock_profile)  += -DLOCK_PROFILE
 CFLAGS-$(HAS_ACPI)      += -DHAS_ACPI
+CFLAGS-$(HAS_PASSTHROUGH) += -DHAS_PASSTHROUGH
 CFLAGS-$(frame_pointer) += -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER
 
 ifneq ($(max_phys_cpus),)
index 5010619938e65cf472d0e8395315259227cb1052..e8586135652a5b37a92df3f7f3f3beeffc5ea562 100644 (file)
@@ -27,8 +27,6 @@ DUMMY(gmfn_to_mfn);
 DUMMY(gnttab_clear_flag);
 DUMMY(gnttab_mark_dirty);
 DUMMY(hypercall_create_continuation);
-DUMMY(iommu_map_page);
-DUMMY(iommu_unmap_page);
 DUMMY(is_iomem_page);
 DUMMY(max_page);
 DUMMY(node_online_map);
index 567cd363a73637f7aa81a066fbf785c14516571e..3699929096e2fee116385a7126e8cb5a3effbe76 100644 (file)
@@ -266,8 +266,10 @@ struct domain
 
     /* Is this an HVM guest? */
     bool_t           is_hvm;
+#ifdef HAS_PASSTHROUGH
     /* Does this guest need iommu mappings? */
     bool_t           need_iommu;
+#endif
     /* Is this guest fully privileged (aka dom0)? */
     bool_t           is_privileged;
     /* Which guest this guest has privileges on */
@@ -687,7 +689,11 @@ void watchdog_domain_destroy(struct domain *d);
 #define is_hvm_vcpu(v)   (is_hvm_domain(v->domain))
 #define is_pinned_vcpu(v) ((v)->domain->is_pinned || \
                            cpumask_weight((v)->cpu_affinity) == 1)
+#ifdef HAS_PASSTHROUGH
 #define need_iommu(d)    ((d)->need_iommu)
+#else
+#define need_iommu(d)    (0)
+#endif
 
 void set_vcpu_migration_delay(unsigned int delay);
 unsigned int get_vcpu_migration_delay(void);