On Fri, Jul 15, 2022 at 07:49:27AM -0400, Paolo Bonzini wrote: > Instead of doing complicated calculations to find the size of the subroutines > (which are even more complicated because they need to be stringified into > an asm statement), just hardcode to 16. > > It is less dense for a few combinations of IBT/SLS/retbleed, but it has > the advantage of being really simple. > > Suggested-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> > Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> > --- > arch/x86/kvm/emulate.c | 17 +++++++---------- > 1 file changed, 7 insertions(+), 10 deletions(-) Acked-by: Borislav Petkov <bp@xxxxxxx> -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH GF: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)