]> www.infradead.org Git - users/dwmw2/linux.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>
Fri, 26 Feb 2021 13:36:09 +0000 (08:36 -0500)
commit796e7cfa14da13df0e780273ce1b93d89bc2ec35
tree1fd4a886da296e5543b85b3d45e4ee882466b669
parenteac0a2417394aaacef4704a301d44694c2a5e9a5
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