« Previous | Next » 

Revision 670436ce

ID670436ced08738802e15764039d03ab0dbab2bf3

Added by Andrew Jones over 10 years ago

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 <>
Acked-by: Marcelo Tosatti <>
Signed-off-by: Gleb Natapov <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences