]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Invert @can_unsync and renamed to @synchronizing
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:08 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:54:42 +0000 (12:54 -0400)
commit63c5754472e6e2c2f57dc1d864d340eb351d5271
tree682152653bbe7c7a2cb57a84f649befd228c77e5
parent6385d01eec16e34d1d3e01b5522ef9b2d2ebcc5c
KVM: x86/mmu: Invert @can_unsync and renamed to @synchronizing

Invert the polarity of "can_unsync" and rename the parameter to
"synchronizing" to allow a future change to set the Accessed bit if KVM
is synchronizing an existing SPTE.  Querying "can_unsync" in that case is
nonsensical, as the fact that KVM can't unsync SPTEs doesn't provide any
justification for setting the Accessed bit.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-7-seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/mmu_internal.h
arch/x86/kvm/mmu/paging_tmpl.h
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/mmu/spte.h
arch/x86/kvm/mmu/tdp_mmu.c