All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] KVM: arm64: Fix bugs related to mp_state updates
@ 2023-04-19  2:18 ` Reiji Watanabe
  0 siblings, 0 replies; 16+ messages in thread
From: Reiji Watanabe @ 2023-04-19  2:18 UTC (permalink / raw)
  To: Marc Zyngier, Oliver Upton, kvmarm
  Cc: kvm, linux-arm-kernel, James Morse, Alexandru Elisei, Zenghui Yu,
	Suzuki K Poulose, Paolo Bonzini, Ricardo Koller, Jing Zhang,
	Raghavendra Rao Anata, Will Deacon, Reiji Watanabe

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/20230327164747.2466958-2-oliver.upton@linux.dev/
[2] https://lore.kernel.org/all/20230327164747.2466958-1-oliver.upton@linux.dev/

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(-)

-- 
2.40.0.396.gfff15efe05-goog


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-04-21  3:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-19  2:18 [PATCH v1 0/2] KVM: arm64: Fix bugs related to mp_state updates Reiji Watanabe
2023-04-19  2:18 ` Reiji Watanabe
2023-04-19  2:18 ` [PATCH v1 1/2] KVM: arm64: Acquire mp_state_lock in kvm_arch_vcpu_ioctl_vcpu_init() Reiji Watanabe
2023-04-19  2:18   ` Reiji Watanabe
2023-04-19  7:12   ` Marc Zyngier
2023-04-19  7:12     ` Marc Zyngier
2023-04-20  2:13     ` Reiji Watanabe
2023-04-20  2:13       ` Reiji Watanabe
2023-04-20  8:16       ` Marc Zyngier
2023-04-20  8:16         ` Marc Zyngier
2023-04-21  3:27         ` Reiji Watanabe
2023-04-21  3:27           ` Reiji Watanabe
2023-04-19  2:18 ` [PATCH v1 2/2] KVM: arm64: Have kvm_psci_vcpu_on() use WRITE_ONCE() to update mp_state Reiji Watanabe
2023-04-19  2:18   ` Reiji Watanabe
2023-04-20  8:08 ` [PATCH v1 0/2] KVM: arm64: Fix bugs related to mp_state updates Marc Zyngier
2023-04-20  8:08   ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.