Re: [PATCH v4 0/2] KVM: arm64: Clear VM-wide state when kvm_setup_vcpu() fails
From: Marc Zyngier
Date: Tue Nov 03 2026 - 08:12:18 EST
On Mon, 02 Nov 2026 07:58:41 +0000, Fuad Tabba wrote:
> Changes since v3 [1]:
> - New patch 2, clearing the default PMU left set by a failed INIT.
> - Reworded patch 1's commit message.
> - Rebased on 7.4-rc1.
>
> A KVM_ARM_VCPU_INIT whose kvm_setup_vcpu() fails doesn't undo its
> changes to VM-wide state. Patch 1 clears the feature bitmap, which the
> PMU attributes read before the vCPU is initialized. Patch 2 clears the
> default PMU, which a retry with KVM_ARM_VCPU_PMU_V3_STRICT would
> otherwise inherit.
>
> [...]
Applied to fixes, thanks!
[1/2] KVM: arm64: Clear the VM's feature bitmap when kvm_setup_vcpu() fails
commit: 2c77a4a3040da8095e052849e2a0a05f598c8601
[2/2] KVM: arm64: Clear the default PMU when kvm_setup_vcpu() fails
commit: 4d3361e4d60a46781c8697ee1ab9532f625163f1
Cheers,
M.
--
Without deviation from the norm, progress is not possible.