KVM: x86/mmu: Co-locate code for setting various SPTE masks
authorSean Christopherson <seanjc@google.com>
Thu, 25 Feb 2021 20:47:41 +0000 (12:47 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:47 +0000 (04:43 -0400)
commitd6b87f256591cf6be78825db6a09a5218666e539
tree8dd2ee1d59dcb95bf03c7ab97ad2a459d5e60b7d
parentec761cfd353f3b37072cda095d245c155c7cdb0f
KVM: x86/mmu: Co-locate code for setting various SPTE masks

Squish all the code for (re)setting the various SPTE masks into one
location.  With the split code, it's not at all clear that the masks are
set once during module initialization.  This will allow a future patch to
clean up initialization of the masks without shuffling code all over
tarnation.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210225204749.1512652-17-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/vmx/vmx.c