lkml.org 
[lkml]   [2018]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/24] x86/paravirt: Annotate indirect calls
On Tue, Jan 23, 2018 at 04:25:42PM +0100, Peter Zijlstra wrote:
> Paravirt emits indirect calls which get flagged by objtool retpoline
> checks, annotate it away because all these indirect calls will be
> patched out before we start userspace.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
> arch/x86/include/asm/paravirt.h | 22 ++++++++++++++++++----
> arch/x86/include/asm/paravirt_types.h | 7 ++++++-
> 2 files changed, 24 insertions(+), 5 deletions(-)
>
> --- a/arch/x86/include/asm/paravirt.h
> +++ b/arch/x86/include/asm/paravirt.h
> @@ -828,6 +828,12 @@ extern void default_banner(void);
> .short clobbers; \
> .popsection
>
> +#define PARA_RETPOLINE_SAFE \
> + 773:; \
> + .pushsection .discard.retpoline_safe; \
> + _ASM_PTR 773b; \
> + .popsection

Why does paravirt have its own version of this macro?

--
Josh

\
 
 \ /
  Last update: 2018-01-29 18:59    [W:0.482 / U:2.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site