common: guard iommu symbols with CONFIG_HAS_PASSTHROUGH
authorConnor Davis <connojdavis@gmail.com>
Fri, 28 May 2021 07:42:25 +0000 (09:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 May 2021 07:42:25 +0000 (09:42 +0200)
commit683d899e4bffca35c5b192ea0662362b0270a695
tree506f26eb429d906f332fb190b2a561e7009ad662
parent632cbaf1243e4b867caf321cfef81517f5cc27ad
common: guard iommu symbols with CONFIG_HAS_PASSTHROUGH

The variables iommu_enabled and iommu_dont_flush_iotlb are defined in
drivers/passthrough/iommu.c and are referenced in common code, which
causes the link to fail when !CONFIG_HAS_PASSTHROUGH.

Guard references to these variables in common code so that xen
builds when !CONFIG_HAS_PASSTHROUGH.

Signed-off-by: Connor Davis <connojdavis@gmail.com>
[jb: further massage xen/iommu.h adjustment]
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/memory.c
xen/include/xen/iommu.h