Re: [PATCH 09/18] KVM: ARM64: Add reset and access handlers for PMXEVCNTR_EL0 register

2015-07-17 Thread Christoffer Dall
On Mon, Jul 06, 2015 at 10:17:39AM +0800, shannon.z...@linaro.org wrote: > From: Shannon Zhao > > Since the reset value of PMXEVTYPER_EL0 is UNKNOWN, use reset_unknown > for its reset handler. Add access handler which emulates writing and > reading PMXEVTYPER_EL0 register. When reading PMXEVCNTR_

[PATCH 09/18] KVM: ARM64: Add reset and access handlers for PMXEVCNTR_EL0 register

2015-07-05 Thread shannon . zhao
From: Shannon Zhao Since the reset value of PMXEVTYPER_EL0 is UNKNOWN, use reset_unknown for its reset handler. Add access handler which emulates writing and reading PMXEVTYPER_EL0 register. When reading PMXEVCNTR_EL0, call perf_event_read_value to get the count value of the perf event. Signed-o