[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] amd-iommu: disable iommu_hap_pt_share with AMD IOMMUs
commit c2ba3db31ef2d9f1e40e7b6c16cf3be3d671d555 Author: Roger Pau Monné <roger.pau@xxxxxxxxxx> AuthorDate: Mon Aug 11 14:57:09 2014 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Aug 11 14:57:09 2014 +0200 amd-iommu: disable iommu_hap_pt_share with AMD IOMMUs According to the comment in p2m.h, AMD IOMMUs don't work correctly with page types different than p2m_ram_rw when the p2m is shared between HAP and IOMMU, so disable this sharing when using AMD IOMMUs. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx> --- xen/drivers/passthrough/amd/iommu_init.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/xen/drivers/passthrough/amd/iommu_init.c b/xen/drivers/passthrough/amd/iommu_init.c index b2f74ef..56bda00 100644 --- a/xen/drivers/passthrough/amd/iommu_init.c +++ b/xen/drivers/passthrough/amd/iommu_init.c @@ -1255,6 +1255,14 @@ int __init amd_iommu_init(void) if ( iterate_ivrs_mappings(amd_iommu_setup_device_table) != 0 ) goto error_out; + /* + * Disable sharing HAP page tables with AMD IOMMU, + * since it only supports p2m_ram_rw, and this would + * prevent doing IO to/from mapped grant frames. + */ + iommu_hap_pt_share = 0; + printk(XENLOG_DEBUG "AMD-Vi: Disabled HAP memory map sharing with IOMMU\n"); + /* per iommu initialization */ for_each_amd_iommu ( iommu ) if ( amd_iommu_init_one(iommu) != 0 ) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |