OSDN Git Service

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)
commitf14eec0a32038f2d6c05b8ea91c7701f65ce7418
tree6bd3c42848e12a26db69f8c145bcdeb402fad7cb
parent9ef1530c0c1bb182d7f60165946bd027ff49282e
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