diff options
author | Shannon Zhao <shannon.zhao@linaro.org> | 2016-02-26 19:29:19 +0800 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-02-29 18:34:21 +0000 |
commit | b02386eb7dac7555a208d81aef2a0e5c6f0f8085 (patch) | |
tree | a3a06d842810134ac014da93fe78a161918cf2d1 /sound/synth | |
parent | d692b8ad6ec4814ddd9a37ce5c9c9d971e741088 (diff) |
arm64: KVM: Add PMU overflow interrupt routing
When calling perf_event_create_kernel_counter to create perf_event,
assign a overflow handler. Then when the perf event overflows, set the
corresponding bit of guest PMOVSSET register. If this counter is enabled
and its interrupt is enabled as well, kick the vcpu to sync the
interrupt.
On VM entry, if there is counter overflowed and interrupt level is
changed, inject the interrupt with corresponding level. On VM exit, sync
the interrupt level as well if it has been changed.
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'sound/synth')
0 files changed, 0 insertions, 0 deletions