diff options
| author | Sean Christopherson <seanjc@google.com> | 2025-01-10 16:50:47 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-02-14 07:02:12 -0800 |
| commit | 9b56532b8a593c3a3cbbd8b17fb87ffb4beee436 (patch) | |
| tree | 9fcc6762c2961752636fa0403fd1c3a063a5b25d /tools/testing/selftests/kvm/include | |
| parent | KVM: selftests: Get VM's binary stats FD when opening VM (diff) | |
| download | linux-9b56532b8a593c3a3cbbd8b17fb87ffb4beee436.tar.gz linux-9b56532b8a593c3a3cbbd8b17fb87ffb4beee436.zip | |
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>
Diffstat (limited to 'tools/testing/selftests/kvm/include')
| -rw-r--r-- | tools/testing/selftests/kvm/include/kvm_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/kvm_util.h b/tools/testing/selftests/kvm/include/kvm_util.h index 9a64bab42f89..d4670b5962ab 100644 --- a/tools/testing/selftests/kvm/include/kvm_util.h +++ b/tools/testing/selftests/kvm/include/kvm_util.h @@ -966,6 +966,8 @@ static inline struct kvm_vm *vm_create_shape_with_one_vcpu(struct vm_shape shape struct kvm_vcpu *vm_recreate_with_one_vcpu(struct kvm_vm *vm); +void kvm_set_files_rlimit(uint32_t nr_vcpus); + void kvm_pin_this_task_to_pcpu(uint32_t pcpu); void kvm_print_vcpu_pinning_help(void); void kvm_parse_vcpu_pinning(const char *pcpus_string, uint32_t vcpu_to_pcpu[], |
