# HG changeset patch # User Tim Deegan # Date 1314093267 -3600 # Node ID 1b77cf8305df0fa27acd0701f6dfbf5acbffb238 # Parent 93cc277779d3cdb6ce3fad844296a0f2638d3012 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 xen-unstable changeset: 23789:1b77cf8305df xen-unstable date: Tue Aug 23 10:54:27 2011 +0100 diff -r 93cc277779d3 xen/include/xen/iommu.h --- a/xen/include/xen/iommu.h Tue Aug 23 10:43:25 2011 +0100 +++ b/xen/include/xen/iommu.h Thu Aug 25 10:34:20 2011 +0100 @@ -35,7 +35,7 @@ extern bool_t amd_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;