Re: [PATCH v2 0/3] KVM: x86: Convert nested ops to static calls
From: Sean Christopherson
Date: Tue Jul 14 2026 - 15:39:34 EST
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
--
https://github.com/kvm-x86/linux/tree/next