[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250215010946.1201353-1-seanjc@google.com>
Date: Fri, 14 Feb 2025 17:09:44 -0800
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Doug Covelli <doug.covelli@...adcom.com>
Subject: [PATCH 0/2] KVM: SVM: Fix an STI shadow on VMRUN bug
Fix an amusing 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.
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: f0f0cbf3b767935abcfdb36649ab626fb2ab5ae7
--
2.48.1.601.g30ceb7b040-goog
Powered by blists - more mailing lists