OSDN Git Service

KVM: arm64: PMU: Allow ID_AA64DFR0_EL1.PMUver to be set from userspace
authorMarc Zyngier <maz@kernel.org>
Sun, 13 Nov 2022 16:38:27 +0000 (16:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 19 Nov 2022 12:56:39 +0000 (12:56 +0000)
commit60e651ff1f48bfdf8fec80d35510bd89ecf8c766
tree30d73e8fbb35b56fd311fd4263e5e22e44a4d682
parent3d0dba5764b94308b8c4257ad64e383f11ce0c92
KVM: arm64: PMU: Allow ID_AA64DFR0_EL1.PMUver to be set from userspace

Allow userspace to write ID_AA64DFR0_EL1, on the condition that only
the PMUver field can be altered and be at most the one that was
initially computed for the guest.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221113163832.3154370-12-maz@kernel.org
arch/arm64/kvm/sys_regs.c