Re: [PATCH] perf kvm: Fix arm64 VM-exit duration accounting
From: Arnaldo Carvalho de Melo
Date: Wed Nov 04 2026 - 19:06:09 EST
On Wed, Nov 04, 2026 at 11:17:51AM +0000, Leo Yan wrote:
> On Sat, Oct 31, 2026 at 08:01:23PM +0800, lirongqing wrote:
> > From: Li RongQing <lirongqing@xxxxxxxxx>
> >
> > Use kvm_exit as the start event and the following kvm_entry as the
> > end event for arm64 VM-exit statistics. Keep decoding ret and esr_ec
> > from the exit sample.
> >
> > Before this change, arm64 measured guest runtime as VM-exit time.
> >
> > Fixes: 1218838d68f5 ("perf kvm: Add kvm-stat for arm64")
> > Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
>
> Thanks for the fix!
>
> Reviewed-by: Leo Yan <leo.yan@xxxxxxx>
>
> Since arm64 requires the exit reason, we cannot directly use the common
> exit_event_begin()/exit_event_end() callbacks as other archs do.
Thanks, applied for v7.4.
- Arnaldo