projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c3f61e
)
KVM: s390: implement KVM_CAP_NR/MAX_VCPUS
author
Christian Borntraeger
<borntraeger@de.ibm.com>
Wed, 2 May 2012 08:50:38 +0000
(10:50 +0200)
committer
Marcelo Tosatti
<mtosatti@redhat.com>
Wed, 2 May 2012 21:36:21 +0000
(18:36 -0300)
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>
arch/s390/kvm/kvm-s390.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/kvm/kvm-s390.c
b/arch/s390/kvm/kvm-s390.c
index fd98914a36f160a2230906c00234674a09f199ba..e5e3800b0125c3b904bdc5943857cec755f3999f 100644
(file)
--- 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;
}