arm64: KVM: Add access handler for PMOVSSET and PMOVSCLR register
authorShannon Zhao <shannon.zhao@linaro.org>
Tue, 8 Sep 2015 07:03:26 +0000 (15:03 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:20 +0000 (18:34 +0000)
commit76d883c4e6401b98ea26d40c437ff62719a517ad
treedf3f11cb7289442406f7b184acbcbbc9255f472b
parent9db52c78cd43c7fe69992cb7d57cffa991b36ced
arm64: KVM: Add access handler for PMOVSSET and PMOVSCLR register

Since the reset value of PMOVSSET and PMOVSCLR is UNKNOWN, use
reset_unknown for its reset handler. Add a handler to emulate writing
PMOVSSET or PMOVSCLR register.

When writing non-zero value to PMOVSSET, the counter and its interrupt
is enabled, kick this vcpu to sync PMU interrupt.

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
virt/kvm/arm/pmu.c