aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-10-03 16:25:59 -0700
committerSean Christopherson <seanjc@google.com>2025-10-10 14:25:26 -0700
commit3a6c08538c742624c60cb6a53dd61eb025e0d1e1 (patch)
treeac051860bc3ab44fee7f57867d94465b0517e9a4 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentKVM: guest_memfd: Allow mmap() on guest_memfd for x86 VMs with private memory (diff)
downloadlinux-3a6c08538c742624c60cb6a53dd61eb025e0d1e1.tar.gz
linux-3a6c08538c742624c60cb6a53dd61eb025e0d1e1.zip
KVM: selftests: Stash the host page size in a global in the guest_memfd test
Use a global variable to track the host page size in the guest_memfd test so that the information doesn't need to be constantly passed around. The state is purely a reflection of the underlying system, i.e. can't be set by the test and is constant for a given invocation of the test, and thus explicitly passing the host page size to individual testcases adds no value, e.g. doesn't allow testing different combinations. Making page_size a global will simplify an upcoming change to create a new guest_memfd instance per testcase. No functional change intended. Reviewed-by: Fuad Tabba <tabba@google.com> Tested-by: Fuad Tabba <tabba@google.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Ackerley Tng <ackerleytng@google.com> Tested-by: Ackerley Tng <ackerleytng@google.com> Link: https://lore.kernel.org/r/20251003232606.4070510-7-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions