aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorShannon Zhao <shannon.zhao@linaro.org>2015-06-18 16:01:53 +0800
committerMarc Zyngier <marc.zyngier@arm.com>2016-02-29 18:34:19 +0000
commitab9468340d2bcc2a837b8b536fa819a0fc05a32e (patch)
treed9e22dc177d720d7ddaa6b403a44b57d907abfdc /arch/arm64/include
parentarm64: KVM: Define PMU data structure for each vcpu (diff)
downloadlinux-dev-ab9468340d2bcc2a837b8b536fa819a0fc05a32e.tar.xz
linux-dev-ab9468340d2bcc2a837b8b536fa819a0fc05a32e.zip
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>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index fb57fdc6a433..5def605b4525 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -117,6 +117,9 @@ enum vcpu_sysreg {
MDSCR_EL1, /* Monitor Debug System Control Register */
MDCCINT_EL1, /* Monitor Debug Comms Channel Interrupt Enable Reg */
+ /* Performance Monitors Registers */
+ PMCR_EL0, /* Control Register */
+
/* 32bit specific registers. Keep them at the end of the range */
DACR32_EL2, /* Domain Access Control Register */
IFSR32_EL2, /* Instruction Fault Status Register */