]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Rename unsync helper and update related comments
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:56:58 +0000 (10:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:38 +0000 (18:00 -0400)
commitb47c6a4cc98433e15806af7337d6f5a90d1eec0f
tree03be858743652d364f1376ede740c753512eeea5
parentad0fc7fa8256e7c9715a8b18b511d38ff564137a
KVM: x86/mmu: Rename unsync helper and update related comments

Rename mmu_need_write_protect() to mmu_try_to_unsync_pages() and update
a variety of related, stale comments.  Add several new comments to call
out subtle details, e.g. that upper-level shadow pages are write-tracked,
and that can_unsync is false iff KVM is in the process of synchronizing
pages.

No functional change intended.

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