]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Drop the intermediate "transient" __kvm_sync_page()
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:56:57 +0000 (10:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:38 +0000 (18:00 -0400)
commitad0fc7fa8256e7c9715a8b18b511d38ff564137a
tree2020f2e0455185f23cdec2e66bc287f809f6708a
parent555eb002ecf1a89dc4c98d409b027699e1826ccd
KVM: x86/mmu: Drop the intermediate "transient" __kvm_sync_page()

Nove the kvm_unlink_unsync_page() call out of kvm_sync_page() and into
it's sole caller, and fold __kvm_sync_page() into kvm_sync_page() since
the latter becomes a pure pass-through.  There really should be no reason
for code to do a complete sync of a shadow page outside of the full
kvm_mmu_sync_roots(), e.g. the one use case that creeped in turned out to
be flawed and counter-productive.

Drop the stale comment about @sp->gfn needing to be write-protected, as
it directly contradicts the kvm_mmu_get_page() usage.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622175739.3610207-13-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c