arm64: KVM: Add access handler for PMSELR register
authorShannon Zhao <shannon.zhao@linaro.org>
Mon, 31 Aug 2015 09:20:22 +0000 (17:20 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:19 +0000 (18:34 +0000)
commit3965c3ce751ab5a97618a2818eec4497576f4654
tree882e7419a21a128eb12aa92e4dfbfc5f1c77f84e
parentab9468340d2bcc2a837b8b536fa819a0fc05a32e
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>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c