[Xen-devel] [PATCH v8 10/16] libxl/arm: Construct ACPI FADT table

2016-09-28 Thread Shannon Zhao
Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_arm_acpi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/tools/libxl/libxl_arm_ac

[Xen-devel] [PATCH v8 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-28 Thread Shannon Zhao
Here it adds the ACPI tables size to set the target maxmem to avoid providing less available memory for guest. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl.c | 45 - tools/libxl/libxl_arch.h

[Xen-devel] [PATCH v8 15/16] libxl/arm: Initialize domain param HVM_PARAM_CALLBACK_IRQ

2016-09-28 Thread Shannon Zhao
The guest kernel will get the event channel interrupt information via domain param HVM_PARAM_CALLBACK_IRQ. Initialize it here. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools

[Xen-devel] [PATCH v8 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-09-28 Thread Shannon Zhao
Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update them in evtchn_fixup(). Also use HVM_PARAM_CALLBACK_IRQ_TYPE_MASK in hvm_set_callback_via(). Cc: Jan Beulich <jbeul...@suse.com> Cc: Andrew Cooper <andrew.coop...@citrix.com> Signed-off-by: Shannon Zha

[Xen-devel] [PATCH v8 12/16] libxl/arm: Factor finalise_one_memory_node as a gerneric function

2016-09-28 Thread Shannon Zhao
Rename finalise_one_memory_node to finalise_one_node and pass the node name via function parameter. This is useful for adding ACPI module which will be added by a later patch. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked

[Xen-devel] [PATCH v8 01/16] tools/libxl: Add an unified configuration option for ACPI

2016-09-28 Thread Shannon Zhao
Since the existing configuration option "u.hvm.acpi" is x86 specific and we want to reuse it on ARM as well, add a unified option "acpi" for x86 and ARM, and for ARM it's disabled by default. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Wei Liu <w

[Xen-devel] [PATCH v8 11/16] libxl/arm: Construct ACPI DSDT table

2016-09-28 Thread Shannon Zhao
Copy the static DSDT table into ACPI blob. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_arm_acpi.c | 10 ++ 1 file changed, 10 insertions(+) diff -

[Xen-devel] [PATCH v8 09/16] libxl/arm: Construct ACPI MADT table

2016-09-28 Thread Shannon Zhao
According to the GIC version, construct the MADT table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_arm_acpi.c | 84 ++

[Xen-devel] [PATCH v8 06/16] libxl/arm: Construct ACPI XSDT table

2016-09-28 Thread Shannon Zhao
Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_arm_acpi.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/tools/libxl/libxl_

[Xen-devel] [PATCH v8 13/16] libxl/arm: Add ACPI module

2016-09-28 Thread Shannon Zhao
Add the ARM Multiboot module for ACPI, so UEFI or DomU can get the base address of ACPI tables from it. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- docs/misc/arm/device-

[Xen-devel] [PATCH v8 08/16] libxl/arm: Factor MPIDR computing codes out as a helper

2016-09-28 Thread Shannon Zhao
Factor MPIDR computing codes out as a helper, so it could be shared between DT and ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_arm.c | 8 +--- tools

[Xen-devel] [PATCH v8 00/16] Xen ARM DomU ACPI support

2016-09-28 Thread Shannon Zhao
generate DSDT table and include processor device objects * assign a non-RAM map for ACPI blob * use existing ACPI table definitions under xen/include/acpi/ * add a configuration for user to enable/disable ACPI generation * calculate the ACPI table checksum Shannon Zhao (16): tools/libxl: Add an unifi

[Xen-devel] [PATCH v8 02/16] libxl/arm: prepare for constructing ACPI tables

2016-09-28 Thread Shannon Zhao
It only constructs the ACPI tables for 64-bit ARM DomU when user enables acpi because 32-bit DomU doesn't support ACPI. And the generation codes are only built for 64-bit toolstack. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> A

[Xen-devel] [PATCH v8 04/16] libxl/arm: Estimate the size of ACPI tables

2016-09-28 Thread Shannon Zhao
Estimate the size of ACPI tables and reserve a memory map space for ACPI tables. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 95 xen/include/acpi/actbl1.h| 2 + 2 files changed, 97 insertions(+)

[Xen-devel] [PATCH v8 05/16] libxl/arm: Construct ACPI RSDP table

2016-09-28 Thread Shannon Zhao
Construct ACPI RSDP table and add a helper to calculate the ACPI table checksum. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/lib

[Xen-devel] [PATCH v8 03/16] libxl/arm: Generate static ACPI DSDT table

2016-09-28 Thread Shannon Zhao
. Also only check iasl for aarch64 in configure since ACPI on ARM32 is not supported. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/configure.ac| 2 +- tool

[Xen-devel] [PATCH v8 07/16] libxl/arm: Construct ACPI GTDT table

2016-09-28 Thread Shannon Zhao
Construct GTDT table with the interrupt information of timers. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_arm_acpi.c | 38

Re: [Xen-devel] [PATCH v6 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-28 Thread Shannon Zhao
On 2016/9/28 3:00, Wei Liu wrote: On Tue, Sep 27, 2016 at 11:43:38AM -0700, Shannon Zhao wrote: On 2016/9/27 9:35, Wei Liu wrote: On Tue, Sep 27, 2016 at 09:01:00AM -0700, Shannon Zhao wrote: On 2016/9/27 2:41, Wei Liu wrote: On Mon, Sep 26, 2016 at 02:54:55PM -0700, Shannon Zhao wrote

Re: [Xen-devel] [PATCH v6 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-27 Thread Shannon Zhao
On 2016/9/27 9:35, Wei Liu wrote: On Tue, Sep 27, 2016 at 09:01:00AM -0700, Shannon Zhao wrote: On 2016/9/27 2:41, Wei Liu wrote: On Mon, Sep 26, 2016 at 02:54:55PM -0700, Shannon Zhao wrote: On 2016/9/22 7:10, Wei Liu wrote: diff --git a/tools/libxl/libxl_dom.c b/tools/libxl

Re: [Xen-devel] [PATCH v6 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-27 Thread Shannon Zhao
On 2016/9/27 2:41, Wei Liu wrote: On Mon, Sep 26, 2016 at 02:54:55PM -0700, Shannon Zhao wrote: On 2016/9/22 7:10, Wei Liu wrote: diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 2924629..118beab 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c

[Xen-devel] [PATCH v7 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-09-27 Thread Shannon Zhao
Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update them in evtchn_fixup(). Also use HVM_PARAM_CALLBACK_IRQ_TYPE_MASK in hvm_set_callback_via(). Cc: Jan Beulich <jbeul...@suse.com> Cc: Andrew Cooper <andrew.coop...@citrix.com> Signed-off-by: Shannon Zha

[Xen-devel] [PATCH v7 04/16] libxl/arm: Estimate the size of ACPI tables

2016-09-27 Thread Shannon Zhao
Estimate the size of ACPI tables and reserve a memory map space for ACPI tables. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 100 +++ xen/include/acpi/actbl1.h| 2 + 2 files changed, 102 inse

Re: [Xen-devel] [PATCH v6 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-26 Thread Shannon Zhao
On 2016/9/22 7:10, Wei Liu wrote: diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c > index 2924629..118beab 100644 > --- a/tools/libxl/libxl_dom.c > +++ b/tools/libxl/libxl_dom.c > @@ -408,8 +408,15 @@ int libxl__build_pre(libxl__gc *gc, uint32_t domid, > } > } > >

Re: [Xen-devel] [PATCH v6 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-09-26 Thread Shannon Zhao
On 2016/9/22 8:00, Jan Beulich wrote: On 22.09.16 at 14:52, <zhaoshengl...@huawei.com> wrote: From: Shannon Zhao <shannon.z...@linaro.org> Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update them in evtchn_fixup(). Also use HVM_PARAM_CALLBACK_I

Re: [Xen-devel] [PATCH v6 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-26 Thread Shannon Zhao
On 2016/9/26 2:05, Wei Liu wrote: On Mon, Sep 26, 2016 at 03:08:43PM +0800, Shannon Zhao wrote: > > > On 2016/9/22 22:32, Wei Liu wrote: > >FAOD: > > > >I think all the issues I found so far in this patch and other patch(es) > >are mostly cosmetic. I wou

Re: [Xen-devel] [PATCH v6 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-26 Thread Shannon Zhao
On 2016/9/22 22:32, Wei Liu wrote: FAOD: I think all the issues I found so far in this patch and other patch(es) are mostly cosmetic. I would be happy to accept incremental patches on top of this series to make those changes. Ok, thanks for your review. No need to resend just yet unless

Re: [Xen-devel] [PATCH v6 00/16] Xen ARM DomU ACPI support

2016-09-22 Thread Shannon Zhao
On 2016/9/22 21:37, Julien Grall wrote: > > > On 22/09/16 14:32, Shannon Zhao wrote: >> >> >> On 2016/9/22 21:27, Julien Grall wrote: >>> Hi Shannon, >>> >>> I am not sure why, but your name on this patch series become: z0022600

Re: [Xen-devel] [PATCH v6 00/16] Xen ARM DomU ACPI support

2016-09-22 Thread Shannon Zhao
On 2016/9/22 21:27, Julien Grall wrote: > Hi Shannon, > > I am not sure why, but your name on this patch series become: z00226004. > You may want to give a look to your mail sender. > Oops, I just modified the user.name before and forgot to change back. I will resend soon. Thanks, -- Shannon

Re: [Xen-devel] [PATCH v5 00/16] Xen ARM DomU ACPI support

2016-09-14 Thread Shannon Zhao
On 2016/9/14 15:40, Julien Grall wrote: > > On 14/09/2016 08:32, Shannon Zhao wrote: >> > >> > >> > On 2016/9/14 15:14, Julien Grall wrote: >>> >> Hello, >>> >> >>> >> On 14/09/2016 02:06, Stefano Stabellini wrote

Re: [Xen-devel] [PATCH v5 00/16] Xen ARM DomU ACPI support

2016-09-14 Thread Shannon Zhao
On 2016/9/14 15:14, Julien Grall wrote: > Hello, > > On 14/09/2016 02:06, Stefano Stabellini wrote: >> On Wed, 14 Sep 2016, Shannon Zhao wrote: >>> On 2016/9/13 23:17, Julien Grall wrote: >>>> >>>> >>>> On 13/09/16 14:06,

Re: [Xen-devel] [PATCH v3 12/19] libacpi: Build DSDT for PVH guests

2016-09-13 Thread Shannon Zhao
On 2016/9/8 2:59, Boris Ostrovsky wrote: > PVH guests require DSDT with only ACPI INFO (Xen-specific) and Processor > objects. We separate ASL's ACPI INFO definition into dsdt_acpi_info.asl so > that it can be included in ASLs for both HVM and PVH2. > > Signed-off-by: Boris Ostrovsky

Re: [Xen-devel] [PATCH v5 00/16] Xen ARM DomU ACPI support

2016-09-13 Thread Shannon Zhao
On 2016/9/13 23:17, Julien Grall wrote: > > > On 13/09/16 14:06, Shannon Zhao wrote: >> Hi Julien, > > Hello Shannon, > >> On 2016/9/13 19:56, Julien Grall wrote: >>> Hi Shannon, >>> >>> On 02/09/16 03:55, Shannon Zha

Re: [Xen-devel] [PATCH v5 00/16] Xen ARM DomU ACPI support

2016-09-13 Thread Shannon Zhao
Hi Julien, On 2016/9/13 19:56, Julien Grall wrote: > Hi Shannon, > > On 02/09/16 03:55, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> The design of this feature is described as below. >> Firstly, the toolstack (libxl) generates

Re: [Xen-devel] [PATCH v5 00/16] Xen ARM DomU ACPI support

2016-09-13 Thread Shannon Zhao
On 2016/9/12 23:22, Julien Grall wrote: > Hi Shannon, > > On 02/09/16 03:55, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> The design of this feature is described as below. >> Firstly, the toolstack (libxl) generates the ACPI

Re: [Xen-devel] [PATCH v5 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-09-02 Thread Shannon Zhao
On 2016/9/2 14:18, Jan Beulich wrote: On 02.09.16 at 04:55, wrote: >> --- 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

[Xen-devel] [PATCH v5 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update them in evtchn_fixup(). Also use HVM_PARAM_CALLBACK_IRQ_TYPE_SHIFT in hvm_set_callback_via(). Cc: Jan Beulich <jbeul...@suse.com> Cc: Andrew Cooper <andrew.coo

[Xen-devel] [PATCH v5 07/16] libxl/arm: Construct ACPI GTDT table

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Construct GTDT table with the interrupt information of timers. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 38 ++ 1 file changed, 38 insertions(+) diff -

[Xen-devel] [PATCH v5 06/16] libxl/arm: Construct ACPI XSDT table

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c i

[Xen-devel] [PATCH v5 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Here it adds the ACPI tables size to set the target maxmem to avoid providing less available memory for guest. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arch.h| 2 +- tools/libxl/libxl_arm.c

[Xen-devel] [PATCH v5 05/16] libxl/arm: Construct ACPI RSDP table

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Construct ACPI RSDP table and add a helper to calculate the ACPI table checksum. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 39 +++ 1 file changed, 3

[Xen-devel] [PATCH v5 00/16] Xen ARM DomU ACPI support

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> The design of this feature is described as below. Firstly, the toolstack (libxl) generates the ACPI tables according the number of vcpus and gic controller. Then, it copies these ACPI tables to DomU non-RAM memory map space and passes them t

[Xen-devel] [PATCH v5 04/16] libxl/arm: Estimate the size of ACPI tables

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Estimate the size of ACPI tables and reserve a memory map space for ACPI tables. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 98 1 file changed, 9

[Xen-devel] [PATCH v5 02/16] libxl/arm: prepare for constructing ACPI tables

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> It only constructs the ACPI tables for 64-bit ARM DomU when user enables acpi because 32-bit DomU doesn't support ACPI. And the generation codes are only built for 64-bit toolstack. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org>

[Xen-devel] [PATCH v5 15/16] libxl/arm: Initialize domain param HVM_PARAM_CALLBACK_IRQ

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> The guest kernel will get the event channel interrupt information via domain param HVM_PARAM_CALLBACK_IRQ. Initialize it here. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm.c | 13 + 1 file

[Xen-devel] [PATCH v5 01/16] tools/libxl: Add an unified configuration option for ACPI

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Since the existing configuration option "u.hvm.acpi" is x86 specific and we want to reuse it on ARM as well, add a unified option "acpi" for x86 and ARM, and for ARM it's disabled by default. Signed-off-by: Shannon Zha

[Xen-devel] [PATCH v5 03/16] libxl/arm: Generate static ACPI DSDT table

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> It uses static DSDT table like the way x86 uses. Currently the DSDT table only contains processor device objects and it generates the maximal objects which so far is 128. While the GUEST_MAX_VCPUS is defined under __XEN__ or __XEN_TOOLS__, it

[Xen-devel] [PATCH v5 09/16] libxl/arm: Construct ACPI MADT table

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> According to the GIC version, construct the MADT table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 84 1 file changed, 84 insertions(+) diff -

[Xen-devel] [PATCH v5 10/16] libxl/arm: Construct ACPI FADT table

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c index d335

[Xen-devel] [PATCH v5 13/16] libxl/arm: Add ACPI module

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add the ARM Multiboot module for ACPI, so UEFI or DomU can get the base address of ACPI tables from it. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> --- docs/misc/arm/device-

[Xen-devel] [PATCH v5 12/16] libxl/arm: Factor finalise_one_memory_node as a gerneric function

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Rename finalise_one_memory_node to finalise_one_node and pass the node name via function parameter. This is useful for adding ACPI module which will be added by a later patch. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acke

[Xen-devel] [PATCH v5 11/16] libxl/arm: Construct ACPI DSDT table

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Copy the static DSDT table into ACPI blob. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b

[Xen-devel] [PATCH v5 08/16] libxl/arm: Factor MPIDR computing codes out as a helper

2016-09-01 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Factor MPIDR computing codes out as a helper, so it could be shared between DT and ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Julien Grall <julien.gr...@arm.com> --- tools/libxl/libxl_arm.c | 8 +--

Re: [Xen-devel] [PATCH v4 03/16] libxl/arm: Generate static ACPI DSDT table

2016-09-01 Thread Shannon Zhao
On 2016/9/1 20:53, Boris Ostrovsky wrote: > On 08/31/2016 11:18 PM, Shannon Zhao wrote: >> > >> > On 2016/8/30 1:46, Julien Grall wrote: >>>> >>> diff --git a/tools/libacpi/Makefile b/tools/libacpi/Makefile >>>> >>> inde

Re: [Xen-devel] [PATCH v4 03/16] libxl/arm: Generate static ACPI DSDT table

2016-08-31 Thread Shannon Zhao
On 2016/8/30 1:46, Julien Grall wrote: >> diff --git a/tools/libacpi/Makefile b/tools/libacpi/Makefile >> index d741ac5..7f50a33 100644 >> --- a/tools/libacpi/Makefile >> +++ b/tools/libacpi/Makefile >> @@ -19,6 +19,7 @@ MK_DSDT = $(ACPI_BUILD_DIR)/mk_dsdt >> >> # Sources to be generated >>

Re: [Xen-devel] [PATCH v4 03/16] libxl/arm: Generate static ACPI DSDT table

2016-08-31 Thread Shannon Zhao
On 2016/8/30 1:46, Julien Grall wrote: > Hi Shannon, > > On 16/08/2016 06:25, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> It uses static DSDT table like the way x86 uses. Currently the DSDT >> table only contains pr

Re: [Xen-devel] [PATCH v4 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-08-30 Thread Shannon Zhao
On 2016/8/30 3:07, Julien Grall wrote: > Hi Shannon, > > On 16/08/2016 06:25, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> While it defines the maximum size of guest ACPI tables in guest >> memory layout, here it adds the si

Re: [Xen-devel] [PATCH v4 07/16] libxl/arm: Construct ACPI GTDT table

2016-08-29 Thread Shannon Zhao
On 2016/8/30 2:16, Julien Grall wrote: > On 16/08/2016 06:25, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> Construct GTDT table with the interrupt information of timers. >> >> Signed-off-by: Shannon Zhao <shann

Re: [Xen-devel] [PATCH v4 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-08-29 Thread Shannon Zhao
On 2016/8/30 3:00, Julien Grall wrote: > Hi Shannon, > > On 16/08/2016 06:25, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update >> them in evtchn_fixup(). >&

Re: [Xen-devel] [PATCH v4 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-08-29 Thread Shannon Zhao
On 2016/8/30 3:07, Julien Grall wrote: > Hi Shannon, > > On 16/08/2016 06:25, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> While it defines the maximum size of guest ACPI tables in guest >> memory layout, here it adds the si

Re: [Xen-devel] [PATCH v4 05/16] libxl/arm: Construct ACPI RSDP table

2016-08-29 Thread Shannon Zhao
On 2016/8/30 2:05, Julien Grall wrote: > Hi Shannon, > > On 25/08/2016 04:05, Shannon Zhao wrote: >> >> >> On 2016/8/24 20:52, Wei Liu wrote: >>> On Tue, Aug 16, 2016 at 06:25:02PM +0800, Shannon Zhao wrote: >>>>> From: Shannon Zhao <sh

Re: [Xen-devel] [PATCH v4 01/16] tools/libxl: Add an unified configuration option for ACPI

2016-08-25 Thread Shannon Zhao
On 2016/8/25 17:05, Wei Liu wrote: > On Thu, Aug 25, 2016 at 03:54:32PM +0800, Shannon Zhao wrote: >> > >> > >> > On 2016/8/24 20:50, Wei Liu wrote: >>>> > >> -localents[i++] = libxl_defbool_val(info->u.hvm.acpi) ? &

Re: [Xen-devel] [PATCH v4 05/16] libxl/arm: Construct ACPI RSDP table

2016-08-25 Thread Shannon Zhao
On 2016/8/24 20:52, Wei Liu wrote: > On Tue, Aug 16, 2016 at 06:25:02PM +0800, Shannon Zhao wrote: >> > From: Shannon Zhao <shannon.z...@linaro.org> >> > >> > Construct ACPI RSDP table and add a helper to calculate the ACPI table >> > checksum. >

Re: [Xen-devel] [PATCH v4 07/16] libxl/arm: Construct ACPI GTDT table

2016-08-25 Thread Shannon Zhao
On 2016/8/24 22:13, Roger Pau Monné wrote: > On Wed, Aug 24, 2016 at 01:56:04PM +0100, Wei Liu wrote: >> On Tue, Aug 16, 2016 at 06:25:04PM +0800, Shannon Zhao wrote: >>> From: Shannon Zhao <shannon.z...@linaro.org> >>> >>> Construct GTDT tabl

Re: [Xen-devel] [PATCH v4 00/16] Xen ARM DomU ACPI support

2016-08-25 Thread Shannon Zhao
On 2016/8/24 20:58, Wei Liu wrote: > On Tue, Aug 16, 2016 at 06:24:57PM +0800, Shannon Zhao wrote: >> > From: Shannon Zhao <shannon.z...@linaro.org> >> > >> > The design of this feature is described as below. >> > Firstly, the toolstac

Re: [Xen-devel] [PATCH v4 01/16] tools/libxl: Add an unified configuration option for ACPI

2016-08-25 Thread Shannon Zhao
On 2016/8/24 20:50, Wei Liu wrote: >> -localents[i++] = libxl_defbool_val(info->u.hvm.acpi) ? "1" : "0"; >> > +localents[i++] = (libxl_defbool_val(info->acpi) && >> > + libxl_defbool_val(info->u.hvm.acpi)) ? "1" : "0"; > Please provide a function for this.

[Xen-devel] [PATCH v4 00/16] Xen ARM DomU ACPI support

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> The design of this feature is described as below. Firstly, the toolstack (libxl) generates the ACPI tables according the number of vcpus and gic controller. Then, it copies these ACPI tables to DomU non-RAM memory map space and passes them t

[Xen-devel] [PATCH v4 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add macros for HVM_PARAM_CALLBACK_TYPE_PPI operation values and update them in evtchn_fixup(). Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- xen/arch/arm/domain_build.c | 8 +--- xen/include/public/hvm/params.h | 4 +

[Xen-devel] [PATCH v4 15/16] libxl/arm: Initialize domain param HVM_PARAM_CALLBACK_IRQ

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> The guest kernel will get the event channel interrupt information via domain param HVM_PARAM_CALLBACK_IRQ. Initialize it here. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm.c | 13 + 1 file

[Xen-devel] [PATCH v4 03/16] libxl/arm: Generate static ACPI DSDT table

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> It uses static DSDT table like the way x86 uses. Currently the DSDT table only contains processor device objects and it generates the maximal objects which so far is 128. Also only check iasl for aarch64 in configure since ACPI on

[Xen-devel] [PATCH v4 01/16] tools/libxl: Add an unified configuration option for ACPI

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Since the existing configuration option "u.hvm.acpi" is x86 specific and we want to reuse it on ARM as well, add a unified option "acpi" for x86 and ARM, and for ARM it's disabled by default. Signed-off-by: Shannon Zha

[Xen-devel] [PATCH v4 16/16] libxl/arm: Add the size of ACPI tables to maxmem

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> While it defines the maximum size of guest ACPI tables in guest memory layout, here it adds the size to set the target maxmem to avoid providing less available memory for guest. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> ---

[Xen-devel] [PATCH v4 13/16] libxl/arm: Add ACPI module

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add the ARM Multiboot module for ACPI, so UEFI or DomU can get the base address of ACPI tables from it. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- docs/misc/arm/device-tree/acpi.txt | 24

[Xen-devel] [PATCH v4 10/16] libxl/arm: Construct ACPI FADT table

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c index 75df

[Xen-devel] [PATCH v4 06/16] libxl/arm: Construct ACPI XSDT table

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c i

[Xen-devel] [PATCH v4 05/16] libxl/arm: Construct ACPI RSDP table

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Construct ACPI RSDP table and add a helper to calculate the ACPI table checksum. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 38 ++ 1 file changed, 3

[Xen-devel] [PATCH v4 07/16] libxl/arm: Construct ACPI GTDT table

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Construct GTDT table with the interrupt information of timers. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 29 + 1 file changed, 29 insertions(+) diff --git a

[Xen-devel] [PATCH v4 09/16] libxl/arm: Construct ACPI MADT table

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> According to the GIC version, construct the MADT table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 84 1 file changed, 84 insertions(+) diff -

[Xen-devel] [PATCH v4 04/16] libxl/arm: Estimate the size of ACPI tables

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Estimate the size of ACPI tables and reserve a memory map space for ACPI tables. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 85 1 file changed, 8

[Xen-devel] [PATCH v4 02/16] libxl/arm: prepare for constructing ACPI tables

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> It only constructs the ACPI tables for 64-bit ARM DomU when user enables acpi because 32-bit DomU doesn't support ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/Makefile | 4 +++ tools/libxl

[Xen-devel] [PATCH v4 12/16] libxl/arm: Factor finalise_one_memory_node as a gerneric function

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Rename finalise_one_memory_node to finalise_one_node and pass the node name via function parameter. This is useful for adding ACPI module which will be added by a later patch. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> ---

[Xen-devel] [PATCH v4 08/16] libxl/arm: Factor MPIDR computing codes out as a helper

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Factor MPIDR computing codes out as a helper, so it could be shared between DT and ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm.c | 8 +--- tools/libxl/libxl_arm.h | 11 +++ 2 files

[Xen-devel] [PATCH v4 11/16] libxl/arm: Construct ACPI DSDT table

2016-08-16 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Copy the static DSDT table into ACPI blob. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- tools/libxl/libxl_arm_acpi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b

Re: [Xen-devel] [PATCH v2 14/23] acpi: Move ACPI code to tools/libacpi

2016-08-16 Thread Shannon Zhao
On 2016/8/16 16:29, Wei Liu wrote: > On Tue, Aug 16, 2016 at 04:13:06PM +0800, Shannon Zhao wrote: > [...] >> > Not sure if I do something wrong, but I got bellow errors when compiling >> > this series on x86 just using "./autogen.sh;./configure;make tools"

Re: [Xen-devel] [PATCH v2 14/23] acpi: Move ACPI code to tools/libacpi

2016-08-16 Thread Shannon Zhao
Hi, On 2016/8/5 5:06, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky > Acked-by: Jan Beulich > --- > v2: > * Minor cleanup of hvmloader's Makefile > > tools/firmware/hvmloader/Makefile | 14 > -- >

Re: [Xen-devel] [PATCH v2 23/23] libxc/xc_dom_core: Copy ACPI tables to guest space

2016-08-15 Thread Shannon Zhao
On 2016/8/15 20:49, Boris Ostrovsky wrote: > On 08/15/2016 03:48 AM, Shannon Zhao wrote: >> Hi Boris >> >> On 2016/8/5 5:06, Boris Ostrovsky wrote: >>> Load ACPI modules into guest space >>> >>> Signed-off-by: Boris Ostrovsky <boris.ostrov...@o

Re: [Xen-devel] [PATCH v7 05/15] libxl: Load guest BIOS from file

2016-08-15 Thread Shannon Zhao
On 2016/8/15 17:09, Wei Liu wrote: > On Mon, Aug 15, 2016 at 05:04:20PM +0800, Shannon Zhao wrote: > [...] >>> > > >>> > > +const char *libxl__seabios_path(void) >>> > > +{ >>> > > +return SEABIOS_PAT

Re: [Xen-devel] [PATCH v7 05/15] libxl: Load guest BIOS from file

2016-08-15 Thread Shannon Zhao
On 2016/7/28 18:50, Anthony PERARD wrote: > The path to the BIOS blob can be overriden by the xl's > bios_path_override option, or provided by u.hvm.bios_firmware in the > domain_build_info struct by other libxl user. > > Signed-off-by: Anthony PERARD > Acked-by: Wei

Re: [Xen-devel] [PATCH v2 23/23] libxc/xc_dom_core: Copy ACPI tables to guest space

2016-08-15 Thread Shannon Zhao
Hi Boris On 2016/8/5 5:06, Boris Ostrovsky wrote: > Load ACPI modules into guest space > > Signed-off-by: Boris Ostrovsky > --- > v2: > * New patch, loosely based on Shannon's ARM patch > > tools/libxc/xc_dom_core.c | 92 >

Re: [Xen-devel] [PATCH v2 00/23] Make ACPI builder available to components other than hvmloader

2016-08-15 Thread Shannon Zhao
On 2016/8/5 5:06, Boris Ostrovsky wrote: > The goal here is to build ACPI tables for PVHv2/HVMlite guests while reusing > existing > hvmloader's ACPI builder code. The builder is provided as a library in > tools/libacpi. > > This version is built on top of Anthony's >

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-28 Thread Shannon Zhao
On 2016年07月28日 19:06, Julien Grall wrote: > On 26/07/16 02:17, Boris Ostrovsky wrote: >> On 07/25/2016 07:40 PM, Stefano Stabellini wrote: >>> On Mon, 25 Jul 2016, Boris Ostrovsky wrote: On 07/25/2016 06:06 PM, Stefano Stabellini wrote: > On Mon, 25 Jul 2016, George Dunlap wrote: >>

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-25 Thread Shannon Zhao
On 2016/7/20 17:32, Wei Liu wrote: > On Wed, Jul 20, 2016 at 02:52:05PM +0800, Shannon Zhao wrote: >> > >> > >> > On 2016/7/19 18:38, Wei Liu wrote: >>> > > On Fri, Jul 15, 2016 at 05:39:32PM +0800, Shannon Zhao wrote: >>> > > [.

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-20 Thread Shannon Zhao
On 2016/7/19 18:38, Wei Liu wrote: > On Fri, Jul 15, 2016 at 05:39:32PM +0800, Shannon Zhao wrote: > [...] >>> > > >>> > > It would be trivial to have another option in xl.cfg to allow MB >>> > > granularity. But I don't think that's a good

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-15 Thread Shannon Zhao
en Grall wrote: >>>>> On 12/07/2016 16:08, Boris Ostrovsky wrote: >>>>>> On 07/12/2016 10:57 AM, Shannon Zhao wrote: >>>>>>> On 2016年07月12日 22:50, Wei Liu wrote: >>>>>>>> On Tue, Jul 12, 2016 at 10:42:07PM +0800, Shanno

Re: [Xen-devel] [PATCH v2 03/17] libxl/arm: Add a configuration option for ARM DomU ACPI

2016-07-15 Thread Shannon Zhao
On 2016/7/15 16:00, Shannon Zhao wrote: > > > On 2016/7/13 18:03, Julien Grall wrote: >> >> >> On 13/07/2016 10:48, Shannon Zhao wrote: >>> >>> >>> On 2016/7/13 17:20, Julien Grall wrote: >>>> On 13/07/2016 08:54, Shannon Zhao

Re: [Xen-devel] [PATCH v2 03/17] libxl/arm: Add a configuration option for ARM DomU ACPI

2016-07-15 Thread Shannon Zhao
On 2016/7/13 18:03, Julien Grall wrote: > > > On 13/07/2016 10:48, Shannon Zhao wrote: >> >> >> On 2016/7/13 17:20, Julien Grall wrote: >>> On 13/07/2016 08:54, Shannon Zhao wrote: >>>> On 2016/7/12 19:33, Wei Liu wrote: >>>>&g

Re: [Xen-devel] [PATCH v2 03/17] libxl/arm: Add a configuration option for ARM DomU ACPI

2016-07-13 Thread Shannon Zhao
On 2016/7/13 17:20, Julien Grall wrote: > On 13/07/2016 08:54, Shannon Zhao wrote: >> On 2016/7/12 19:33, Wei Liu wrote: >>> On Tue, Jul 12, 2016 at 10:22:39AM +0100, Julien Grall wrote: >>> [...] >>>>>> Yeah, we can deprecate that field. But we need

Re: [Xen-devel] [PATCH v2 03/17] libxl/arm: Add a configuration option for ARM DomU ACPI

2016-07-13 Thread Shannon Zhao
On 2016/7/12 19:33, Wei Liu wrote: > On Tue, Jul 12, 2016 at 10:22:39AM +0100, Julien Grall wrote: > [...] Yeah, we can deprecate that field. But we need to take care to not break users of the old field. >>> Ok, what name would you suggest? >> >> I would suggest b_info->u.acpi >> > >

Re: [Xen-devel] [PATCH v2 16/17] libxc/xc_dom_arm: Copy ACPI tables to guest space

2016-07-12 Thread Shannon Zhao
On 2016年07月12日 22:50, Wei Liu wrote: > On Tue, Jul 12, 2016 at 10:42:07PM +0800, Shannon Zhao wrote: >>>>>>>>>>> > >>>>> > >> > >>>>>>>>>>> > >>>>> > >> > Does it

Re: [Xen-devel] [PATCH v3 05/17] libxl/arm: Generate static ACPI DSDT table

2016-07-12 Thread Shannon Zhao
On 2016年07月12日 19:38, Wei Liu wrote: > On Tue, Jul 12, 2016 at 11:50:32AM +0800, Shannon Zhao wrote: >> > >> > >> > On 2016/7/7 23:52, Wei Liu wrote: >>> > > On Tue, Jul 05, 2016 at 11:12:35AM +0800, Shannon Zhao wrote: >>>

Re: [Xen-devel] [PATCH v2 03/17] libxl/arm: Add a configuration option for ARM DomU ACPI

2016-07-12 Thread Shannon Zhao
On 2016年07月12日 22:33, Wei Liu wrote: > On Tue, Jul 12, 2016 at 10:17:20PM +0800, Shannon Zhao wrote: >> > On 2016年07月12日 19:33, Wei Liu wrote: >>> > > On Tue, Jul 12, 2016 at 10:22:39AM +0100, Julien Grall wrote: >>> > > [...] >>>>>>&

  1   2   3   4   5   6   7   8   9   10   >