Re: [PATCH v2 1/4] KVM: x86: refactor req_immediate_exit logic

From: Maxim Levitsky
Date: Thu Sep 28 2023 - 06:42:06 EST


> On 9/24/23 14:44, Maxim Levitsky wrote:
> > + if (vcpu->arch.req_immediate_exit)
> > kvm_make_request(KVM_REQ_EVENT, vcpu);
> > - static_call(kvm_x86_request_immediate_exit)(vcpu);
> > - }
>
> Is it enough for your use case to add a new tracepoint here, instead of
> adding req_immediate_exit to both entry and exit?


I prefer if possible to keep the req_immediate_exit field on entry only,
as it is pretty much an extension to the injected event data which I also
added to kvm_entry() tracepoint.

Best regards,
Maxim Levitsky

>
> Paolo
>