]> Git Repo - linux.git/commit
KVM: X86: Change kvm_sync_page() to return true when remote flush is needed
authorLai Jiangshan <[email protected]>
Sat, 18 Sep 2021 00:56:32 +0000 (08:56 +0800)
committerPaolo Bonzini <[email protected]>
Thu, 30 Sep 2021 08:27:09 +0000 (04:27 -0400)
commitc3e5e415bc1e6c36315edf616c3329816e9f7393
tree80a6792fed9053a3dd8bd9b24e2dc72169c5ccea
parent06152b2dec3e264e9c8d2150d075d50faead8110
KVM: X86: Change kvm_sync_page() to return true when remote flush is needed

Currently kvm_sync_page() returns true when there is any present spte.
But the return value is ignored in the callers.

Changing kvm_sync_page() to return true when remote flush is needed and
changing mmu->sync_page() not to directly flush can combine and reduce
remote flush requests.

Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <20210918005636[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h
This page took 0.052683 seconds and 4 git commands to generate.