+1
−1
arch/arm64/kvm/pmu.c
0 → 100644
+45
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
In order to effeciently switch events_{guest,host} perf counters at
guest entry/exit we add bitfields to kvm_cpu_context for guest and host
events as well as accessors for updating them.
A function is also provided which allows the PMU driver to determine
if a counter should start counting when it is enabled. With exclude_host,
we may only start counting when entering the guest.
Signed-off-by:
Andrew Murray <andrew.murray@arm.com>
Signed-off-by:
Marc Zyngier <marc.zyngier@arm.com>