]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Consolidate logic to atomically install a new TDP MMU page table
authorDavid Matlack <dmatlack@google.com>
Wed, 19 Jan 2022 23:07:28 +0000 (23:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:39 +0000 (13:50 -0500)
commit32572e3fddc0e0e7ebb98e719c0e787420f167e3
tree5f70e3661f9a8de819ddce9bbeb508f29d73861a
parent03575cf5dcd14cc4b9bd8e47cd7410f34c84ab40
KVM: x86/mmu: Consolidate logic to atomically install a new TDP MMU page table

Consolidate the logic to atomically replace an SPTE with an SPTE that
points to a new page table into a single helper function. This will be
used in a follow-up commit to split huge pages, which involves replacing
each huge page SPTE with an SPTE that points to a page table.

Opportunistically drop the call to trace_kvm_mmu_get_page() in
kvm_tdp_mmu_map() since it is redundant with the identical tracepoint in
tdp_mmu_alloc_sp().

No functional change intended.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-8-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c