]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: move more vmentry code to assembly
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Apr 2020 07:17:58 +0000 (03:17 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Apr 2020 08:21:21 +0000 (04:21 -0400)
commit1ba843189359533e6519830f4f865c1f1e951406
tree6bd3c42848e12a26db69f8c145bcdeb402fad7cb
parenta26461e0b61d3af49ed18eb44ccec8b97d3961e9
KVM: SVM: move more vmentry code to assembly

Manipulate IF around vmload/vmsave to remove the confusing usage of
local_irq_enable where interrupts are actually disabled via GIF.
And stuff the RSB immediately without waiting for a RET to avoid
Spectre-v2 attacks.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/nospec-branch.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/vmenter.S