From: Paul Durrant <xadimgnik@gmail.com>
To: "'Jan Beulich'" <jbeulich@suse.com>
Cc: <xen-devel@lists.xenproject.org>,
"'Paul Durrant'" <pdurrant@amazon.com>,
"'Andrew Cooper'" <andrew.cooper3@citrix.com>,
"'Kevin Tian'" <kevin.tian@intel.com>
Subject: RE: [PATCH v5 8/8] iommu: stop calling IOMMU page tables 'p2m tables'
Date: Thu, 10 Sep 2020 15:40:26 +0100 [thread overview]
Message-ID: <003501d68780$5305eff0$f911cfd0$@xen.org> (raw)
In-Reply-To: <611962bf-4cd9-7da8-ea47-e95e5181515b@suse.com>
> -----Original Message-----
> From: Jan Beulich <jbeulich@suse.com>
> Sent: 10 September 2020 15:27
> To: Paul Durrant <paul@xen.org>
> Cc: xen-devel@lists.xenproject.org; Paul Durrant <pdurrant@amazon.com>; Andrew Cooper
> <andrew.cooper3@citrix.com>; Kevin Tian <kevin.tian@intel.com>
> Subject: Re: [PATCH v5 8/8] iommu: stop calling IOMMU page tables 'p2m tables'
>
> On 07.09.2020 09:40, Paul Durrant wrote:
> > --- a/xen/drivers/passthrough/amd/pci_amd_iommu.c
> > +++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c
> > @@ -491,8 +491,8 @@ static int amd_iommu_group_id(u16 seg, u8 bus, u8 devfn)
> >
> > #include <asm/io_apic.h>
> >
> > -static void amd_dump_p2m_table_level(struct page_info* pg, int level,
> > - paddr_t gpa, int indent)
> > +static void amd_dump_page_table_level(struct page_info* pg, int level,
>
> Could you flip * and space here as you touch the line anyway?
>
Sure.
> > @@ -504,7 +504,7 @@ static void amd_dump_p2m_table_level(struct page_info* pg, int level,
> > table_vaddr = __map_domain_page(pg);
> > if ( table_vaddr == NULL )
> > {
> > - printk("Failed to map IOMMU domain page %"PRIpaddr"\n",
> > + printk("%s: failed to map domain page %"PRIpaddr"\n", __func__,
> > page_to_maddr(pg));
>
> Why the addition of __func__? Personally I'd rather see most of its
> uses go away ... (There are two more further down.) Preferably with
> this dropped again
Ok.
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
>
Thanks.
Paul
> Jan
prev parent reply other threads:[~2020-09-10 14:40 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 7:40 [PATCH v5 0/8] IOMMU cleanup Paul Durrant
2020-09-07 7:40 ` [PATCH v5 1/8] x86/iommu: convert VT-d code to use new page table allocator Paul Durrant
2020-09-07 7:40 ` [PATCH v5 2/8] iommu: remove unused iommu_ops method and tasklet Paul Durrant
2020-09-07 7:40 ` [PATCH v5 3/8] iommu: flush I/O TLB if iommu_map() or iommu_unmap() fail Paul Durrant
2020-09-09 13:16 ` Jan Beulich
2020-09-07 7:40 ` [PATCH v5 4/8] iommu: make map and unmap take a page count, similar to flush Paul Durrant
2020-09-10 12:47 ` Jan Beulich
2020-09-10 13:51 ` Paul Durrant
2020-09-07 7:40 ` [PATCH v5 5/8] remove remaining uses of iommu_legacy_map/unmap Paul Durrant
2020-09-10 13:18 ` Jan Beulich
2020-09-07 7:40 ` [PATCH v5 6/8] common/grant_table: batch flush I/O TLB Paul Durrant
2020-09-10 13:48 ` Jan Beulich
2020-09-10 14:17 ` Paul Durrant
2020-09-10 14:39 ` Jan Beulich
2020-09-10 14:41 ` Paul Durrant
2020-09-07 7:40 ` [PATCH v5 7/8] iommu: remove the share_p2m operation Paul Durrant
2020-09-10 14:20 ` Jan Beulich
2020-09-10 14:25 ` Paul Durrant
2020-09-07 7:40 ` [PATCH v5 8/8] iommu: stop calling IOMMU page tables 'p2m tables' Paul Durrant
2020-09-10 14:27 ` Jan Beulich
2020-09-10 14:40 ` Paul Durrant [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003501d68780$5305eff0$f911cfd0$@xen.org' \
--to=xadimgnik@gmail.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=kevin.tian@intel.com \
--cc=paul@xen.org \
--cc=pdurrant@amazon.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.