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)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:25:35 +0000 (13:25 -0700)
commit6fc430b9528c76c158af39f1865afadabc5a2fcb
treee7f8cbc48f64ce132168c5f163d76544889e3d1e
parentbd29df2755d4bf1e1cfe691dd1f4583e8681a2bb
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>
(cherry picked from commit 14c1bf8a8920f36f6e0603a2ff920b48eec14387)

Signed-off-by: Andy Whitcroft <apw@canonical.com>
drivers/hv/hv.c
drivers/hv/hyperv_vmbus.h