From: Jan Beulich <jbeulich@suse.com>
To: George Dunlap <george.dunlap@citrix.com>
Cc: xen-devel@lists.xenproject.org,
Andrew Cooper <andrew.cooper3@citrix.com>
Subject: Re: [Xen-devel] [PATCH 2/3] x86/mm: Use mfn_t in type get / put call tree
Date: Mon, 16 Dec 2019 12:10:27 +0100 [thread overview]
Message-ID: <78490080-2639-e4d7-eeb0-a004b76dc9c0@suse.com> (raw)
In-Reply-To: <20191213173742.1960441-3-george.dunlap@citrix.com>
On 13.12.2019 18:37, George Dunlap wrote:
> Replace `unsigned long` with `mfn_t` as appropriate throughout
> alloc/free_lN_table, get/put_page_from_lNe, and
> get_lN_linear_pagetable. This obviates the need for a load of
> `mfn_x()` and `_mfn()` casts.
>
> Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Ah, here we go. Sorry for not spotting before giving the remark
on patch 1.
> --- a/xen/arch/x86/mm.c
> +++ b/xen/arch/x86/mm.c
> @@ -681,10 +681,10 @@ boolean_param("pv-linear-pt", opt_pv_linear_pt);
> #define define_get_linear_pagetable(level) \
> static int \
> get_##level##_linear_pagetable( \
> - level##_pgentry_t pde, unsigned long pde_pfn, struct domain *d) \
> + level##_pgentry_t pde, mfn_t pde_pfn, struct domain *d) \
Perhaps better pde_mfn then here, ...
> { \
> unsigned long x, y; \
> - unsigned long pfn; \
> + mfn_t pfn; \
... pfn here, and likewise elsewhere? If you agree,
Acked-by: Jan Beulich <jbeulich@suse.com>
with this renaming.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-12-16 11:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-13 17:37 [Xen-devel] [PATCH 0/3] Post-299 cleanups George Dunlap
2019-12-13 17:37 ` [Xen-devel] [PATCH 1/3] x86/mm: Use a more descriptive name for pagetable mfns George Dunlap
2019-12-16 11:07 ` Jan Beulich
2019-12-16 11:10 ` George Dunlap
2019-12-13 17:37 ` [Xen-devel] [PATCH 2/3] x86/mm: Use mfn_t in type get / put call tree George Dunlap
2019-12-16 11:10 ` Jan Beulich [this message]
2019-12-16 11:13 ` George Dunlap
2019-12-16 11:25 ` Jan Beulich
2019-12-13 17:37 ` [Xen-devel] [PATCH 3/3] x86/mm: More discriptive names for page de/validation functions George Dunlap
2019-12-16 11:15 ` Jan Beulich
2019-12-16 13:24 ` [Xen-devel] [PATCH 0/3] Post-299 cleanups Andrew Cooper
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=78490080-2639-e4d7-eeb0-a004b76dc9c0@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@citrix.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.