Re: [PATCH 12/28] KVM: x86: make translate_nested_gpa vendor-specific

Paolo Bonzini
2026-05-01T03:53:51Z

On Thu, Apr 30, 2026 at 8:53 PM Sean Christopherson <seanjc@google.com> wrote:
> > struct kvm_x86_nested_ops svm_nested_ops = {
> > .leave_nested = svm_leave_nested,
> > + .translate_nested_gpa = svm_translate_nested_gpa,
> > .is_exception_vmexit = nested_svm_is_exception_vmexit,
> > .check_events = svm_check_nested_events,
> > .triple_fault = nested_svm_triple_fault,
>
> Paolo, do you have any objection to adding static_call() support for nested_ops?
> I vaguely recall you not wanting to do so. But we're reaching the point where
> quite a few callbacks are in relative hot paths.

No, I don't think I ever objected to it. In fact I do believe it's
slightly ugly.

Paolo