Re: [PATCH v4 15/16] KVM: arm64: PMU: Simplify vcpu computation on perf overflow notification

2022-11-22 Thread Reiji Watanabe
On Sun, Nov 13, 2022 at 8:46 AM Marc Zyngier wrote: > > The way we compute the target vcpu on getting an overflow is > a bit odd, as we use the PMC array as an anchor for kvm_pmc_to_vcpu, > while we could directly compute the correct address. > > Get rid of the intermediate step and directly compu

[PATCH v4 15/16] KVM: arm64: PMU: Simplify vcpu computation on perf overflow notification

2022-11-13 Thread Marc Zyngier
The way we compute the target vcpu on getting an overflow is a bit odd, as we use the PMC array as an anchor for kvm_pmc_to_vcpu, while we could directly compute the correct address. Get rid of the intermediate step and directly compute the target vcpu. Signed-off-by: Marc Zyngier --- arch/arm6