All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Catterall <Ben.Catterall@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com,
	tim@xen.org, stefano.stabellini@citrix.com,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2 3/3] Convert map_domain_page() to use the new mfn_t type
Date: Thu, 9 Jul 2015 11:29:39 +0100	[thread overview]
Message-ID: <559E4D13.6050503@citrix.com> (raw)
In-Reply-To: <559BC1CB020000780008D450@mail.emea.novell.com>



On 07/07/15 11:10, Jan Beulich wrote:
>>>> On 02.07.15 at 14:04, <Ben.Catterall@citrix.com> wrote:
>> Reworked the internals and declaration, applying (un)boxing
>> where needed. Converted calls to map_domain_page() to
>> provide mfn_t types, boxing where needed.
>>
>> Signed-off-by: Ben Catterall <Ben.Catterall@citrix.com>
>> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
>>
>> ---
>> Changed since v1:
>>     * Created paddr_to_mfn() and mfn_to_paddr() for both x86 and ARM
>>     * Converted code to use the new paddr_to_mfn() rather than e.g.
>>       paddr>>PAGE_SHIFT
> This was a bogus change - why can't you use paddr_to_pfn() and
> pfn_to_paddr()? And if you needed new macros, they should be
> named consistently, i.e. maddr_to_mfn() and mfn_to_maddr().
> And perhaps they should then produce/take mfn_t?
>
In [PATCH 3/3] Andrew said that I should use _mfn(paddr_to_mfn(ma)) rather than ma >> PAGE_SIZE
so I made the change based on that. Can you clarify if I should proceed and use paddr_to_pfn() instead.

Re. the rename: can you clarify what the difference between maddr (machine addr?) and
paddr (physical addr?) are please?

Thanks!

>> @@ -194,7 +194,7 @@ static void update_pagetable_mac(vmac_ctx_t *ctx)
>>           {
>>               if ( page->count_info & PGC_page_table )
>>               {
>> -                void *pg = map_domain_page(mfn);
>> +                void *pg = map_domain_page(_mfn(mfn));
>>                   vmac_update(pg, PAGE_SIZE, ctx);
> Please take the opportunity and add the missing blank line in cases
> like this.
>
> Jan
>

  reply	other threads:[~2015-07-09 10:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-02 12:04 [PATCH v2 1/3] xen/domain_page: Convert map_domain_page_global() to using mfn_t Ben Catterall
2015-07-02 12:04 ` [PATCH v2 2/3] xen/domain_page: Convert copy/clear_domain_page() " Ben Catterall
2015-07-07 10:03   ` Jan Beulich
2015-07-02 12:04 ` [PATCH v2 3/3] Convert map_domain_page() to use the new mfn_t type Ben Catterall
2015-07-07 10:10   ` Jan Beulich
2015-07-09 10:29     ` Ben Catterall [this message]
2015-07-09 10:38       ` Jan Beulich
2015-07-07 10:01 ` [PATCH v2 1/3] xen/domain_page: Convert map_domain_page_global() to using mfn_t Jan Beulich
2015-07-07 10:07   ` Andrew Cooper
2015-07-07 10:50     ` Jan Beulich
2015-07-13 16:56       ` Ian Jackson
2015-07-14  9:56         ` Jan Beulich
2015-07-14 10:54           ` Ian Jackson
2015-07-14 11:38             ` Jan Beulich
2015-07-07 15:12 ` Ian Campbell

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=559E4D13.6050503@citrix.com \
    --to=ben.catterall@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --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.