x86/pv: fix breakage of grub-pv build
PATCH 1/1 x86/pv: fix breakage of grub-pv build
grub-pv is relying on start_info being defined, so provide a definition which can be used.
Fixes d669a312b2b2 ("x86/pv: remove global start_info")
Signed-off-by Juergen Gross <[email protected]>
--- arch/x86/setup.c | 1 + include/hypervisor.h | 2 ++ 2 files changed, 3 insertions(+)
arch/x86/setup.c +1 -0
@@ -67,6 +67,7 @@ static inline void sse_init(void) {* This pointer holds a reference to the start_info struct. */ start_info_t *start_info_ptr; +EXPORT_SYMBOL (start_info_ptr);#define hpc_init ()
include/hypervisor.h +2 -0
@@ -30,6 +30,8 @@#ifdef CONFIG_PARAVIRT /* A pointer to the start of day information passed up from the hypervisor. */ extern start_info_t *start_info_ptr; + +#define start_info (*start_info_ptr)#else int hvm_get_parameter (int idx,uint64_t *value);int hvm_set_parameter (int idx,uint64_t value);
Signature · 1 line
2.43.0
Quoted 5 lines · Juergen Gross
grub-pv is relying on
start_infobeing defined, so provide a definition which can be used.Fixes d669a312b2b2 ("x86/pv: remove global start_info")Signed-off-by Juergen Gross <[email protected]>
Reviewed-by Jason Andryuk <[email protected]>