KVM: MMU: inline set_spte in mmu_set_spte
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Aug 2021 11:22:32 +0000 (07:22 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 07:44:54 +0000 (03:44 -0400)
commitd786c7783b01a01346f77e8e785030b5096c191a
tree6586ba08a2c2ad5d7af5f8c75b57df91a2d22d04
parent888104138cb8e88c3825efc07b0000c195346387
KVM: MMU: inline set_spte in mmu_set_spte

Since the two callers of set_spte do different things with the results,
inlining it actually makes the code simpler to reason about.  For example,
mmu_set_spte looks quite like tdp_mmu_map_handle_target_level, but the
similarity is hidden by set_spte.

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