]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb1b0b7ad6d7d38969b4264943142e6aa3f1ade2
tree44a2274b59336bd2036e1a3f07701fe5069288a4
parent649b6fa812fabd7290eb31a74e028dfc4619c3cb
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