[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [MINI-OS PATCH] 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 <jgross@xxxxxxxx> --- arch/x86/setup.c | 1 + include/hypervisor.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/setup.c b/arch/x86/setup.c index b3fc835a..ed28d940 100644 --- a/arch/x86/setup.c +++ b/arch/x86/setup.c @@ -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() diff --git a/include/hypervisor.h b/include/hypervisor.h index f40bc8c3..d199f039 100644 --- a/include/hypervisor.h +++ b/include/hypervisor.h @@ -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); -- 2.43.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |