KVM: ia64: dynamic nr online cpus
authorJes Sorensen <jes@sgi.com>
Wed, 21 Jan 2009 14:16:43 +0000 (15:16 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:07 +0000 (11:03 +0200)
commit934d534f8a5a39e20d5682b3a3a45ff351706b59
treef1e6ce5330028a9aa942623c6706af8ca2ce2130
parentb7e6e4d3602c738b8f61225d9f4514945df52f07
KVM: ia64: dynamic nr online cpus

Account for number of online cpus and use that in loops iterating over
the list of vpus instead of scanning the full array unconditionally.
This patch is a building block to facilitate allowing to bump up
the size of MAX_VCPUS significantly.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Acked-by : Xiantao Zhang  <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/include/asm/kvm_host.h
arch/ia64/kvm/kvm-ia64.c
arch/ia64/kvm/vcpu.c