aboutsummaryrefslogtreecommitdiff
path: root/scripts/feature_to_c.sh
diff options
context:
space:
mode:
authorAndrew Jones <drjones@redhat.com>2013-08-23 15:24:37 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-09-20 12:37:52 +0200
commit670436ced08738802e15764039d03ab0dbab2bf3 (patch)
treebfac151f632c85b3f787f7a9748c0a1f7af123ad /scripts/feature_to_c.sh
parent97577fd4c31777780a22b77afa4590086ac962c7 (diff)
kvm: warn if num cpus is greater than num recommended
The comment in kvm_max_vcpus() states that it's using the recommended procedure from the kernel API documentation to get the max number of vcpus that kvm supports. It is, but by always returning the maximum number supported. The maximum number should only be used for development purposes. qemu should check KVM_CAP_NR_VCPUS for the recommended number of vcpus. This patch adds a warning if a user specifies a number of cpus between the recommended and max. Signed-off-by: Andrew Jones <drjones@redhat.com> Acked-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'scripts/feature_to_c.sh')
0 files changed, 0 insertions, 0 deletions