Skip to contentSkip to conversation

x86/pv: fix breakage of grub-pv build

PATCH In review Juergen Gross 2 participants 2 messages Jun 25, 2025 x86

lore
Share & tools
lore
#0 lore raw

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")
---
 arch/x86/setup.c     | 1 +
 include/hypervisor.h | 2 ++
 2 files changed, 3 insertions(+)
arch/x86/setup.c +1 -0
index b3fc835a..ed28d940 100644
@@ -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
index f40bc8c3..d199f039 100644
@@ -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