]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Use 'end' param in TDP MMU's test_age_gfn()
authorSean Christopherson <seanjc@google.com>
Fri, 26 Feb 2021 01:03:27 +0000 (17:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:31 +0000 (04:43 -0400)
commit0c85c326b36cf0f030c6a8a9f39d6d5fa796f23a
treeca5b0ae7b1c394ec894430ffc9e0f2563f2cff2a
parent5ab3b870c77fa39b2b074b3c9b560fd5b17ccc26
KVM: x86/mmu: Use 'end' param in TDP MMU's test_age_gfn()

Use the @end param when aging a GFN instead of hardcoding the walk to a
single GFN.  Unlike tdp_set_spte(), which simply cannot work with more
than one GFN, aging multiple GFNs would not break, though admittedly it
would be weird.  Be nice to the casual reader and don't make them puzzle
out why the end GFN is unused.

No functional change intended.

Cc: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210226010329.1766033-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c