]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: Use plain "struct page" pointer instead of single-entry array
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:28 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:57:59 +0000 (12:57 -0400)
commit12fac89950996e556a99eb16f0359307ed4c2566
treebe9069f038acc5fdf8dab2d2b673a67ac8cec353
parenta629ef9518f5a59f79908d049144721cb2dd5b74
KVM: Use plain "struct page" pointer instead of single-entry array

Use a single pointer instead of a single-entry array for the struct page
pointer in hva_to_pfn_fast().  Using an array makes the code unnecessarily
annoying to read and update.

No functional change intended.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
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-27-seanjc@google.com>
virt/kvm/kvm_main.c