]> xenbits.xensource.com Git - xen.git/commitdiff
x86/trampoline: Collect other scattered trampoline symbols
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Sep 2024 10:23:30 +0000 (11:23 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Nov 2024 16:11:13 +0000 (16:11 +0000)
... and document them too.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Frediano Ziglio <frediano.ziglio@cloud.com>
xen/arch/x86/include/asm/processor.h
xen/arch/x86/include/asm/setup.h
xen/arch/x86/include/asm/trampoline.h

index 26e2fb13699ac1ea52ff5e0a5e6c154adec23966..877651212273b2898c6e79025159276c9bcfe619 100644 (file)
@@ -96,8 +96,6 @@ extern void ctxt_switch_levelling(const struct vcpu *next);
 extern void (*ctxt_switch_masking)(const struct vcpu *next);
 
 extern bool opt_cpu_info;
-extern u32 trampoline_efer;
-extern u64 trampoline_misc_enable_off;
 
 /* Maximum width of physical addresses supported by the hardware. */
 extern unsigned int paddr_bits;
index d7ed4f40024cb3bdb94dd96d88c33040260f7ae2..25c15ef9140d0e3ddb27e737ac2167c0a39f0b90 100644 (file)
@@ -48,8 +48,6 @@ int remove_xen_ranges(struct rangeset *r);
 
 int cf_check stub_selftest(void);
 
-extern uint8_t kbd_shift_flags;
-
 #ifdef NDEBUG
 # define highmem_start 0
 #else
index 57a1f85a539e999611511d42d3fd8cd69c3a5532..838c2f0b6fcdea44c30c541f349e0e168316633d 100644 (file)
@@ -85,9 +85,24 @@ extern uint32_t trampoline_xen_phys_start;
 /* A semaphore to indicate signs-of-life at the start of the AP boot path. */
 extern uint8_t trampoline_cpu_started;
 
+/*
+ * Extra MSR_EFER settings when activating Long Mode.  EFER_NXE is necessary
+ * for APs to boot if the BSP found and activated support.
+ */
+extern uint32_t trampoline_efer;
+
+/*
+ * When nonzero, clear the specified bits in MSR_MISC_ENABLE.  This is
+ * necessary to clobber XD_DISABLE before trying to set MSR_EFER.NXE.
+ */
+extern uint64_t trampoline_misc_enable_off;
+
 /* Quirks about video mode-setting on S3 resume. */
 extern uint8_t video_flags;
 
+/* BIOS Int 16h, Fn 02h.  The keyboard shift status. */
+extern uint8_t kbd_shift_flags;
+
 /* Extended Display Identification Data, gathered from the BIOS. */
 extern uint16_t boot_edid_caps;
 extern uint8_t boot_edid_info[128];