From: "Jan Beulich" <JBeulich@suse.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: julien.grall@citrix.com,
xen-devel <xen-devel@lists.xenproject.org>,
Ian.Campbell@citrix.com
Subject: Re: [RFC PATCH 2/2] xen/arm: introduce XENFEAT_grant_map_11
Date: Wed, 23 Jul 2014 12:17:48 +0100 [thread overview]
Message-ID: <53CFB5FC02000078000250C0@mail.emea.novell.com> (raw)
In-Reply-To: <1404834794-16055-2-git-send-email-stefano.stabellini@eu.citrix.com>
>>> On 08.07.14 at 17:53, <stefano.stabellini@eu.citrix.com> wrote:
> --- a/xen/common/kernel.c
> +++ b/xen/common/kernel.c
> @@ -325,6 +325,10 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
> break;
> }
> #endif
> +#ifdef CONFIG_ARM
> + if ( is_domain_direct_mapped(d) )
The #ifdef and if() seem kind of redundant - can't x86 simply get a
stub always returning false?
> --- a/xen/include/asm-arm/grant_table.h
> +++ b/xen/include/asm-arm/grant_table.h
> @@ -33,8 +33,7 @@ static inline int replace_grant_supported(void)
> ( ((i >= nr_grant_frames(d->grant_table)) && \
> (i < max_nr_grant_frames)) ? 0 : (d->arch.grant_table_gpfn[i]))
>
> -#define gnttab_need_iommu_mapping(d) \
> - (is_domain_direct_mapped(d) && need_iommu(d))
> +#define gnttab_need_iommu_mapping(d) (is_domain_direct_mapped(d))
How is this change related to the subject of the patch?
> --- a/xen/include/public/features.h
> +++ b/xen/include/public/features.h
> @@ -94,6 +94,9 @@
> /* operation as Dom0 is supported */
> #define XENFEAT_dom0 11
>
> +/* Xen also maps grant references at pfn = mfn */
> +#define XENFEAT_grant_map_11 12
As already said by others, this needs a better name.
Jan
next prev parent reply other threads:[~2014-07-23 11:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 15:52 [RFC PATCH 0/2] map grant refs at pfn = mfn Stefano Stabellini
2014-07-08 15:53 ` [RFC PATCH 1/2] xen: introduce arch_iommu_grant_(un)map_page Stefano Stabellini
2014-07-08 16:46 ` Julien Grall
2014-07-16 15:56 ` Ian Campbell
2014-07-16 18:19 ` Julien Grall
2014-07-23 11:27 ` Jan Beulich
2014-07-08 15:53 ` [RFC PATCH 2/2] xen/arm: introduce XENFEAT_grant_map_11 Stefano Stabellini
2014-07-16 15:59 ` Ian Campbell
2014-07-22 14:36 ` Stefano Stabellini
2014-07-23 11:17 ` Jan Beulich [this message]
2014-07-23 13:31 ` Stefano Stabellini
2014-07-23 14:15 ` Jan Beulich
2014-07-23 11:21 ` [RFC PATCH 0/2] map grant refs at pfn = mfn Jan Beulich
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=53CFB5FC02000078000250C0@mail.emea.novell.com \
--to=jbeulich@suse.com \
--cc=Ian.Campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@eu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).