Re: [PATCH 0/5] KVM: x86/mmu: TDP MMU fixes for 6.2

From: Robert Hoo
Date: Wed Dec 14 2022 - 07:01:49 EST


On Tue, 2022-12-13 at 03:30 +0000, Sean Christopherson wrote:
> Fix three fatal TDP MMU bugs introduced in 6.2,

introduced in 6.1? or earlier?

> harden related code,
> and clean up kvm_tdp_mmu_map() to eliminate the need for gotos.
>
> Sean Christopherson (5):
> KVM: x86/mmu: Don't attempt to map leaf if target TDP MMU SPTE is
> frozen
> KVM: x86/mmu: Map TDP MMU leaf SPTE iff target level is reached
> KVM: x86/mmu: Re-check under lock that TDP MMU SP hugepage is
> disallowed
> KVM: x86/mmu: Don't install TDP MMU SPTE if SP has unexpected level
> KVM: x86/mmu: Move kvm_tdp_mmu_map()'s prolog and epilog to its
> caller
>
> arch/x86/kvm/mmu/mmu.c | 9 +++++++-
> arch/x86/kvm/mmu/mmu_internal.h | 1 -
> arch/x86/kvm/mmu/tdp_mmu.c | 39 +++++++++++++++--------------
> ----
> 3 files changed, 26 insertions(+), 23 deletions(-)
>
>
> base-commit: 51229fd7872f82af07498aef5c79ad51baf81ea0

I cannot find this base commit in my tree, where I just pulled to
latest queue yesterday. But find this series can be applied to this
latest queue as well.

commit 9d75a3251adfbcf444681474511b58042a364863 (origin/queue, queue)
Author: Sean Christopherson <seanjc@xxxxxxxxxx>
Date: Wed Dec 7 00:09:59 2022 +0000

KVM: x86: Add proper ReST tables for userspace MSR exits/flags