Re: [PATCH] perf kvm: Fix arm64 VM-exit duration accounting

From: Leo Yan

Date: Wed Nov 04 2026 - 06:26:43 EST


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.