xen: re-enable booting as Xen PVH guest
Subsystems (4)
Juergen Gross
maintainerv3 cover xen: re-enable booting as Xen PVH guest
The Xen PVH boot protocol passes vital information to the kernel via a start_info block. One of the data transferred is the physical address of the RSDP table.
Unfortunately PVH support in the kernel didn't use that passed address for RSDP, but relied on the legacy mechanism searching for the RSDP in low memory. After a recent change in Xen putting the RSDP to a higher address booting as PVH guest is now failing.
This small series repairs that by passing the RSDP address from the start_info block to ACPI handling.
Changes in V3:
- instead of using a weak function add a function pointer to x86_init for obtaining the RSDP address
Juergen Gross (3):
acpi: introduce acpi_arch_get_root_pointer() for getting rsdp address x86/acpi: add a new x86_init_acpi structure to x86_init_ops x86/xen: add pvh specific rsdp address retrieval function
arch/x86/include/asm/acpi.h | 7 +++++++ arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/x86_init.c | 5 +++++ arch/x86/xen/enlighten_pvh.c | 14 +++++++++++--- drivers/acpi/osl.c | 5 ++++- include/linux/acpi.h | 7 +++++++ 6 files changed, 43 insertions(+), 4 deletions(-)
Signature · 7 lines
2.13.6 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Juergen Gross
maintainerPATCH v3 1/3 acpi: introduce acpi_arch_get_root_pointer() for getting rsdp address
Add an architecture specific function to get the address of the RSDP table. Per default it will just return 0 indicating falling back to the current mechanism.
--- drivers/acpi/osl.c | 5 ++++- include/linux/acpi.h | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-)
drivers/acpi/osl.c +4 -1
@@ -189,12 +189,15 @@ early_param("acpi_rsdp", setup_acpi_rsdp);acpi_physical_address __init acpi_os_get_root_pointer (void ) { -acpi_physical_address pa =0 ; +acpi_physical_address pa;#ifdef CONFIG_KEXEC if (acpi_rsdp)return acpi_rsdp;#endif + pa =acpi_arch_get_root_pointer (); +if (pa) +return pa;if (efi_enabled (EFI_CONFIG_TABLES )) {if (efi.acpi20 !=EFI_INVALID_TABLE_ADDR )
include/linux/acpi.h +7 -0
@@ -623,6 +623,13 @@ bool acpi_gtdt_c3stop(int type);int acpi_arch_timer_mem_init (struct arch_timer_mem *timer_mem,int *timer_count);#endif +#ifndef ACPI_HAVE_ARCH_GET_ROOT_POINTER +static inline u64 acpi_arch_get_root_pointer (void ) +{ +return 0 ; +} +#endif +#else /* !CONFIG_ACPI */ #define acpi_disabled 1
Signature · 7 lines
2.13.6 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
tip-bot for Juergen Gross
merge bot[tip:x86/boot] acpi: Introduce acpi_arch_get_root_pointer() for getting rsdp address
acpi: Introduce acpi_arch_get_root_pointer() for getting rsdp address
Commit-ID: 795e2963a1afef44ed9ec7e6d16c8052fcd8d886 Gitweb: https://git.kernel.org/tip/795e2963a1afef44ed9ec7e6d16c8052fcd8d886 Author: Juergen Gross <[email protected]> AuthorDate: Mon, 19 Feb 2018 11:09:04 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 20 Feb 2018 09:00:55 +0100
acpi: Introduce acpi_arch_get_root_pointer() for getting rsdp address
Add an architecture specific function to get the address of the RSDP table. Per default it will just return 0 indicating falling back to the current mechanism.
--- drivers/acpi/osl.c | 5 ++++- include/linux/acpi.h | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-)
drivers/acpi/osl.c +4 -1
@@ -189,12 +189,15 @@ early_param("acpi_rsdp", setup_acpi_rsdp);acpi_physical_address __init acpi_os_get_root_pointer (void ) { -acpi_physical_address pa =0 ; +acpi_physical_address pa;#ifdef CONFIG_KEXEC if (acpi_rsdp)return acpi_rsdp;#endif + pa =acpi_arch_get_root_pointer (); +if (pa) +return pa;if (efi_enabled (EFI_CONFIG_TABLES )) {if (efi.acpi20 !=EFI_INVALID_TABLE_ADDR )
include/linux/acpi.h +7 -0
@@ -623,6 +623,13 @@ bool acpi_gtdt_c3stop(int type);int acpi_arch_timer_mem_init (struct arch_timer_mem *timer_mem,int *timer_count);#endif +#ifndef ACPI_HAVE_ARCH_GET_ROOT_POINTER +static inline u64 acpi_arch_get_root_pointer (void ) +{ +return 0 ; +} +#endif +#else /* !CONFIG_ACPI */ #define acpi_disabled 1
tip-bot for Juergen Gross
merge bot[tip:x86/mm] acpi: Introduce acpi_arch_get_root_pointer() for getting rsdp address
In reply to Juergen Grossacpi: Introduce acpi_arch_get_root_pointer() for getting rsdp address
Commit-ID: dfc9327ab7c99bc13e12106448615efba833886b Gitweb: https://git.kernel.org/tip/dfc9327ab7c99bc13e12106448615efba833886b Author: Juergen Gross <[email protected]> AuthorDate: Mon, 19 Feb 2018 11:09:04 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 26 Feb 2018 08:43:20 +0100
acpi: Introduce acpi_arch_get_root_pointer() for getting rsdp address
Add an architecture specific function to get the address of the RSDP table. Per default it will just return 0 indicating falling back to the current mechanism.
--- drivers/acpi/osl.c | 5 ++++- include/linux/acpi.h | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-)
drivers/acpi/osl.c +4 -1
@@ -189,12 +189,15 @@ early_param("acpi_rsdp", setup_acpi_rsdp);acpi_physical_address __init acpi_os_get_root_pointer (void ) { -acpi_physical_address pa =0 ; +acpi_physical_address pa;#ifdef CONFIG_KEXEC if (acpi_rsdp)return acpi_rsdp;#endif + pa =acpi_arch_get_root_pointer (); +if (pa) +return pa;if (efi_enabled (EFI_CONFIG_TABLES )) {if (efi.acpi20 !=EFI_INVALID_TABLE_ADDR )
include/linux/acpi.h +7 -0
@@ -623,6 +623,13 @@ bool acpi_gtdt_c3stop(int type);int acpi_arch_timer_mem_init (struct arch_timer_mem *timer_mem,int *timer_count);#endif +#ifndef ACPI_HAVE_ARCH_GET_ROOT_POINTER +static inline u64 acpi_arch_get_root_pointer (void ) +{ +return 0 ; +} +#endif +#else /* !CONFIG_ACPI */ #define acpi_disabled 1
Juergen Gross
maintainerPATCH v3 2/3 x86/acpi: add a new x86_init_acpi structure to x86_init_ops
In reply to Juergen GrossAdd a new struct x86_init_acpi to x86_init_ops. For now it contains only one init function to get the RSDP table address.
--- arch/x86/include/asm/acpi.h | 7 +++++++ arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/x86_init.c | 5 +++++ 3 files changed, 21 insertions(+)
arch/x86/include/asm/acpi.h +7 -0
@@ -31,6 +31,7 @@#include <asm/mmu.h> #include <asm/mpspec.h> #include <asm/realmode.h> +#include <asm/x86_init.h> #ifdef CONFIG_ACPI_APEI # include <asm/pgtable_types.h>
@@ -133,6 +134,12 @@ static inline bool acpi_has_cpu_in_madt(void) return !!acpi_lapic; } +#define ACPI_HAVE_ARCH_GET_ROOT_POINTER +static inline u64 acpi_arch_get_root_pointer (void ) +{ +return x86_init.acpi.get_root_pointer (); +} +#else /* !CONFIG_ACPI */ #define acpi_lapic 0
arch/x86/include/asm/x86_init.h +9 -0
@@ -131,6 +131,14 @@ struct x86_hyper_init { };/** +* struct x86_init_acpi - x86 ACPI init functions +* @get_root_pointer: get RSDP address +*/ +struct x86_init_acpi { +u64 (*get_root_pointer)(void ); +}; + +/** * struct x86_init_ops - functions for platform specific setup * */
@@ -144,6 +152,7 @@ struct x86_init_ops {struct x86_init_iommu iommu;struct x86_init_pci pci;struct x86_hyper_init hyper; +struct x86_init_acpi acpi; };/**
arch/x86/kernel/x86_init.c +5 -0
@@ -30,6 +30,7 @@ int __init iommu_init_noop(void) { return 0; }void iommu_shutdown_noop (void ) { }bool __init bool_x86_init_noop (void ) {return false; }void x86_op_int_noop (int cpu) { } +u64 u64_x86_init_noop (void ) {return 0 ; }/* * The platform setup functions are preset with the default functions
@@ -91,6 +92,10 @@ struct x86_init_ops x86_init __initdata = { .x2apic_available = bool_x86_init_noop, .init_mem_mapping = x86_init_noop, }, + + .acpi = { + .get_root_pointer = u64_x86_init_noop, + }, };struct x86_cpuinit_ops x86_cpuinit = {
Signature · 7 lines
2.13.6 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
tip-bot for Juergen Gross
merge bot[tip:x86/boot] x86/acpi: Add a new x86_init_acpi structure to x86_init_ops
x86/acpi: Add a new x86_init_acpi structure to x86_init_ops
Commit-ID: 62d8b7fba8d3ba9c046b7a1a95946c6aaf7c5da9 Gitweb: https://git.kernel.org/tip/62d8b7fba8d3ba9c046b7a1a95946c6aaf7c5da9 Author: Juergen Gross <[email protected]> AuthorDate: Mon, 19 Feb 2018 11:09:05 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 20 Feb 2018 09:00:56 +0100
x86/acpi: Add a new x86_init_acpi structure to x86_init_ops
Add a new struct x86_init_acpi to x86_init_ops. For now it contains only one init function to get the RSDP table address.
--- arch/x86/include/asm/acpi.h | 7 +++++++ arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/x86_init.c | 5 +++++ 3 files changed, 21 insertions(+)
arch/x86/include/asm/acpi.h +7 -0
@@ -31,6 +31,7 @@#include <asm/mmu.h> #include <asm/mpspec.h> #include <asm/realmode.h> +#include <asm/x86_init.h> #ifdef CONFIG_ACPI_APEI # include <asm/pgtable_types.h>
@@ -133,6 +134,12 @@ static inline bool acpi_has_cpu_in_madt(void) return !!acpi_lapic; } +#define ACPI_HAVE_ARCH_GET_ROOT_POINTER +static inline u64 acpi_arch_get_root_pointer (void ) +{ +return x86_init.acpi.get_root_pointer (); +} +#else /* !CONFIG_ACPI */ #define acpi_lapic 0
arch/x86/include/asm/x86_init.h +9 -0
@@ -131,6 +131,14 @@ struct x86_hyper_init { };/** +* struct x86_init_acpi - x86 ACPI init functions +* @get_root_pointer: get RSDP address +*/ +struct x86_init_acpi { +u64 (*get_root_pointer)(void ); +}; + +/** * struct x86_init_ops - functions for platform specific setup * */
@@ -144,6 +152,7 @@ struct x86_init_ops {struct x86_init_iommu iommu;struct x86_init_pci pci;struct x86_hyper_init hyper; +struct x86_init_acpi acpi; };/**
arch/x86/kernel/x86_init.c +5 -0
@@ -30,6 +30,7 @@ int __init iommu_init_noop(void) { return 0; }void iommu_shutdown_noop (void ) { }bool __init bool_x86_init_noop (void ) {return false; }void x86_op_int_noop (int cpu) { } +u64 u64_x86_init_noop (void ) {return 0 ; }/* * The platform setup functions are preset with the default functions
@@ -91,6 +92,10 @@ struct x86_init_ops x86_init __initdata = { .x2apic_available = bool_x86_init_noop, .init_mem_mapping = x86_init_noop, }, + + .acpi = { + .get_root_pointer = u64_x86_init_noop, + }, };struct x86_cpuinit_ops x86_cpuinit = {
tip-bot for Juergen Gross
merge bot[tip:x86/mm] x86/acpi: Add a new x86_init_acpi structure to x86_init_ops
In reply to Juergen Grossx86/acpi: Add a new x86_init_acpi structure to x86_init_ops
Commit-ID: 038bac2b02989acf1fc938cedcb7944c02672b9f Gitweb: https://git.kernel.org/tip/038bac2b02989acf1fc938cedcb7944c02672b9f Author: Juergen Gross <[email protected]> AuthorDate: Mon, 19 Feb 2018 11:09:05 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 26 Feb 2018 08:43:20 +0100
x86/acpi: Add a new x86_init_acpi structure to x86_init_ops
Add a new struct x86_init_acpi to x86_init_ops. For now it contains only one init function to get the RSDP table address.
--- arch/x86/include/asm/acpi.h | 7 +++++++ arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/x86_init.c | 5 +++++ 3 files changed, 21 insertions(+)
arch/x86/include/asm/acpi.h +7 -0
@@ -31,6 +31,7 @@#include <asm/mmu.h> #include <asm/mpspec.h> #include <asm/realmode.h> +#include <asm/x86_init.h> #ifdef CONFIG_ACPI_APEI # include <asm/pgtable_types.h>
@@ -133,6 +134,12 @@ static inline bool acpi_has_cpu_in_madt(void) return !!acpi_lapic; } +#define ACPI_HAVE_ARCH_GET_ROOT_POINTER +static inline u64 acpi_arch_get_root_pointer (void ) +{ +return x86_init.acpi.get_root_pointer (); +} +#else /* !CONFIG_ACPI */ #define acpi_lapic 0
arch/x86/include/asm/x86_init.h +9 -0
@@ -130,6 +130,14 @@ struct x86_hyper_init {void (*init_mem_mapping)(void ); }; +/** +* struct x86_init_acpi - x86 ACPI init functions +* @get_root_pointer: get RSDP address +*/ +struct x86_init_acpi { +u64 (*get_root_pointer)(void ); +}; +/** * struct x86_init_ops - functions for platform specific setup *
@@ -144,6 +152,7 @@ struct x86_init_ops {struct x86_init_iommu iommu;struct x86_init_pci pci;struct x86_hyper_init hyper; +struct x86_init_acpi acpi; };/**
arch/x86/kernel/x86_init.c +5 -0
@@ -30,6 +30,7 @@ int __init iommu_init_noop(void) { return 0; }void iommu_shutdown_noop (void ) { }bool __init bool_x86_init_noop (void ) {return false; }void x86_op_int_noop (int cpu) { } +u64 u64_x86_init_noop (void ) {return 0 ; }/* * The platform setup functions are preset with the default functions
@@ -91,6 +92,10 @@ struct x86_init_ops x86_init __initdata = { .x2apic_available = bool_x86_init_noop, .init_mem_mapping = x86_init_noop, }, + + .acpi = { + .get_root_pointer = u64_x86_init_noop, + }, };struct x86_cpuinit_ops x86_cpuinit = {
Juergen Gross
maintainerPATCH v3 3/3 x86/xen: add pvh specific rsdp address retrieval function
In reply to Juergen GrossAdd pvh_get_root_pointer() for Xen PVH guests to communicate the address of the RSDP table given to the kernel via Xen start info.
This makes the kernel boot again in PVH mode after on recent Xen the RSDP was moved to higher addresses. So up to that change it was pure luck that the legacy method to locate the RSDP was working when running as PVH mode.
--- arch/x86/xen/enlighten_pvh.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
arch/x86/xen/enlighten_pvh.c +11 -3
@@ -6,6 +6,7 @@#include <asm/io_apic.h> #include <asm/hypervisor.h> #include <asm/e820/api.h> +#include <asm/x86_init.h> #include <asm/xen/interface.h> #include <asm/xen/hypercall.h>
@@ -16,15 +17,20 @@/* * PVH variables. * -* xen_pvh and pvh_bootparams need to live in data segment since they -* are used after startup_{32|64}, which clear .bss, are invoked. +* xen_pvh pvh_bootparams and pvh_start_info need to live in data segment +* since they are used after startup_{32|64}, which clear .bss, are invoked. */ bool xen_pvh __attribute__((section(".data"))) = 0; struct boot_params pvh_bootparams __attribute__((section(".data"))); +struct hvm_start_info pvh_start_info __attribute__((section(".data"))); -struct hvm_start_info pvh_start_info;unsigned int pvh_start_info_sz =sizeof (pvh_start_info); +static u64 pvh_get_root_pointer (void ) +{ +return pvh_start_info.rsdp_paddr; +} +static void __init init_pvh_bootparams (void ) {struct xen_memory_map memmap;
@@ -71,6 +77,8 @@ static void __init init_pvh_bootparams(void)*/ pvh_bootparams.hdr.version =0x212 ; pvh_bootparams.hdr.type_of_loader = (9 <<4 ) |0 ;/* Xen loader */ + + x86_init.acpi.get_root_pointer = pvh_get_root_pointer; }/*
Signature · 7 lines
2.13.6 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
tip-bot for Juergen Gross
merge bot[tip:x86/boot] x86/xen: Add pvh specific rsdp address retrieval function
x86/xen: Add pvh specific rsdp address retrieval function
Commit-ID: e9cb8fc2e5ca5996417f900ed5149bd9150f6abd Gitweb: https://git.kernel.org/tip/e9cb8fc2e5ca5996417f900ed5149bd9150f6abd Author: Juergen Gross <[email protected]> AuthorDate: Mon, 19 Feb 2018 11:09:06 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 20 Feb 2018 09:00:56 +0100
x86/xen: Add pvh specific rsdp address retrieval function
Add pvh_get_root_pointer() for Xen PVH guests to communicate the address of the RSDP table given to the kernel via Xen start info.
This makes the kernel boot again in PVH mode after on recent Xen the RSDP was moved to higher addresses. So up to that change it was pure luck that the legacy method to locate the RSDP was working when running as PVH mode.
--- arch/x86/xen/enlighten_pvh.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
arch/x86/xen/enlighten_pvh.c +11 -3
@@ -6,6 +6,7 @@#include <asm/io_apic.h> #include <asm/hypervisor.h> #include <asm/e820/api.h> +#include <asm/x86_init.h> #include <asm/xen/interface.h> #include <asm/xen/hypercall.h>
@@ -16,15 +17,20 @@/* * PVH variables. * -* xen_pvh and pvh_bootparams need to live in data segment since they -* are used after startup_{32|64}, which clear .bss, are invoked. +* xen_pvh pvh_bootparams and pvh_start_info need to live in data segment +* since they are used after startup_{32|64}, which clear .bss, are invoked. */ bool xen_pvh __attribute__((section(".data"))) = 0; struct boot_params pvh_bootparams __attribute__((section(".data"))); +struct hvm_start_info pvh_start_info __attribute__((section(".data"))); -struct hvm_start_info pvh_start_info;unsigned int pvh_start_info_sz =sizeof (pvh_start_info); +static u64 pvh_get_root_pointer (void ) +{ +return pvh_start_info.rsdp_paddr; +} +static void __init init_pvh_bootparams (void ) {struct xen_memory_map memmap;
@@ -71,6 +77,8 @@ static void __init init_pvh_bootparams(void)*/ pvh_bootparams.hdr.version =0x212 ; pvh_bootparams.hdr.type_of_loader = (9 <<4 ) |0 ;/* Xen loader */ + + x86_init.acpi.get_root_pointer = pvh_get_root_pointer; }/*
tip-bot for Juergen Gross
merge bot[tip:x86/mm] x86/xen: Add pvh specific rsdp address retrieval function
In reply to Juergen Grossx86/xen: Add pvh specific rsdp address retrieval function
Commit-ID: b17d9d1df3c33a4f1d2bf397e2257aecf9dc56d4 Gitweb: https://git.kernel.org/tip/b17d9d1df3c33a4f1d2bf397e2257aecf9dc56d4 Author: Juergen Gross <[email protected]> AuthorDate: Mon, 19 Feb 2018 11:09:06 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Mon, 26 Feb 2018 08:43:20 +0100
x86/xen: Add pvh specific rsdp address retrieval function
Add pvh_get_root_pointer() for Xen PVH guests to communicate the address of the RSDP table given to the kernel via Xen start info.
This makes the kernel boot again in PVH mode after on recent Xen the RSDP was moved to higher addresses. So up to that change it was pure luck that the legacy method to locate the RSDP was working when running as PVH mode.
--- arch/x86/xen/enlighten_pvh.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
arch/x86/xen/enlighten_pvh.c +11 -3
@@ -6,6 +6,7 @@#include <asm/io_apic.h> #include <asm/hypervisor.h> #include <asm/e820/api.h> +#include <asm/x86_init.h> #include <asm/xen/interface.h> #include <asm/xen/hypercall.h>
@@ -16,15 +17,20 @@/* * PVH variables. * -* xen_pvh and pvh_bootparams need to live in data segment since they -* are used after startup_{32|64}, which clear .bss, are invoked. +* xen_pvh pvh_bootparams and pvh_start_info need to live in data segment +* since they are used after startup_{32|64}, which clear .bss, are invoked. */ bool xen_pvh __attribute__((section(".data"))) = 0; struct boot_params pvh_bootparams __attribute__((section(".data"))); +struct hvm_start_info pvh_start_info __attribute__((section(".data"))); -struct hvm_start_info pvh_start_info;unsigned int pvh_start_info_sz =sizeof (pvh_start_info); +static u64 pvh_get_root_pointer (void ) +{ +return pvh_start_info.rsdp_paddr; +} +static void __init init_pvh_bootparams (void ) {struct xen_memory_map memmap;
@@ -71,6 +77,8 @@ static void __init init_pvh_bootparams(void)*/ pvh_bootparams.hdr.version =0x212 ; pvh_bootparams.hdr.type_of_loader = (9 <<4 ) |0 ;/* Xen loader */ + + x86_init.acpi.get_root_pointer = pvh_get_root_pointer; }/*
Quoted 21 lines · Juergen Gross
The Xen PVH boot protocol passes vital information to the kernel via a
start_infoblock. One of the data transferred is the physical address of the RSDP table.Unfortunately PVH support in the kernel didn't use that passed address for RSDP, but relied on the legacy mechanism searching for the RSDP in low memory. After a recent change in Xen putting the RSDP to a higher address booting as PVH guest is now failing.
This small series repairs that by passing the RSDP address from the
start_infoblock to ACPI handling.Changes in V3:
- instead of using a weak function add a function pointer tox86_initfor obtaining the RSDP addressJuergen Gross (3):
acpi: introduceacpi_arch_get_root_pointer()for getting rsdp address x86/acpi: add a newx86_init_acpistructure tox86_init_opsx86/xen: add pvh specific rsdp address retrieval function
Quoted 8 lines
arch/x86/include/asm/acpi.h | 7 +++++++ arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/x86_init.c | 5 +++++ arch/x86/xen/enlighten_pvh.c | 14 +++++++++++--- drivers/acpi/osl.c | 5 ++++- include/linux/acpi.h | 7 +++++++ 6 files changed, 43 insertions(+), 4 deletions(-)
The series is fine by me:
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Andy Shevchenko
Reviewed-byQuoted 31 lines · Rafael J. Wysocki
Quoted 22 lines · Juergen Gross
The Xen PVH boot protocol passes vital information to the kernel via a
start_infoblock. One of the data transferred is the physical address of the RSDP table.Unfortunately PVH support in the kernel didn't use that passed address for RSDP, but relied on the legacy mechanism searching for the RSDP in low memory. After a recent change in Xen putting the RSDP to a higher address booting as PVH guest is now failing.
This small series repairs that by passing the RSDP address from the
start_infoblock to ACPI handling.Changes in V3:
- instead of using a weak function add a function pointer tox86_initfor obtaining the RSDP addressJuergen Gross (3):
acpi: introduceacpi_arch_get_root_pointer()for getting rsdp address x86/acpi: add a newx86_init_acpistructure tox86_init_opsx86/xen: add pvh specific rsdp address retrieval functionQuoted 8 lines
arch/x86/include/asm/acpi.h | 7 +++++++ arch/x86/include/asm/x86_init.h | 9 +++++++++ arch/x86/kernel/x86_init.c | 5 +++++ arch/x86/xen/enlighten_pvh.c | 14 +++++++++++--- drivers/acpi/osl.c | 5 ++++- include/linux/acpi.h | 7 +++++++ 6 files changed, 43 insertions(+), 4 deletions(-)
Quoted 3 lines
The series is fine by me:
Don't know much about Xen, though the ACPI / x86 stubs are exactly what I'm wanting!
Thanks.
Signature · 7 lines
With Best Regards, Andy Shevchenko _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel