[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 10 of 16] amd iommu: Enable FC bit in iommu host level PTE
# HG changeset patch # User Wei Wang <wei.wang2@xxxxxxx> # Date 1323875775 -3600 # Node ID 001681ff1a0c09c4d04fd8bd45e8d26805686246 # Parent f33af4d61321d074a4c624d909204fce5945f61b amd iommu: Enable FC bit in iommu host level PTE Signed-off-by: Wei Wang <wei.wang2@xxxxxxx> diff -r f33af4d61321 -r 001681ff1a0c xen/drivers/passthrough/amd/iommu_map.c --- a/xen/drivers/passthrough/amd/iommu_map.c Wed Dec 14 16:16:14 2011 +0100 +++ b/xen/drivers/passthrough/amd/iommu_map.c Wed Dec 14 16:16:15 2011 +0100 @@ -83,6 +83,11 @@ static bool_t set_iommu_pde_present(u32 set_field_in_reg_u32(ir, entry, IOMMU_PDE_IO_READ_PERMISSION_MASK, IOMMU_PDE_IO_READ_PERMISSION_SHIFT, &entry); + + /* IOMMUv2 needs FC bit enabled */ + if ( next_level == IOMMU_PAGING_MODE_LEVEL_0 ) + set_field_in_reg_u32(IOMMU_CONTROL_ENABLED, entry, + IOMMU_PTE_FC_MASK, IOMMU_PTE_FC_SHIFT, &entry); pde[1] = entry; /* mark next level as 'present' */ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |