OSDN Git Service

KVM: selftests: Remove useless shifts when creating guest page tables
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:45:08 +0000 (00:45 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:58:55 +0000 (16:58 -0800)
commit91add12d384c650d243b8ccdee1f2ddea3c9a85d
tree3bd6b406ff8df70b19c9a6ce26b4eb76ad937c16
parent751f280017b697d98936618a21ca3defdc03a9f4
KVM: selftests: Remove useless shifts when creating guest page tables

Remove the pointless shift from GPA=>GFN and immediately back to
GFN=>GPA when creating guest page tables.  Ignore the other walkers
that have a similar pattern for the moment, they will be converted
to use virt_get_pte() in the near future.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221006004512.666529-4-seanjc@google.com
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/lib/x86_64/processor.c