search for: root_maddr

Displaying 2 results from an estimated 2 matches for "root_maddr".

Did you mean: boot_addr
2008 Nov 18
6
[PATCH] fix memory allocation from NUMA node for VT-d.
...break; - maddr = alloc_pgtable_maddr(); + maddr = alloc_pgtable_maddr(domain); if ( !maddr ) break; dma_set_pte_addr(*pte, maddr); @@ -605,7 +605,7 @@ spin_lock_irqsave(&iommu->register_lock, flags); if ( iommu->root_maddr == 0 ) - iommu->root_maddr = alloc_pgtable_maddr(); + iommu->root_maddr = alloc_pgtable_maddr(NULL); if ( iommu->root_maddr == 0 ) { spin_unlock_irqrestore(&iommu->register_lock, flags); diff -r 5fd51e1e9c79 xen/drivers/passthrough/vtd/qinval.c --- a...
2010 Mar 11
0
[PATCH] VT-d: various initialization fixes
...spin_lock_init(&iommu->lock); spin_lock_init(&iommu->register_lock); - drhd->iommu = iommu; return 0; } @@ -1122,6 +1133,8 @@ static void iommu_free(struct acpi_drhd_ if ( iommu == NULL ) return; + drhd->iommu = NULL; + if ( iommu->root_maddr != 0 ) { free_pgtable_maddr(iommu->root_maddr); @@ -1135,10 +1148,9 @@ static void iommu_free(struct acpi_drhd_ xfree(iommu->domid_map); free_intel_iommu(iommu->intel); - destroy_irq(iommu->irq); + if ( iommu->irq >= 0 ) + destroy_irq(iommu-&...