Re: [PATCH 03/24] x86/paravirt: Annotate indirect calls

From: David Woodhouse
Date: Thu Jan 25 2018 - 05:02:16 EST


On Tue, 2018-01-23 at 16:25 +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.

I've seen this asserted repeatedly but I've never truly convinced
myself of it. Is this absolutely unconditionally true in every case,
even when we're running as a guest and there are *actual* calls to be
made? We turn them into direct calls, never leave them indirect?

Attachment: smime.p7s
Description: S/MIME cryptographic signature