Message ID | 20240130150839.4130909-1-andrew.cooper3@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | x86/traps: Annotate {l,c}star_enter() as nocall | expand |
On 30.01.2024 16:08, Andrew Cooper wrote: > ... as with other declarations which aren't legal to call from C. > > Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
diff --git a/xen/arch/x86/x86_64/traps.c b/xen/arch/x86/x86_64/traps.c index 668605e5bc67..02fdb3637d09 100644 --- a/xen/arch/x86/x86_64/traps.c +++ b/xen/arch/x86/x86_64/traps.c @@ -333,8 +333,8 @@ static unsigned int write_stub_trampoline( DEFINE_PER_CPU(struct stubs, stubs); -void lstar_enter(void); -void cstar_enter(void); +void nocall lstar_enter(void); +void nocall cstar_enter(void); void subarch_percpu_traps_init(void) {
... as with other declarations which aren't legal to call from C. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> --- CC: Jan Beulich <JBeulich@suse.com> CC: Roger Pau Monné <roger.pau@citrix.com> CC: Wei Liu <wl@xen.org> --- xen/arch/x86/x86_64/traps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) base-commit: 4a7e71aa085170f1a13976507c8e248f8715f116 prerequisite-patch-id: 897f8a9f53b9c95c7961be1793b2685c11dc6e50