xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Shannon Zhao <zhaoshenglong@huawei.com>
Cc: sstabellini@kernel.org, wei.liu2@citrix.com,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	ian.jackson@eu.citrix.com, peter.huangpeng@huawei.com,
	xen-devel@lists.xen.org, julien.grall@arm.com,
	shannon.zhao@linaro.org, Jan Beulich <JBeulich@suse.com>,
	boris.ostrovsky@oracle.com
Subject: Re: [PATCH v4 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI
Date: Wed, 24 Aug 2016 14:06:06 +0100	[thread overview]
Message-ID: <20160824130606.GN20641@citrix.com> (raw)
In-Reply-To: <1471343113-10652-15-git-send-email-zhaoshenglong@huawei.com>

CC Jan and Andrew to review change in hvm/params.h

On Tue, Aug 16, 2016 at 06:25:11PM +0800, Shannon Zhao wrote:
> From: Shannon Zhao <shannon.zhao@linaro.org>
> 
> Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update
> them in evtchn_fixup().
> 
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
> ---
>  xen/arch/arm/domain_build.c     | 8 +++++---
>  xen/include/public/hvm/params.h | 4 ++++
>  2 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 60db9e4..94cd3ce 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -2019,9 +2019,11 @@ static void evtchn_fixup(struct domain *d, struct kernel_info *kinfo)
>             d->arch.evtchn_irq);
>  
>      /* Set the value of domain param HVM_PARAM_CALLBACK_IRQ */
> -    val = (u64)HVM_PARAM_CALLBACK_TYPE_PPI << 56;
> -    val |= (2 << 8); /* Active-low level-sensitive  */
> -    val |= d->arch.evtchn_irq & 0xff;
> +    val = (u64)HVM_PARAM_CALLBACK_TYPE_PPI << HVM_PARAM_CALLBACK_IRQ_TYPE_SHIFT;
> +    /* Active-low level-sensitive  */
> +    val |= (HVM_PARAM_CALLBACK_TYPE_PPI_FLAG_LOW_LEVEL <<
> +            HVM_PARAM_CALLBACK_TYPE_PPI_FLAG_SHIFT);
> +    val |= d->arch.evtchn_irq & HVM_PARAM_CALLBACK_TYPE_PPI_MASK;
>      d->arch.hvm_domain.params[HVM_PARAM_CALLBACK_IRQ] = val;
>  
>      /*
> diff --git a/xen/include/public/hvm/params.h b/xen/include/public/hvm/params.h
> index f7338a3..8a0327d 100644
> --- a/xen/include/public/hvm/params.h
> +++ b/xen/include/public/hvm/params.h
> @@ -30,6 +30,7 @@
>   */
>  
>  #define HVM_PARAM_CALLBACK_IRQ 0
> +#define HVM_PARAM_CALLBACK_IRQ_TYPE_SHIFT     56
>  /*
>   * How should CPU0 event-channel notifications be delivered?
>   *
> @@ -66,6 +67,9 @@
>   * This is only used by ARM/ARM64 and masking/eoi the interrupt associated to
>   * the notification is handled by the interrupt controller.
>   */
> +#define HVM_PARAM_CALLBACK_TYPE_PPI_FLAG_SHIFT     8
> +#define HVM_PARAM_CALLBACK_TYPE_PPI_FLAG_LOW_LEVEL 2
> +#define HVM_PARAM_CALLBACK_TYPE_PPI_MASK           0xff
>  #endif
>  
>  /*
> -- 
> 2.0.4
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-08-24 13:06 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-16 10:24 [PATCH v4 00/16] Xen ARM DomU ACPI support Shannon Zhao
2016-08-16 10:24 ` [PATCH v4 01/16] tools/libxl: Add an unified configuration option for ACPI Shannon Zhao
2016-08-18 16:16   ` Julien Grall
2016-08-24 12:50   ` Wei Liu
2016-08-25  7:54     ` Shannon Zhao
2016-08-25  9:05       ` Wei Liu
2016-08-25  9:09         ` Shannon Zhao
2016-08-16 10:24 ` [PATCH v4 02/16] libxl/arm: prepare for constructing ACPI tables Shannon Zhao
2016-08-18 16:36   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 03/16] libxl/arm: Generate static ACPI DSDT table Shannon Zhao
2016-08-24 21:52   ` Boris Ostrovsky
2016-08-29 17:46   ` Julien Grall
2016-08-31  6:37     ` Shannon Zhao
2016-08-31  9:58       ` Julien Grall
2016-08-31 18:51         ` Stefano Stabellini
2016-09-01  3:18     ` Shannon Zhao
2016-09-01 12:53       ` Boris Ostrovsky
2016-09-02  0:55         ` Shannon Zhao
2016-09-02  1:12           ` Boris Ostrovsky
2016-08-16 10:25 ` [PATCH v4 04/16] libxl/arm: Estimate the size of ACPI tables Shannon Zhao
2016-08-16 10:25 ` [PATCH v4 05/16] libxl/arm: Construct ACPI RSDP table Shannon Zhao
2016-08-24 12:52   ` Wei Liu
2016-08-25  8:05     ` Shannon Zhao
2016-08-25  9:05       ` Wei Liu
2016-08-29 18:05       ` Julien Grall
2016-08-30  1:21         ` Shannon Zhao
2016-08-30 17:11           ` Julien Grall
2016-08-30 21:38             ` Stefano Stabellini
2016-08-29 18:03   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 06/16] libxl/arm: Construct ACPI XSDT table Shannon Zhao
2016-08-29 18:10   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 07/16] libxl/arm: Construct ACPI GTDT table Shannon Zhao
2016-08-24 12:56   ` Wei Liu
2016-08-24 14:13     ` Roger Pau Monné
2016-08-25  7:58       ` Shannon Zhao
2016-08-29 18:16   ` Julien Grall
2016-08-30  1:36     ` Shannon Zhao
2016-08-16 10:25 ` [PATCH v4 08/16] libxl/arm: Factor MPIDR computing codes out as a helper Shannon Zhao
2016-08-29 18:17   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 09/16] libxl/arm: Construct ACPI MADT table Shannon Zhao
2016-08-29 18:30   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 10/16] libxl/arm: Construct ACPI FADT table Shannon Zhao
2016-08-29 18:38   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 11/16] libxl/arm: Construct ACPI DSDT table Shannon Zhao
2016-08-16 10:25 ` [PATCH v4 12/16] libxl/arm: Factor finalise_one_memory_node as a gerneric function Shannon Zhao
2016-08-29 18:39   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 13/16] libxl/arm: Add ACPI module Shannon Zhao
2016-08-29 18:41   ` Julien Grall
2016-08-16 10:25 ` [PATCH v4 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI Shannon Zhao
2016-08-24 13:06   ` Wei Liu [this message]
2016-08-24 13:15     ` Jan Beulich
2016-08-24 22:27   ` Boris Ostrovsky
2016-08-29 19:00   ` Julien Grall
2016-08-30  1:30     ` Shannon Zhao
2016-08-16 10:25 ` [PATCH v4 15/16] libxl/arm: Initialize domain param HVM_PARAM_CALLBACK_IRQ Shannon Zhao
2016-08-16 10:25 ` [PATCH v4 16/16] libxl/arm: Add the size of ACPI tables to maxmem Shannon Zhao
2016-08-29 19:07   ` Julien Grall
2016-08-30  1:25     ` Shannon Zhao
2016-08-30  8:29     ` Wei Liu
2016-08-30  9:20     ` Shannon Zhao
2016-08-24 12:58 ` [PATCH v4 00/16] Xen ARM DomU ACPI support Wei Liu
2016-08-25  8:01   ` Shannon Zhao
2016-08-29 19:08   ` 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=20160824130606.GN20641@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@arm.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=shannon.zhao@linaro.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xen.org \
    --cc=zhaoshenglong@huawei.com \
    /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).