]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen: allow mapping ACPI data using a different physical address
authorJuergen Gross <jgross@suse.com>
Fri, 9 Aug 2024 15:52:55 +0000 (17:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:43 +0000 (16:29 +0200)
commitadbb44539b56f15dc94701a43aa21ded41635c99
treef1ed456e6defe8d3688b909eda86144a4a25b24c
parent161fd69123b0360d27922e282f377067ab7f1dab
xen: allow mapping ACPI data using a different physical address

commit 9221222c717dbddac1e3c49906525475d87a3a44 upstream.

When running as a Xen PV dom0 the system needs to map ACPI data of the
host using host physical addresses, while those addresses can conflict
with the guest physical addresses of the loaded linux kernel. The same
problem might apply in case a PV guest is configured to use the host
memory map.

This conflict can be solved by mapping the ACPI data to a different
guest physical address, but mapping the data via acpi_os_ioremap()
must still be possible using the host physical address, as this
address might be generated by AML when referencing some of the ACPI
data.

When configured to support running as a Xen PV domain, have an
implementation of acpi_os_ioremap() being aware of the possibility to
need above mentioned translation of a host physical address to the
guest physical address.

This modification requires to #include linux/acpi.h in some sources
which need to include asm/acpi.h directly.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/acpi.h
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/jailhouse.c
arch/x86/kernel/mmconf-fam10h_64.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/x86_init.c
arch/x86/xen/p2m.c
arch/x86/xen/setup.c