aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/iommu.h
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2011-08-23 10:54:27 +0100
committerTim Deegan <tim@xen.org>2011-08-23 10:54:27 +0100
commit91326b5491174ff4cbd36a98367b1bc7c378bd29 (patch)
tree91649be908cdc81544a78c9ddc4d02e7cab13172 /xen/include/xen/iommu.h
parentce686e3169f5e3aaee650d2120962851d351c9e7 (diff)
downloadxen-91326b5491174ff4cbd36a98367b1bc7c378bd29.tar.gz
xen-91326b5491174ff4cbd36a98367b1bc7c378bd29.tar.bz2
xen-91326b5491174ff4cbd36a98367b1bc7c378bd29.zip
Passthrough: fix iommu_use_hap_pt() to use hap_enabled()
In line with 22924:86000076dcee, paging_mode_hap(d) shouldn't be used in HAP internals that are called during HAP setup. Signed-off-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/xen/iommu.h')
-rw-r--r--xen/include/xen/iommu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h
index ade8690417..459c6ceb4d 100644
--- a/xen/include/xen/iommu.h
+++ b/xen/include/xen/iommu.h
@@ -35,7 +35,7 @@ extern bool_t iommu_debug;
extern bool_t amd_iommu_perdev_intremap;
/* Does this domain have a P2M table we can use as its IOMMU pagetable? */
-#define iommu_use_hap_pt(d) (paging_mode_hap(d) && iommu_hap_pt_share)
+#define iommu_use_hap_pt(d) (hap_enabled(d) && iommu_hap_pt_share)
extern struct rangeset *mmio_ro_ranges;