kvm: x86: Save/restore KVM-specific CPU states
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 2 May 2009 00:18:38 +0000 (02:18 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 22 May 2009 15:50:34 +0000 (10:50 -0500)
commitf8d926e9cd96e52ebcfd9ffdeab83c0d5e6b9622
tree510d530bbec3c739cc23fcc248fe188738fd0b28
parentd33a1810d7f558dd1d486bc84f1cf8f96c982e2d
kvm: x86: Save/restore KVM-specific CPU states

Save and restore all so far neglected KVM-specific CPU states. Handling
the TSC stabilizes migration in KVM mode. The interrupt_bitmap and
mp_state are currently unused, but will become relevant for in-kernel
irqchip support. By including proper saving/restoring already, we avoid
having to increment CPU_SAVE_VERSION later on once again.

v2:
 - initialize mp_state runnable (for the boot CPU)

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kvm-all.c
kvm.h
target-i386/cpu.h
target-i386/kvm.c
target-i386/machine.c