[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v4 11/14] iommu: stop calling IOMMU page tables 'p2m tables'
On 04.08.2020 15:42, Paul Durrant wrote: > @@ -553,14 +549,7 @@ static void iommu_dump_p2m_table(unsigned char key) > if ( is_hardware_domain(d) || !is_iommu_enabled(d) ) > continue; > > - if ( iommu_use_hap_pt(d) ) > - { > - printk("\ndomain%d IOMMU p2m table shared with MMU: \n", > d->domain_id); > - continue; > - } > - > - printk("\ndomain%d IOMMU p2m table: \n", d->domain_id); This (importantish) information was lost. > @@ -2624,17 +2624,19 @@ static void vtd_dump_p2m_table_level(paddr_t > pt_maddr, int level, paddr_t gpa, > unmap_vtd_domain_page(pt_vaddr); > } > > -static void vtd_dump_p2m_table(struct domain *d) > +static void vtd_dump_page_tables(struct domain *d) > { > - const struct domain_iommu *hd; > + const struct domain_iommu *hd = dom_iommu(d); > > - if ( list_empty(&acpi_drhd_units) ) > + if ( iommu_use_hap_pt(d) ) > + { > + printk("VT-D sharing EPT table\n"); > return; > + } > > - hd = dom_iommu(d); > - printk("p2m table has %d levels\n", agaw_to_level(hd->arch.vtd.agaw)); > - vtd_dump_p2m_table_level(hd->arch.vtd.pgd_maddr, > - agaw_to_level(hd->arch.vtd.agaw), 0, 0); > + printk("VT-D table has %d levels\n", agaw_to_level(hd->arch.vtd.agaw)); I think it's commonly VT-d (a mixture of case). Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |