]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: move kvm_cpus into struct kvm
authorSasha Levin <levinsasha928@gmail.com>
Wed, 5 Sep 2012 08:31:46 +0000 (10:31 +0200)
committerPekka Enberg <penberg@kernel.org>
Wed, 5 Sep 2012 13:22:36 +0000 (16:22 +0300)
commit06e66483d54e58eca70abc52ca74f1489226cdbe
treefb641d074e804e6904b67cfddbcf95a22e26c114
parent89f40a7d4beacc5d0d81b832f541a64c1b14ac3a
kvm tools: move kvm_cpus into struct kvm

There's no reason the array of guest specific vcpus is global. Move it into
struct kvm.

Also split up arch specific vcpu init from the generic code and call it from
the kvm_cpu initializer.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
13 files changed:
tools/kvm/Makefile
tools/kvm/builtin-run.c
tools/kvm/hw/i8042.c
tools/kvm/hw/vesa.c
tools/kvm/include/kvm/framebuffer.h
tools/kvm/include/kvm/kvm-cpu.h
tools/kvm/include/kvm/kvm.h
tools/kvm/kvm-cpu.c
tools/kvm/kvm.c
tools/kvm/powerpc/kvm-cpu.c
tools/kvm/term.c
tools/kvm/ui/sdl.c
tools/kvm/x86/kvm-cpu.c