[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] target-ppc: Add @cpu_dt_id into migration stream
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-devel] [PATCH] target-ppc: Add @cpu_dt_id into migration stream |
Date: |
Thu, 27 Mar 2014 13:41:11 +1100 |
This should prevent the destination guest from misbehaving when
the threads number is different in "-smp" command.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
---
target-ppc/cpu-qom.h | 2 +-
target-ppc/machine.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/target-ppc/cpu-qom.h b/target-ppc/cpu-qom.h
index 5eb56ea..59d0d4a 100644
--- a/target-ppc/cpu-qom.h
+++ b/target-ppc/cpu-qom.h
@@ -91,7 +91,7 @@ struct PowerPCCPU {
/*< public >*/
CPUPPCState env;
- int cpu_dt_id;
+ uint32_t cpu_dt_id;
};
static inline PowerPCCPU *ppc_env_get_cpu(CPUPPCState *env)
diff --git a/target-ppc/machine.c b/target-ppc/machine.c
index 834297e..92529ca 100644
--- a/target-ppc/machine.c
+++ b/target-ppc/machine.c
@@ -500,7 +500,7 @@ static const VMStateInfo vmstate_pvr = {
const VMStateDescription vmstate_ppc_cpu = {
.name = "cpu",
- .version_id = 5,
+ .version_id = 6,
.minimum_version_id = 5,
.minimum_version_id_old = 4,
.load_state_old = cpu_load_old,
@@ -537,6 +537,8 @@ const VMStateDescription vmstate_ppc_cpu = {
VMSTATE_UINT64_EQUAL(env.insns_flags, PowerPCCPU),
VMSTATE_UINT64_EQUAL(env.insns_flags2, PowerPCCPU),
VMSTATE_UINT32_EQUAL(env.nb_BATs, PowerPCCPU),
+ VMSTATE_UINT32_EQUAL(cpu_dt_id, PowerPCCPU),
+
VMSTATE_END_OF_LIST()
},
.subsections = (VMStateSubsection []) {
--
1.8.4.rc4
- [Qemu-devel] [PATCH] target-ppc: Add @cpu_dt_id into migration stream,
Alexey Kardashevskiy <=