|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Dump IOMMU p2m table
On 08/17/2012 04:31 PM, Santosh Jodh wrote: -----Original Message----- From: Wei Wang [mailto:wei.wang2@xxxxxxx] Sent: Friday, August 17, 2012 4:15 AM To: Santosh Jodh Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; xiantao.zhang@xxxxxxxxx; Tim (Xen.org); JBeulich@xxxxxxxx Subject: Re: [PATCH] Dump IOMMU p2m table On 08/16/2012 06:36 PM, Santosh Jodh wrote:New key handler 'o' to dump the IOMMU p2m table for each domain. Skips dumping table for domain0. Intel and AMD specific iommu_ops handler for dumping p2m table. Incorporated feedback from Jan Beulich and Wei Wang. Fixed indent printing with %*s. Removed superflous superpage and other attribute prints. Make next_level use consistent for AMD IOMMU dumps. Warn if foundinconsistent.Signed-off-by: Santosh Jodh<santosh.jodh@xxxxxxxxxx> diff -r 6d56e31fe1e1 -r 575a53faf4e1xen/drivers/passthrough/amd/pci_amd_iommu.c--- a/xen/drivers/passthrough/amd/pci_amd_iommu.c Wed Aug 1509:41:21 2012 +0100+++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c Thu Aug 1609:28:24 2012 -0700@@ -22,6 +22,7 @@ #include<xen/pci.h> #include<xen/pci_regs.h> #include<xen/paging.h> +#include<xen/softirq.h> #include<asm/hvm/iommu.h> #include<asm/amd-iommu.h> #include<asm/hvm/svm/amd-iommu-proto.h> @@ -512,6 +513,80 @@ static int amd_iommu_group_id(u16 seg, u #include<asm/io_apic.h> +static void amd_dump_p2m_table_level(struct page_info* pg, intlevel, That should be good, since we don't have skip levels. Thanks, Wei Thanks, Santosh _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |