aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorShannon Zhao <shannon.zhao@linaro.org>2015-08-31 17:20:22 +0800
committerMarc Zyngier <marc.zyngier@arm.com>2016-02-29 18:34:19 +0000
commit3965c3ce751ab5a97618a2818eec4497576f4654 (patch)
tree882e7419a21a128eb12aa92e4dfbfc5f1c77f84e /arch/arm64/include
parentarm64: KVM: Add access handler for PMCR register (diff)
downloadlinux-dev-3965c3ce751ab5a97618a2818eec4497576f4654.tar.xz
linux-dev-3965c3ce751ab5a97618a2818eec4497576f4654.zip
arm64: KVM: Add access handler for PMSELR register
Since the reset value of PMSELR_EL0 is UNKNOWN, use reset_unknown for its reset handler. When reading PMSELR, return the PMSELR.SEL field to guest. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index 5def605b4525..57a2d8f76c2f 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -119,6 +119,7 @@ enum vcpu_sysreg {
/* Performance Monitors Registers */
PMCR_EL0, /* Control Register */
+ PMSELR_EL0, /* Event Counter Selection Register */
/* 32bit specific registers. Keep them at the end of the range */
DACR32_EL2, /* Domain Access Control Register */