]> xenbits.xensource.com Git - xen.git/commitdiff
x86/kexec: Separate code and data into different cache lines
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 Feb 2023 17:01:22 +0000 (17:01 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 2 Oct 2024 18:08:27 +0000 (19:08 +0100)
No functional change, but it performs a bit better.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/kexec_reloc.S

index 9f40c80d7c4b71e79f264ec9db92cc759560a7a8..50ba454abd48635cdaa03533eaa97895d44a9e89 100644 (file)
@@ -19,6 +19,7 @@
 #include <xen/kimage.h>
 
 #include <asm/asm_defns.h>
+#include <asm/cache.h>
 #include <asm/msr-index.h>
 #include <asm/page.h>
 #include <asm/machine_kexec.h>
@@ -174,6 +175,9 @@ FUNC_LOCAL(compatibility_mode)
         ud2
 END(compatibility_mode)
 
+        /* Separate code and data into into different cache lines */
+        .balign L1_CACHE_BYTES
+
 DATA_LOCAL(compat_mode_gdt_desc, 4)
         .word .Lcompat_mode_gdt_end - compat_mode_gdt -1
         .quad 0x0000000000000000     /* set in call_32_bit above */