Re: [PATCH v3 06/16] perf/core: Rework guest callbacks to prepare for static_call support

From: Paolo Bonzini
Date: Wed Sep 22 2021 - 02:29:08 EST


On 22/09/21 02:05, Sean Christopherson wrote:
To prepare for using static_calls to optimize perf's guest callbacks,
replace ->is_in_guest and ->is_user_mode with a new multiplexed hook
->state, tweak ->handle_intel_pt_intr to play nice with being called when
there is no active guest, and drop "guest" from ->is_in_guest.

... from ->get_guest_ip. Code-wise,

Reviewed-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>