Re: [PATCH v2] KVM: x86/mmu: Only allocate shadowed translation cache for sp->role.level <= KVM_MAX_HUGEPAGE_LEVEL

From: Sean Christopherson
Date: Tue Jun 04 2024 - 19:40:08 EST


On Sat, 11 May 2024 11:46:37 +0800, Hou Wenlong wrote:
> Only the indirect SP with sp->role.level <= KVM_MAX_HUGEPAGE_LEVEL might
> have leaf gptes, so allocation of shadowed translation cache is needed
> only for it. Then, it can use sp->shadowed_translation to determine
> whether to use the information in the shadowed translation cache or not.
> Also, extend the WARN in FNAME(sync_spte)() to ensure that this won't
> break shadow_mmu_get_sp_for_split().
>
> [...]

Applied to kvm-x86 mmu, thanks!

[1/1] KVM: x86/mmu: Only allocate shadowed translation cache for sp->role.level <= KVM_MAX_HUGEPAGE_LEVEL
https://github.com/kvm-x86/linux/commit/9ecc1c119b28

--
https://github.com/kvm-x86/linux/tree/next