summaryrefslogtreecommitdiff
path: root/target-arm/kvm32.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2015-04-01 17:57:30 +0100
committerPeter Maydell <peter.maydell@linaro.org>2015-04-01 17:57:30 +0100
commit1a1753f747544d20b999d466b1017721668bfb82 (patch)
treefb5bb74ffef8b7b0b403cbc8a506a2520174c513 /target-arm/kvm32.c
parent7847f9ea9fce15a9ecfb62ab72c1e84ff516b0db (diff)
downloadqemu-1a1753f747544d20b999d466b1017721668bfb82.tar.gz
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>
Diffstat (limited to 'target-arm/kvm32.c')
-rw-r--r--target-arm/kvm32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-arm/kvm32.c b/target-arm/kvm32.c
index 94030d1acb..49b6babc05 100644
--- a/target-arm/kvm32.c
+++ b/target-arm/kvm32.c
@@ -356,6 +356,8 @@ int kvm_arch_put_registers(CPUState *cs, int level)
return EINVAL;
}
+ kvm_arm_sync_mpstate_to_kvm(cpu);
+
return ret;
}
@@ -427,5 +429,7 @@ int kvm_arch_get_registers(CPUState *cs)
*/
write_list_to_cpustate(cpu);
+ kvm_arm_sync_mpstate_to_qemu(cpu);
+
return 0;
}