Skip to contentSkip to conversation

KVM/arm64 fixes for 6.3, part #4

GIT PULL Oliver Upton 1 participant 1 message Apr 19, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Paolo,

I tempted fate with my prior pull stating that it was likely the last. So here we are. A single, critical fix to protect vCPU flags updates (which are non-atomic) against preemption, as that'd muck with the vCPU flags.

If you're busy this week and unable to button this up in a pull to Linus then please let me know, as we really want this to get in before 6.3 is wrapped up.

Please pull,

Oliver

The following changes since commit e81625218bf7986ba1351a98c43d346b15601d26:

KVM: arm64: Advertise ID_AA64PFR0_EL1.CSV2/3 to protected VMs (2023-04-04 15:52:06 +0000)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.3-4

for you to fetch changes up to 35dcb3ac663a16510afc27ba2725d70c15e012a5:

KVM: arm64: Make vcpu flag updates non-preemptible (2023-04-18 17:08:09 +0000)

----------------------------------------------------------------
KVM/arm64 fixes for 6.3, part #4

- Protect non-atomic RMW operations on vCPU flags against preemption, as an update to the flags by an intervening preemption could be lost.

----------------------------------------------------------------
Marc Zyngier (1):
KVM: arm64: Make vcpu flag updates non-preemptible

 arch/arm64/include/asm/kvm_host.h | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)