]> git.karo-electronics.de Git - mv-sheeva.git/commit
drivers: hv: Increase the number of VCPUs supported in the guest
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 3 Feb 2012 00:56:51 +0000 (16:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 16:32:44 +0000 (08:32 -0800)
commit14c1bf8a8920f36f6e0603a2ff920b48eec14387
tree8e461c20788b2939d98f3898fd4a8e4fa634337c
parent2640335438ca4d7b139e114dae5f0d80e740e106
drivers: hv: Increase the number of VCPUs supported in the guest

The current code arbirarily limited the number of CPUs the guest could have.
Change that so that we can support the maximum number of CPUs the guest can
support. While we use NR_CPUS to size the per-cpu state all we are allocating
based on NR_CPUS are the  pointers to per-cpu state that will be allocatted in
the context of the initializing CPU. This patch triggers a checkpatch warning
for the usage of NR_CPU and since all we are allocating a couple of pointers
per CPU, it should be ok.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv.c
drivers/hv/hyperv_vmbus.h