]> xenbits.xensource.com Git - xen.git/commit
x86: arrange for ENDBR zapping from <vendor>_ctxt_switch_masking()
authorJan Beulich <jbeulich@suse.com>
Mon, 5 Feb 2024 09:44:46 +0000 (10:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Apr 2024 15:45:01 +0000 (16:45 +0100)
commitb6fad02a54da8c38a316eeebab22152f29ee0218
tree463ec4fdf565b0fad275fe92a17f250325c316fb
parent0f6696a78059d4442515c6a80ff73db7b336c0c1
x86: arrange for ENDBR zapping from <vendor>_ctxt_switch_masking()

While altcall is already used for them, the functions want announcing in
.init.rodata.cf_clobber, even if the resulting static variables aren't
otherwise used.

While doing this also move ctxt_switch_masking to .data.ro_after_init.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
(cherry picked from commit 044168fa3a65b6542bda5c21e373742de1bd5980)
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/intel.c