[PATCH] KVM/arm64: Don't emulate a PMU for 32-bit guests if feature not set
Marc Zyngier
maz at kernel.org
Thu Apr 28 12:58:54 PDT 2022
On Mon, 25 Apr 2022 15:55:30 +0100, Alexandru Elisei wrote:
> kvm->arch.arm_pmu is set when userspace attempts to set the first PMU
> attribute. As certain attributes are mandatory, arm_pmu ends up always
> being set to a valid arm_pmu, otherwise KVM will refuse to run the VCPU.
> However, this only happens if the VCPU has the PMU feature. If the VCPU
> doesn't have the feature bit set, kvm->arch.arm_pmu will be left
> uninitialized and equal to NULL.
>
> [...]
Applied to fixes, thanks!
[1/1] KVM/arm64: Don't emulate a PMU for 32-bit guests if feature not set
commit: 8f6379e207e7d834065a080f407a60d67349d961
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list