Re: [PATCH 16/17] KVM: retpolines: x86: eliminate retpoline from svm.c exit handlers

2019-09-23 Thread Paolo Bonzini
On 20/09/19 23:25, Andrea Arcangeli wrote: > +#ifdef CONFIG_RETPOLINE > + if (exit_code == SVM_EXIT_MSR) > + return msr_interception(svm); > + else if (exit_code == SVM_EXIT_VINTR) > + return interrupt_window_interception(svm); > + else if (exit_code ==

[PATCH 16/17] KVM: retpolines: x86: eliminate retpoline from svm.c exit handlers

2019-09-20 Thread Andrea Arcangeli
It's enough to check the exit value and issue a direct call to avoid the retpoline for all the common vmexit reasons. After this commit is applied, here the most common retpolines executed under a high resolution timer workload in the guest on a SVM host: [..] @[ trace_retpoline+1