[PATCH 0/2] KVM: x86: Clean up MP_STATE transitions

Jim Mattson posted 2 patches 11 months, 1 week ago
arch/x86/kvm/lapic.c      |  6 +++---
arch/x86/kvm/svm/nested.c |  2 +-
arch/x86/kvm/svm/sev.c    |  5 ++---
arch/x86/kvm/vmx/nested.c |  4 ++--
arch/x86/kvm/x86.c        | 18 ++++++++----------
arch/x86/kvm/x86.h        |  7 +++++++
arch/x86/kvm/xen.c        |  4 ++--
7 files changed, 25 insertions(+), 21 deletions(-)
[PATCH 0/2] KVM: x86: Clean up MP_STATE transitions
Posted by Jim Mattson 11 months, 1 week ago
Introduce a generic setter, kvm_set_mp_state(), and use that to ensure that
pv_unhalted is cleared on all transitions to KVM_MP_STATE_RUNNABLE.

Jim Mattson (2):
  KVM: x86: Introduce kvm_set_mp_state()
  KVM: x86: Clear pv_unhalted on all transitions to
    KVM_MP_STATE_RUNNABLE

 arch/x86/kvm/lapic.c      |  6 +++---
 arch/x86/kvm/svm/nested.c |  2 +-
 arch/x86/kvm/svm/sev.c    |  5 ++---
 arch/x86/kvm/vmx/nested.c |  4 ++--
 arch/x86/kvm/x86.c        | 18 ++++++++----------
 arch/x86/kvm/x86.h        |  7 +++++++
 arch/x86/kvm/xen.c        |  4 ++--
 7 files changed, 25 insertions(+), 21 deletions(-)


base-commit: c45323b7560ec87c37c729b703c86ee65f136d75
-- 
2.47.1.688.g23fc6f90ad-goog
Re: [PATCH 0/2] KVM: x86: Clean up MP_STATE transitions
Posted by Sean Christopherson 10 months ago
On Mon, 13 Jan 2025 12:01:42 -0800, Jim Mattson wrote:
> Introduce a generic setter, kvm_set_mp_state(), and use that to ensure that
> pv_unhalted is cleared on all transitions to KVM_MP_STATE_RUNNABLE.
> 
> Jim Mattson (2):
>   KVM: x86: Introduce kvm_set_mp_state()
>   KVM: x86: Clear pv_unhalted on all transitions to
>     KVM_MP_STATE_RUNNABLE
> 
> [...]

Applied to kvm-x86 misc, thanks!

[1/2] KVM: x86: Introduce kvm_set_mp_state()
      https://github.com/kvm-x86/linux/commit/c9e5f3fa9039
[2/2] KVM: x86: Clear pv_unhalted on all transitions to KVM_MP_STATE_RUNNABLE
      https://github.com/kvm-x86/linux/commit/e9cb61055fee

--
https://github.com/kvm-x86/linux/tree/next