]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
x86/entry: Fix !PV build
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 22 Aug 2022 12:46:39 +0000 (13:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 23 Aug 2022 11:22:05 +0000 (12:22 +0100)
early_page_fault() needs to outside of #ifdef CONFIG_PV

Spotted by Gitlab CI.

Fixes: fe3f50726e87 ("x86/entry: move .init.text section higher up in the code for readability")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/entry.S

index 9b34150bc7abda84ccb82a63e44aa26a7a3309ac..ae012851819a4767ecc2f54ab711be0a6efa9f65 100644 (file)
@@ -140,15 +140,6 @@ process_trap:
         call create_bounce_frame
         jmp  test_all_events
 
-        .section .init.text, "ax", @progbits
-ENTRY(early_page_fault)
-        ENDBR64
-        movl  $TRAP_page_fault, 4(%rsp)
-        SAVE_ALL
-        movq  %rsp, %rdi
-        call  do_early_page_fault
-        jmp   restore_all_xen
-
         .section .text.entry, "ax", @progbits
 
 /* %rbx: struct vcpu, interrupts disabled */
@@ -655,6 +646,15 @@ ret_from_intr:
         jmp   restore_all_xen
 #endif
 
+        .section .init.text, "ax", @progbits
+ENTRY(early_page_fault)
+        ENDBR64
+        movl  $TRAP_page_fault, 4(%rsp)
+        SAVE_ALL
+        movq  %rsp, %rdi
+        call  do_early_page_fault
+        jmp   restore_all_xen
+
         .section .text.entry, "ax", @progbits
 
         ALIGN