Skip to content

KVM: arm64: Fix bugs related to mp_state updates

Reiji Watanabe kvm kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Acquire mp_state_lock in kvm_arch_vcpu_ioctl_vcpu_init()arch/arm64/kvm/arm.c+4 -14 replies
2/2KVM: arm64: Have kvm_psci_vcpu_on() use WRITE_ONCE() to update mp_statearch/arm64/kvm/psci.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] KVM: arm64: Fix bugs related to mp_state updates

This series adds fixes that were missing in the patch [1].

The patch [1] added the mp_state_lock to serialize writes to kvm_vcpu_arch::{mp_state, reset_state}, and promoted all accessors of mp_state to {READ,WRITE}_ONCE() as readers do not acquire the mp_state_lock.

Since the patch [1] didn't fix all the relevant code, fix the code that weren't addressed yet.

This series is based on v6.3-rc7 with the series [2] applied.

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

Reiji Watanabe (2):
KVM: arm64: Acquire mp_state_lock in kvm_arch_vcpu_ioctl_vcpu_init()
KVM: arm64: Have kvm_psci_vcpu_on() use WRITE_ONCE() to update
mp_state

 arch/arm64/kvm/arm.c  | 5 ++++-
 arch/arm64/kvm/psci.c | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.40.0.396.gfff15efe05-goog