KVM: x86/mmu: Avoid pointer arithmetic when iterating over SPTEs
authorSean Christopherson <seanjc@google.com>
Sat, 29 Jul 2023 00:47:14 +0000 (17:47 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Aug 2023 17:48:42 +0000 (13:48 -0400)
commit242a6dd8daddbc718a3ad585ce4dce042c13e208
tree9a0fbdf95452e6b76178bb47e76e4868bf7b1a1a
parentc4f92cfe021d9263a554f8adcd7c49ef52e485bb
KVM: x86/mmu: Avoid pointer arithmetic when iterating over SPTEs

Replace the pointer arithmetic used to iterate over SPTEs in
is_empty_shadow_page() with more standard interger-based iteration.

No functional change intended.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20230729004722.1056172-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c