KVM: selftests: Fix build regression by using accessor function
authorTyler Hicks <code@tyhicks.com>
Fri, 23 Dec 2022 00:09:58 +0000 (18:09 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:44 +0000 (13:14 +0100)
commit5e6923350830a25870fbd7faaff72711d4857764
tree9b84a34ebf87b81a8b54404c6b08ce1a1f5748c4
parent6215904fe29537067ff938fae1732b204abf8ea7
KVM: selftests: Fix build regression by using accessor function

Fix the stable backport of commit 05c2224d4b04 ("KVM: selftests: Fix
number of pages for memory slot in memslot_modification_stress_test"),
which caused memslot_modification_stress_test.c build failures due to
trying to access private members of struct kvm_vm.

v6.0 commit b530eba14c70 ("KVM: selftests: Get rid of
kvm_util_internal.h") and some other commits got rid of the accessors
and made all of the KVM data structures public. Keep using the accessors
in older kernels.

There is no corresponding upstream commit for this change.

Signed-off-by: Tyler Hicks (Microsoft) <code@tyhicks.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kvm/memslot_modification_stress_test.c