OSDN Git Service

KVM: MMU: inline set_spte in FNAME(sync_page)
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)
commit4758d47e0d685c5e2ee999c355c52d25210c2fbc
tree366ec7187f89ff6836d63eb36f4d05d8ad727407
parentd786c7783b01a01346f77e8e785030b5096c191a
KVM: MMU: inline set_spte in FNAME(sync_page)

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,
FNAME(sync_page) already has a struct kvm_mmu_page *, but set_spte had to
fish it back out of sptep's private page data.

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