arm64: KVM: Add access handler for PMCR register
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 18 Jun 2015 08:01:53 +0000 (16:01 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:19 +0000 (18:34 +0000)
commitab9468340d2bcc2a837b8b536fa819a0fc05a32e
treed9e22dc177d720d7ddaa6b403a44b57d907abfdc
parent04fe472615d0216ec0bdd66d9f3f1812b642ada6
arm64: KVM: Add access handler for PMCR register

Add reset handler which gets host value of PMCR_EL0 and make writable
bits architecturally UNKNOWN except PMCR.E which is zero. Add an access
handler for PMCR.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c
include/kvm/arm_pmu.h