Re: [PATCH v2 0/3] KVM: x86: Convert nested ops to static calls
From: Huang, Kai
Date: Tue Jul 14 2026 - 18:43:53 EST
On Tue, 2026-07-14 at 11:41 -0700, Sean Christopherson wrote:
> On Tue, 30 Jun 2026 13:28:25 -0700, Sean Christopherson wrote:
> > Convert nested_ops to use static calls, mainly because the nested ops are
> > bizarrely different than the x86 and PMU ops, and the kvm_x86_ops.nested_ops->
> > code is an eyesore (IMO). I haven't bothered to do any performance testing.
> >
> > v2: In patch 1, keep the get_evmcs_version != NULL check in kvm_get_hv_cpuid(),
> > then convert it to a RET0 call in patch 2. [Sashiko]
> >
> > [...]
>
> Applied to kvm-x86 misc, thanks!
>
> [1/3] KVM: x86: Reject nested CAP enablement if nested virtualization is disabled
> https://github.com/kvm-x86/linux/commit/b65699be2c60
> [2/3] KVM: x86: Add static calls for nested virtualization ops
> https://github.com/kvm-x86/linux/commit/4b9819a50674
> [3/3] KVM: x86: Move nested_ops out of kvm_x86_ops, to global kvm_nested_ops
> https://github.com/kvm-x86/linux/commit/2c56780d8ec7
>
I saw patch 2/3 has no tags from others.
FWIW, this series LGTM:
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>