libacpi: Don't build x86-only AML for ARM64 mk_dsdt
PATCH 1/1 libacpi: Don't build x86-only AML for ARM64 mk_dsdt
Commit d6ac8e22c7c5 ("acpi/x86: define ACPI IO registers for PVH guests") broke ARM64 build of mk_dsdt.c due to introduction of XEN_ACPI_CPU_MAP[_LEN] macros that are needed only for x86 guests.
We could fix the build by dealing specifically with those macros but since post-MADT code is not executed on ARM64 anyway we can compile it for x86 only.
Signed-off-by Boris Ostrovsky <[email protected]>
---
Julien,
Sorry about breakage. I don't have ARM64 build environment for tools (I do build the hypervisor) --- can you verify that it works for yoU?
tools/libacpi/mk_dsdt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
tools/libacpi/mk_dsdt.c +4 -3
@@ -109,10 +109,10 @@ static struct option options[] = {int main (int argc,char **argv) { -unsigned int slot, dev, intx, link, cpu, max_cpus; +unsigned int cpu, max_cpus;dm_version dm_version =QEMU_XEN_TRADITIONAL ; -#if defined(CONFIG_X86 ) +unsigned int slot, dev, intx, link; max_cpus =HVM_MAX_VCPUS ;#elif defined(CONFIG_ARM_64 ) max_cpus =GUEST_MAX_VCPUS ;
@@ -242,7 +242,7 @@ int main(int argc, char **argv)pop_block ();/**** DSDT DefinitionBlock end ****/ return 0 ; -#endif +#else /* Operation Region 'PRST': bitmask of online CPUs. */ stmt("OperationRegion", "PRST, SystemIO, %#x, %d",
@@ -524,6 +524,7 @@ int main(int argc, char **argv)/**** DSDT DefinitionBlock end ****/ return 0 ; +#endif }/*
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel