mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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:
6053a86fe7
: 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>
This commit is contained in:
parent
d15d4ad64f
commit
d14f339762
2 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue