diff options
| author | Ritesh Harjani (IBM) <ritesh.list@gmail.com> | 2026-10-06 15:58:39 +0530 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-10-13 12:05:15 -0700 |
| commit | 5527310b4d199518eb61340db84107c653ed1abf (patch) | |
| tree | cf0acb10415416d1866b3d5c12fef042753a52f3 /scripts/basic/split-include.c | |
| parent | 2bc2c4a8105f3e3bce457cc6446cf3a13e98a827 (diff) | |
| download | linux-5527310b4d199518eb61340db84107c653ed1abf.tar.gz linux-5527310b4d199518eb61340db84107c653ed1abf.zip | |
KVM: selftests: Add helper for checking if running on powerpc pseries LPAR
PowerPC's PAPR L0 does not guarantee H_GUEST_CREATE/H_GUEST_CREATE_VCPU
hcalls to create upto MAX_VCPUS or hundreds of VMs, this is due to
limited resouces at L0 for guest management space. This helper allows us
to skip such tests which creates a lot of VMs/VCPUs, when we are running
nested.
Note that there is no easy way to differentiate between running nested
on PowerNV v/s kvm-on-powervm case. So we use a common helper to detect
any nested case.
The helper is added to the common kvm_util header file to avoid
sprinkling multiple #ifdef __powerpc64__ everywhere.
Suggested-by: Sean Christopherson <seanjc@google.com>
Tested-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Gautam Menghani <gautam@linux.ibm.com>
Tested-by: Gautam Menghani <gautam@linux.ibm.com>
Acked-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/294c0fcd19d6b00626e230985cf9906f98934d1c.1791280439.git.ritesh.list@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
