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: [PATCH v4 1/3] xen/x86: introduce is_domain_direct_mapped(d) as ((void)(d), 0) on x86
Date: Mon, 28 Jul 2014 11:48:58 +0100 [thread overview]
Message-ID: <53D646BA020000780002689F@mail.emea.novell.com> (raw)
In-Reply-To: <1406542610-18724-1-git-send-email-stefano.stabellini@eu.citrix.com>
>>> On 28.07.14 at 12:16, <stefano.stabellini@eu.citrix.com> wrote:
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
> ---
>
> Changes in v4:
> - remove define is_domain_direct_mapped in common/memory.c;
> - define is_domain_direct_mapped as ((void)(d), 0)
> ---
> xen/common/memory.c | 4 ----
> xen/include/asm-x86/domain.h | 1 +
> 2 files changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/xen/common/memory.c b/xen/common/memory.c
> index c2dd31b..d69976f 100644
> --- a/xen/common/memory.c
> +++ b/xen/common/memory.c
> @@ -29,10 +29,6 @@
> #include <xsm/xsm.h>
> #include <xen/trace.h>
>
> -#ifndef is_domain_direct_mapped
> -# define is_domain_direct_mapped(d) ((void)(d), 0)
> -#endif
> -
> struct memop_args {
> /* INPUT */
> struct domain *domain; /* Domain to be affected. */
> diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h
> index abf55fb..59a28ba 100644
> --- a/xen/include/asm-x86/domain.h
> +++ b/xen/include/asm-x86/domain.h
> @@ -19,6 +19,7 @@
> #define is_hvm_pv_evtchn_domain(d) (has_hvm_container_domain(d) && \
> d->arch.hvm_domain.irq.callback_via_type == HVMIRQ_callback_vector)
> #define is_hvm_pv_evtchn_vcpu(v) (is_hvm_pv_evtchn_domain(v->domain))
> +#define is_domain_direct_mapped(d) ((void)(d), 0)
>
> #define VCPU_TRAP_NMI 1
> #define VCPU_TRAP_MCE 2
> --
> 1.7.10.4
next prev parent reply other threads:[~2014-07-28 10:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 10:14 [PATCH v4 0/3] map grant refs at pfn = mfn Stefano Stabellini
2014-07-28 10:16 ` [PATCH v4 1/3] xen/x86: introduce is_domain_direct_mapped(d) as ((void)(d), 0) on x86 Stefano Stabellini
2014-07-28 10:48 ` Jan Beulich [this message]
2014-07-28 10:16 ` [PATCH v4 2/3] xen: introduce arch_grant_(un)map_page_identity Stefano Stabellini
2014-07-28 10:52 ` Jan Beulich
2014-07-28 10:53 ` Stefano Stabellini
2014-07-28 10:16 ` [PATCH v4 3/3] xen/arm: introduce XENFEAT_grant_map_identity Stefano Stabellini
2014-07-28 10:55 ` Jan Beulich
2014-07-28 12:05 ` Julien Grall
2014-07-28 15:21 ` Stefano Stabellini
2014-07-28 15:22 ` Stefano Stabellini
2014-07-28 15:24 ` Julien Grall
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=53D646BA020000780002689F@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).