[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] amd iommu: use next_level instead of recalculating it
# HG changeset patch # User Wei Wang <wei.wang2@xxxxxxx> # Date 1347364912 -7200 # Node ID ae59ecd8a52f3016ef5444446bfd77b780dafc87 # Parent 0baddae93c5cf9320dbf59695a4476cc31f1fb60 amd iommu: use next_level instead of recalculating it Signed-off-by: Wei Wang <wei.wang2@xxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 0baddae93c5c -r ae59ecd8a52f xen/drivers/passthrough/amd/pci_amd_iommu.c --- a/xen/drivers/passthrough/amd/pci_amd_iommu.c Tue Sep 11 14:00:04 2012 +0200 +++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c Tue Sep 11 14:01:52 2012 +0200 @@ -409,8 +409,10 @@ static void deallocate_next_page_table(s if ( (next_table_maddr != 0) && (next_level != 0) && iommu_is_pte_present((u32*)pde) ) { + /* We do not support skip level yet */ + ASSERT(next_level == level - 1); deallocate_next_page_table( - maddr_to_page(next_table_maddr), level - 1); + maddr_to_page(next_table_maddr), next_level); } } } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |