projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KVM: x86: Drop arbitrary KVM_SOFT_MAX_VCPUS
[linux-2.6-microblaze.git]
/
arch
/
x86
/
kvm
/
x86.c
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index
375ef23
..
5c479ae
100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-4176,7
+4176,7
@@
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
r = !static_call(kvm_x86_cpu_has_accelerated_tpr)();
break;
case KVM_CAP_NR_VCPUS:
- r =
KVM_SOFT_MAX_VCPUS
;
+ r =
num_online_cpus()
;
break;
case KVM_CAP_MAX_VCPUS:
r = KVM_MAX_VCPUS;