]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Dedup logic for detecting TLB flushes on leaf SPTE changes
authorSean Christopherson <seanjc@google.com>
Fri, 11 Oct 2024 02:10:47 +0000 (19:10 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 30 Oct 2024 22:25:37 +0000 (15:25 -0700)
commitc9b625625ba37d4b493f5fc878d8fce3d38dab2d
treee345f738abda89cc556bdf639e43062dff660159
parent51192ebdd145f4808f440de5cbc6426afcaa0564
KVM: x86/mmu: Dedup logic for detecting TLB flushes on leaf SPTE changes

Now that the shadow MMU and TDP MMU have identical logic for detecting
required TLB flushes when updating SPTEs, move said logic to a helper so
that the TDP MMU code can benefit from the comments that are currently
exclusive to the shadow MMU.

No functional change intended.

Link: https://lore.kernel.org/r/20241011021051.1557902-16-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.h
arch/x86/kvm/mmu/tdp_mmu.c