Re: [PATCH 2/3] KVM: x86: Register Processor Trace interrupt hook iff PT enabled in guest
From: Sean Christopherson
Date: Tue Aug 24 2021 - 10:11:19 EST
On Tue, Aug 24, 2021, Alexander Shishkin wrote:
> Sean Christopherson <seanjc@xxxxxxxxxx> writes:
>
> > diff --git a/arch/x86/kvm/pmu.h b/arch/x86/kvm/pmu.h
> > index 0e4f2b1fa9fb..b06dbbd7eeeb 100644
> > --- a/arch/x86/kvm/pmu.h
> > +++ b/arch/x86/kvm/pmu.h
> > @@ -41,6 +41,7 @@ struct kvm_pmu_ops {
> > void (*reset)(struct kvm_vcpu *vcpu);
> > void (*deliver_pmi)(struct kvm_vcpu *vcpu);
> > void (*cleanup)(struct kvm_vcpu *vcpu);
> > + void (*handle_intel_pt_intr)(void);
>
> What's this one for?
Doh, the remnants of one of my explorations trying to figure out the least gross
way to conditionally register the handling. I'll get it removed.
Good eyeballs, thanks!