KVM: mmu: Separate updating a PTE from kvm_set_pte_rmapp
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 14:17:17 +0000 (10:17 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 22:16:59 +0000 (18:16 -0400)
commitcb3eedab453911ca177c1e2e44add0b7fe4a6f09
tree44a2274b59336bd2036e1a3f07701fe5069288a4
parent799a4190e7341b9bb24549245f2b8f7d11c65360
KVM: mmu: Separate updating a PTE from kvm_set_pte_rmapp

The TDP MMU's own function for the changed-PTE notifier will need to be
update a PTE in the exact same way as the shadow MMU.  Rather than
re-implementing this logic, factor the SPTE creation out of kvm_set_pte_rmapp.

Extracted out of a patch by Ben Gardon. <bgardon@google.com>

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c