Skip to content

KVM: SVM: Fix an STI shadow on VMRUN bug

Sean Christopherson kvm lkml 2 versions – Applied

Status from this message: Applied to kvm-x86 fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied
  2. v12 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: SVM: Set RFLAGS.IF=1 in C code, to get VMRUN out of the STI shadowarch/x86/kvm/svm/svm.c arch/x86/kvm/svm/vmenter.S+15 -91 reply
2/2KVM: selftests: Assert that STI blocking isn't set after event injectiontools/testing/selftests/kvm/x86/nested_exceptions_test.c+2 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJim Mattson
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: SVM: Fix an STI shadow on VMRUN bug

Fix a bug where KVM puts VMRUN in an STI shadow, which AMD CPUs bleed into guest state if a #VMEXIT occurs before completing the VMRUN, e.g. if vectoring an injected exception triggers an exit.

v2: Use "raw" variants to avoid tracing in noinstr code. [kernel test robot]

v1: https://lore.kernel.org/all/[email protected]

Sean Christopherson (2):
KVM: SVM: Set RFLAGS.IF=1 in C code, to get VMRUN out of the STI
shadow
KVM: selftests: Assert that STI blocking isn't set after event
injection

 arch/x86/kvm/svm/svm.c                             | 14 ++++++++++++++
 arch/x86/kvm/svm/vmenter.S                         | 10 +---------
 .../selftests/kvm/x86/nested_exceptions_test.c     |  2 ++
 3 files changed, 17 insertions(+), 9 deletions(-)

base-commit: fed48e2967f402f561d80075a20c5c9e16866e53

Signature · 1 line
2.48.1.601.g30ceb7b040-goog