diff options
| author | Maxiwell S. Garcia | 2019-07-11 21:47:02 +0200 |
|---|---|---|
| committer | David Gibson | 2019-08-21 09:17:11 +0200 |
| commit | d14f33976282a8744ca1bf1d64e73996c145aa3f (patch) | |
| tree | f7ebdeab615939ac1aa5b0ab5ba4583876236ec3 /target/ppc | |
| parent | spapr_pci: Allow 2MiB and 16MiB IOMMU pagesizes by default (diff) | |
| download | qemu-d14f33976282a8744ca1bf1d64e73996c145aa3f.tar.gz qemu-d14f33976282a8744ca1bf1d64e73996c145aa3f.tar.xz qemu-d14f33976282a8744ca1bf1d64e73996c145aa3f.zip | |
migration: Do not re-read the clock on pre_save in case of paused guest
Re-read the timebase before migrate was ported from x86 commit:
6053a86fe7bd: kvmclock: reduce kvmclock difference on migration
The clock move makes the guest knows about the paused time between
the stop and migrate commands. This is an issue in an already-paused
VM because some side effects, like process stalls, could happen
after migration.
So, this patch checks the runstate of guest in the pre_save handler and
do not re-reads the timebase in case of paused state (cold migration).
Signed-off-by: Maxiwell S. Garcia <maxiwell@linux.ibm.com>
Message-Id: <20190711194702.26598-1-maxiwell@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc')
| -rw-r--r-- | target/ppc/cpu-qom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index a2f202f021..5769fb78a9 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -201,6 +201,7 @@ typedef struct PowerPCCPUClass { typedef struct PPCTimebase { uint64_t guest_timebase; int64_t time_of_the_day_ns; + bool runstate_paused; } PPCTimebase; extern const VMStateDescription vmstate_ppc_timebase; |
