aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2012-05-02 04:50:38 -0400
committerMarcelo Tosatti <mtosatti@redhat.com>2012-05-02 17:36:21 -0400
commite726b1bd64b0b8945c171d2d4bf749fba9fc0800 (patch)
tree2b37ed5f306d87dfec2bc832db29be7bbaabf027 /arch/s390
parent8c3f61e2ddb6c1845704fd8ef1b999ecd2e4725c (diff)
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/s390')
-rw-r--r--arch/s390/kvm/kvm-s390.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index fd98914a36f1..e5e3800b0125 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)
136 case KVM_CAP_SYNC_REGS: 136 case KVM_CAP_SYNC_REGS:
137 r = 1; 137 r = 1;
138 break; 138 break;
139 case KVM_CAP_NR_VCPUS:
140 case KVM_CAP_MAX_VCPUS:
141 r = KVM_MAX_VCPUS;
142 break;
139 default: 143 default:
140 r = 0; 144 r = 0;
141 } 145 }