KVM: selftests: Clean up misnomers in xen_shinfo_test
authorMichal Luczaj <mhal@rbox.co>
Mon, 6 Feb 2023 20:24:30 +0000 (21:24 +0100)
committerSean Christopherson <seanjc@google.com>
Wed, 8 Feb 2023 14:38:48 +0000 (06:38 -0800)
commit6c77ae716d546d71b21f0c9ee7d405314a3f3f9e
tree13c0fb1f4d5831da7724f4fdb46db373806f16e2
parent7ae69d7087a9a4d014e11b5328a49091cc1682f8
KVM: selftests: Clean up misnomers in xen_shinfo_test

As discussed[*], relabel the poorly named structs to align with the
current KVM nomenclature.

Old names are a leftover from before commit 52491a38b2c2 ("KVM:
Initialize gfn_to_pfn_cache locks in dedicated helper"), which i.a.
introduced kvm_gpc_init() and renamed kvm_gfn_to_pfn_cache_init()/
_destroy() to kvm_gpc_activate()/_deactivate(). Partly in an effort
to avoid implying that the cache really is destroyed/freed.

While at it, get rid of #define GPA_INVALID, which being used as a GFN,
is not only misnamed, but also unnecessarily reinvents a UAPI constant.

No functional change intended.

[*] https://lore.kernel.org/r/Y5yZ6CFkEMBqyJ6v@google.com

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://lore.kernel.org/r/20230206202430.1898057-1-mhal@rbox.co
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c