Re: [PATCH 3/3] KVM: VMX: mark RDMSR path as unlikely

From: Jim Mattson
Date: Wed Feb 21 2018 - 19:25:23 EST


On Wed, Feb 21, 2018 at 1:41 PM, Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote:
> vmx_vcpu_run and svm_vcpu_run are large functions, and this can actually
> make a substantial cycle difference by keeping the fast path contiguous
> in memory. Without it, the retpoline guest/retpoline host case is about
> 50 cycles slower.
>
> Cc: x86@xxxxxxxxxx
> Cc: Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx>
> Cc: KarimAllah Ahmed <karahmed@xxxxxxxxx>
> Cc: David Woodhouse <dwmw@xxxxxxxxxxxx>
> Cc: Jim Mattson <jmattson@xxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>