From: Wei Liu <wei.liu2@citrix.com>
To: Shannon Zhao <shannon.zhao@linaro.org>
Cc: sstabellini@kernel.org, wei.liu2@citrix.com,
ian.jackson@eu.citrix.com, xen-devel@lists.xen.org,
julien.grall@arm.com, zhaoshenglong@huawei.com,
boris.ostrovsky@oracle.com
Subject: Re: [PATCH v8 03/16] libxl/arm: Generate static ACPI DSDT table
Date: Fri, 30 Sep 2016 12:09:11 +0100 [thread overview]
Message-ID: <20160930110911.GV16004@citrix.com> (raw)
In-Reply-To: <20160929011902.7784-4-shannon.zhao@linaro.org>
On Wed, Sep 28, 2016 at 06:18:49PM -0700, Shannon Zhao wrote:
> 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 compile mk_dsdt.c.
>
> Also only check iasl for aarch64 in configure since ACPI on ARM32 is not
> supported.
>
> Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
> Acked-by: Julien Grall <julien.grall@arm.com>
> Acked-by: Wei Liu <wei.liu2@citrix.com>
> ---
> tools/configure.ac | 2 +-
Please add a note in the future to ask committers to run autogen.sh.
> tools/libacpi/Makefile | 8 +++++++-
> tools/libacpi/mk_dsdt.c | 27 ++++++++++++++++++++++++++-
> tools/libxl/Makefile | 5 ++++-
> tools/libxl/libxl_arm_acpi.c | 5 +++++
> xen/arch/arm/domain.c | 1 +
> xen/include/public/arch-arm.h | 3 +++
> 7 files changed, 47 insertions(+), 4 deletions(-)
>
> diff --git a/tools/configure.ac b/tools/configure.ac
> index 5724ace..794c615 100644
> --- a/tools/configure.ac
> +++ b/tools/configure.ac
> @@ -340,7 +340,7 @@ dnl "host" here means the platform on which the hypervisor and tools is
> dnl going to run, not the platform on which we are building (known as
> dnl "build" in gnu speak).
> case "$host_cpu" in
> -i[[3456]]86|x86_64)
> +i[[3456]]86|x86_64|aarch64)
> AX_PATH_PROG_OR_FAIL([IASL], [iasl])
> ;;
> esac
> diff --git a/tools/libacpi/Makefile b/tools/libacpi/Makefile
> index 65a540e..2502d53 100644
> --- a/tools/libacpi/Makefile
> +++ b/tools/libacpi/Makefile
> @@ -19,6 +19,7 @@ MK_DSDT = $(ACPI_BUILD_DIR)/mk_dsdt
>
> C_SRC-$(GPL) = dsdt_anycpu.c dsdt_15cpu.c dsdt_anycpu_qemu_xen.c
> C_SRC = $(addprefix $(ACPI_BUILD_DIR)/, dsdt_pvh.c $(C_SRC-y))
> +C_SRC += $(ACPI_BUILD_DIR)/dsdt_anycpu_arm.c
This doesn't build on x86.
I wrote the following patch to fix that. Tested on both x86 and ARM.
From 63bd22a110730310deba5abf81e82ffb43182932 Mon Sep 17 00:00:00 2001
From: Wei Liu <wei.liu2@citrix.com>
Date: Fri, 30 Sep 2016 11:26:36 +0100
Subject: [PATCH] fixup! libxl/arm: Generate static ACPI DSDT table
---
tools/libacpi/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/libacpi/Makefile b/tools/libacpi/Makefile
index 2502d53..db7a3a9 100644
--- a/tools/libacpi/Makefile
+++ b/tools/libacpi/Makefile
@@ -18,8 +18,8 @@ include $(XEN_ROOT)/tools/firmware/Rules.mk
MK_DSDT = $(ACPI_BUILD_DIR)/mk_dsdt
C_SRC-$(GPL) = dsdt_anycpu.c dsdt_15cpu.c dsdt_anycpu_qemu_xen.c
+C_SRC-$(CONFIG_ARM) = $(ACPI_BUILD_DIR)/dsdt_anycpu_arm.c
C_SRC = $(addprefix $(ACPI_BUILD_DIR)/, dsdt_pvh.c $(C_SRC-y))
-C_SRC += $(ACPI_BUILD_DIR)/dsdt_anycpu_arm.c
H_SRC = $(addprefix $(ACPI_BUILD_DIR)/, ssdt_s3.h ssdt_s4.h ssdt_pm.h ssdt_tpm.h)
# Suffix for temporary files.
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-09-30 11:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 1:18 [PATCH v8 00/16] Xen ARM DomU ACPI support Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 01/16] tools/libxl: Add an unified configuration option for ACPI Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 02/16] libxl/arm: prepare for constructing ACPI tables Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 03/16] libxl/arm: Generate static ACPI DSDT table Shannon Zhao
2016-09-30 11:09 ` Wei Liu [this message]
2016-09-29 1:18 ` [PATCH v8 04/16] libxl/arm: Estimate the size of ACPI tables Shannon Zhao
2016-09-29 9:59 ` Wei Liu
2016-09-29 1:18 ` [PATCH v8 05/16] libxl/arm: Construct ACPI RSDP table Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 06/16] libxl/arm: Construct ACPI XSDT table Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 07/16] libxl/arm: Construct ACPI GTDT table Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 08/16] libxl/arm: Factor MPIDR computing codes out as a helper Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 09/16] libxl/arm: Construct ACPI MADT table Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 10/16] libxl/arm: Construct ACPI FADT table Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 11/16] libxl/arm: Construct ACPI DSDT table Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 12/16] libxl/arm: Factor finalise_one_memory_node as a gerneric function Shannon Zhao
2016-09-29 1:18 ` [PATCH v8 13/16] libxl/arm: Add ACPI module Shannon Zhao
2016-09-29 1:19 ` [PATCH v8 14/16] public/hvm/params.h: Add macros for HVM_PARAM_CALLBACK_TYPE_PPI Shannon Zhao
2016-09-29 7:13 ` Jan Beulich
2016-09-29 9:49 ` Wei Liu
2016-09-29 1:19 ` [PATCH v8 15/16] libxl/arm: Initialize domain param HVM_PARAM_CALLBACK_IRQ Shannon Zhao
2016-09-29 1:19 ` [PATCH v8 16/16] libxl/arm: Add the size of ACPI tables to maxmem Shannon Zhao
2016-09-29 9:59 ` Wei Liu
2016-09-30 11:10 ` [PATCH v8 00/16] Xen ARM DomU ACPI support Wei Liu
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=20160930110911.GV16004@citrix.com \
--to=wei.liu2@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=ian.jackson@eu.citrix.com \
--cc=julien.grall@arm.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).