]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - arch/arm/kvm/arm.c
ARM: KVM: iterate over all CPUs for CPU compatibility check
authorAndre Przywara <andre.przywara@linaro.org>
Wed, 17 Apr 2013 10:52:01 +0000 (12:52 +0200)
committerChristoffer Dall <cdall@cs.columbia.edu>
Mon, 29 Apr 2013 05:23:23 +0000 (22:23 -0700)
commitd4e071ce6acf8d5eddb7615a953193a8b0ad7c38
tree13dd45233d5d1cf0a579629128ab8aa386552456
parentdf759217386fcff9c5e45547d1578270fd592a1b
ARM: KVM: iterate over all CPUs for CPU compatibility check

kvm_target_cpus() checks the compatibility of the used CPU with
KVM, which is currently limited to ARM Cortex-A15 cores.
However by calling it only once on any random CPU it assumes that
all cores are the same, which is not necessarily the case (for example
in Big.Little).

[ I cut some of the commit message and changed the formatting of the
  code slightly to pass checkpatch and look more like the rest of the
  kvm/arm init code - Christoffer ]

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/kvm/arm.c