]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Adjust number of files rlimit for all "standard" VMs
authorSean Christopherson <seanjc@google.com>
Sat, 11 Jan 2025 00:50:47 +0000 (16:50 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Feb 2025 15:02:12 +0000 (07:02 -0800)
commit9b56532b8a593c3a3cbbd8b17fb87ffb4beee436
tree9fcc6762c2961752636fa0403fd1c3a063a5b25d
parentea7179f99514f8119c6327d7c3b84a439a273533
KVM: selftests: Adjust number of files rlimit for all "standard" VMs

Move the max vCPUs test's RLIMIT_NOFILE adjustments to common code, and
use the new helper to adjust the resource limit for non-barebones VMs by
default.  x86's recalc_apic_map_test creates 512 vCPUs, and a future
change will open the binary stats fd for all vCPUs, which will put the
recalc APIC test above some distros' default limit of 1024.

Link: https://lore.kernel.org/r/20250111005049.1247555-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/kvm_create_max_vcpus.c
tools/testing/selftests/kvm/lib/kvm_util.c