Home
last modified time | relevance | path

Searched hist:"051 ff581ce70e822729e9474941f3c206cbf7436" (Results 1 – 2 of 2) sorted by relevance

/linux/arch/arm64/kvm/
H A DMakefilediff 051ff581ce70e822729e9474941f3c206cbf7436 Tue Dec 08 08:29:06 CET 2015 Shannon Zhao <shannon.zhao@linaro.org> arm64: KVM: Add access handler for event counter register

These kind of registers include PMEVCNTRn, PMCCNTR and PMXEVCNTR which
is mapped to PMEVCNTRn.

The access handler translates all aarch32 register offsets to aarch64
ones and uses vcpu_sys_reg() to access their values to avoid taking care
of big endian.

When reading these registers, return the sum of register value and the
value perf event counts.

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>
H A Dsys_regs.cdiff 051ff581ce70e822729e9474941f3c206cbf7436 Tue Dec 08 08:29:06 CET 2015 Shannon Zhao <shannon.zhao@linaro.org> arm64: KVM: Add access handler for event counter register

These kind of registers include PMEVCNTRn, PMCCNTR and PMXEVCNTR which
is mapped to PMEVCNTRn.

The access handler translates all aarch32 register offsets to aarch64
ones and uses vcpu_sys_reg() to access their values to avoid taking care
of big endian.

When reading these registers, return the sum of register value and the
value perf event counts.

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>