linux-stable/arch/s390/kvm
Vitaly Kuznetsov 82cc27eff4 KVM: s390: Cap KVM_CAP_NR_VCPUS by num_online_cpus()
KVM_CAP_NR_VCPUS is a legacy advisory value which on other architectures
return num_online_cpus() caped by KVM_CAP_NR_VCPUS or something else
(ppc and arm64 are special cases). On s390, KVM_CAP_NR_VCPUS returns
the same as KVM_CAP_MAX_VCPUS and this may turn out to be a bad
'advice'. Switch s390 to returning caped num_online_cpus() too.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Message-Id: <20211116163443.88707-6-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-11-18 02:12:15 -05:00
..
diag.c KVM: s390: restore old debugfs names 2021-07-27 16:59:00 -04:00
gaccess.c KVM: s390: Function documentation fixes 2021-09-28 17:56:54 +02:00
gaccess.h KVM: s390: split kvm_s390_real_to_abs 2021-03-24 10:30:30 +01:00
guestdbg.c KVM: s390: Add memcg accounting to KVM allocations 2020-12-10 13:36:05 +01:00
intercept.c KVM: s390: pv: avoid stalls when making pages secure 2021-10-25 09:20:39 +02:00
interrupt.c s390 updates for the 5.16 merge window 2021-11-06 14:48:06 -07:00
irq.h KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
kvm-s390.c KVM: s390: Cap KVM_CAP_NR_VCPUS by num_online_cpus() 2021-11-18 02:12:15 -05:00
kvm-s390.h KVM: s390: Add a routine for setting userspace CPU state 2021-10-25 09:20:39 +02:00
Makefile KVM: stats: Add fd-based API to read binary stats data 2021-06-24 11:47:57 -04:00
priv.c KVM: s390: Fix handle_sske page fault handling 2021-10-27 07:55:40 +02:00
pv.c KVM: s390: pv: avoid stalls for kvm_s390_pv_init_vm 2021-10-25 09:20:39 +02:00
sigp.c KVM: s390: Simplify SIGP Set Arch handling 2021-10-25 09:20:39 +02:00
trace-s390.h
trace.h
vsie.c KVM: s390: Enable specification exception interpretation 2021-08-27 18:35:20 +02:00