diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2012-05-02 10:50:38 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-05-02 18:36:21 -0300 |
commit | e726b1bd64b0b8945c171d2d4bf749fba9fc0800 (patch) | |
tree | 2b37ed5f306d87dfec2bc832db29be7bbaabf027 /arch | |
parent | 8c3f61e2ddb6c1845704fd8ef1b999ecd2e4725c (diff) | |
download | op-kernel-dev-e726b1bd64b0b8945c171d2d4bf749fba9fc0800.zip op-kernel-dev-e726b1bd64b0b8945c171d2d4bf749fba9fc0800.tar.gz |
KVM: s390: implement KVM_CAP_NR/MAX_VCPUS
Let userspace know the number of max and supported cpus for kvm on s390.
Return KVM_MAX_VCPUS (currently 64) for both values.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index fd98914..e5e3800 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -136,6 +136,10 @@ int kvm_dev_ioctl_check_extension(long ext) case KVM_CAP_SYNC_REGS: r = 1; break; + case KVM_CAP_NR_VCPUS: + case KVM_CAP_MAX_VCPUS: + r = KVM_MAX_VCPUS; + break; default: r = 0; } |