diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-02-15 12:24:19 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-02-15 12:24:19 +0000 |
commit | 7214bd45fac72a1d74eac51109bf1d27f65c326b (patch) | |
tree | 052bf96221363597b068beb4d34de1cec606e5bd /xen/include/xen/sched.h | |
parent | 7cfc339cbc2f36b603c32478a769456f3660e061 (diff) | |
download | xen-7214bd45fac72a1d74eac51109bf1d27f65c326b.tar.gz xen-7214bd45fac72a1d74eac51109bf1d27f65c326b.tar.bz2 xen-7214bd45fac72a1d74eac51109bf1d27f65c326b.zip |
xen: make need_iommu == 0 if !HAS_PASSTHROUGH
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: keir@xen.org
Committed-by: Ian Campbell <Ian.Campbell@citrix.com>
Diffstat (limited to 'xen/include/xen/sched.h')
-rw-r--r-- | xen/include/xen/sched.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 567cd363a7..3699929096 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -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); |