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

2016-09-22 Thread z00226004
From: Shannon Zhao According to the GIC version, construct the MADT table. Signed-off-by: Shannon Zhao Acked-by: Julien Grall --- tools/libxl/libxl_arm_acpi.c | 84 1 file changed, 84 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b/tools

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

2016-09-22 Thread z00226004
From: 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 Acked-by: Julien Grall --- docs/misc/arm/device-tree/acpi.txt | 24 tools/libxl/libxl_arm.c| 24 +

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

2016-09-22 Thread z00226004
From: 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 Acked-by: Wei Liu --- docs/man/xl.cfg.pod.5.in | 1

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

2016-09-22 Thread z00226004
From: 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 Acked-by: Julien Grall --- tools/libxl/libxl_arm.c | 14 ++ tools/libxl/libxl_internal.h | 3 +++ 2 f

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

2016-09-22 Thread z00226004
From: Shannon Zhao Signed-off-by: Shannon Zhao Acked-by: Julien Grall --- 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 index 421128a..eb62096 100644 --- a/tools/libxl

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

2016-09-22 Thread z00226004
From: Shannon Zhao 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 to UEFI firmware through the "ARM mul

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

2016-09-22 Thread z00226004
From: 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 --- tools/libxl/libxl_arch.h| 4 tools/libxl/libxl_arm.c | 16 tools/libxl/libxl_arm.h |

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

2016-09-22 Thread z00226004
From: Shannon Zhao Copy the static DSDT table into ACPI blob. Signed-off-by: Shannon Zhao Acked-by: Julien Grall --- tools/libxl/libxl_arm_acpi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c index 9f26d0f..9c4005f

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

2016-09-22 Thread z00226004
From: Shannon Zhao Factor MPIDR computing codes out as a helper, so it could be shared between DT and ACPI. Signed-off-by: Shannon Zhao Acked-by: Julien Grall --- tools/libxl/libxl_arm.c | 8 +--- tools/libxl/libxl_arm.h | 11 +++ 2 files changed, 12 insertions(+), 7 deletions(-)

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

2016-09-22 Thread z00226004
From: 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 Cc: Andrew Cooper Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 9 ++

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

2016-09-22 Thread z00226004
From: Shannon Zhao Signed-off-by: Shannon Zhao Acked-by: Julien Grall --- 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 8716a81..9f26d0f 100644 --- a/tools/libxl/libxl_

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

2016-09-22 Thread z00226004
From: 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 Acked-by: Julien Grall --- tools/libxl/libxl_arm.c | 8 1 fi

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

2016-09-22 Thread z00226004
From: Shannon Zhao Construct ACPI RSDP table and add a helper to calculate the ACPI table checksum. Signed-off-by: Shannon Zhao Acked-by: Julien Grall --- tools/libxl/libxl_arm_acpi.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/tools/libxl/libx

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

2016-09-22 Thread z00226004
From: Shannon Zhao Estimate the size of ACPI tables and reserve a memory map space for ACPI tables. Signed-off-by: Shannon Zhao --- tools/libxl/libxl_arm_acpi.c | 98 xen/include/acpi/actbl1.h| 2 + 2 files changed, 100 insertions(+) diff --gi

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

2016-09-22 Thread z00226004
From: Shannon Zhao 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 needs to add -D__XEN_TOOLS__ to co

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

2016-09-22 Thread z00226004
From: 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 Acked-by: Julien Grall --- tools/libxl/Makefile| 7

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

2016-09-22 Thread z00226004
From: Shannon Zhao Construct GTDT table with the interrupt information of timers. Signed-off-by: Shannon Zhao Acked-by: Julien Grall --- tools/libxl/libxl_arm_acpi.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/tools/libxl/libxl_arm_acpi.c b/tool