]> 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)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Feb 2024 09:44:46 +0000 (10:44 +0100)
commit044168fa3a65b6542bda5c21e373742de1bd5980
tree14528fe876761845d8446dfc1adc55c5be4a77c0
parent3f819af8a796c0e2f798dd301ec8c3f8cccbc9fc
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>
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/intel.c