target-arm: kvm: save/restore mp state
commit1a1753f747544d20b999d466b1017721668bfb82
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 1 Apr 2015 16:57:30 +0000 (1 17:57 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 1 Apr 2015 16:57:30 +0000 (1 17:57 +0100)
treefb5bb74ffef8b7b0b403cbc8a506a2520174c513
parent7847f9ea9fce15a9ecfb62ab72c1e84ff516b0db
target-arm: kvm: save/restore mp state

This adds the saving and restore of the current Multi-Processing state
of the machine. While the KVM_GET/SET_MP_STATE API exposes a number of
potential states for x86 we only use two for ARM. Either the process is
running or not. We then save this state into the cpu_powered TCG state
to avoid changing the serialisation format.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/kvm.c
target-arm/kvm32.c
target-arm/kvm64.c
target-arm/kvm_arm.h