diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-02-22 16:43:17 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-23 08:24:35 +0100 |
commit | ecb586bd29c99fb4de599dec388658e74388daad (patch) | |
tree | 5c309f49fee88e9690ead6beac4c9b3e70aa7d3c /arch/x86/entry/entry_32.S | |
parent | d5028ba8ee5a18c9d0bb926d883c28b370f89009 (diff) |
KVM/x86: Remove indirect MSR op calls from SPEC_CTRL
Having a paravirt indirect call in the IBRS restore path is not a
good idea, since we are trying to protect from speculative execution
of bogus indirect branch targets. It is also slower, so use
native_wrmsrl() on the vmentry path too.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: KarimAllah Ahmed <karahmed@amazon.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kvm@vger.kernel.org
Cc: stable@vger.kernel.org
Fixes: d28b387fb74da95d69d2615732f50cceb38e9a4d
Link: http://lkml.kernel.org/r/20180222154318.20361-2-pbonzini@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/entry/entry_32.S')
0 files changed, 0 insertions, 0 deletions