diff options
author | Laurent Vivier <lvivier@redhat.com> | 2017-11-21 21:16:43 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-11-22 15:28:37 +1100 |
commit | 6dd836f5d32b989e18c6dda655a26f4d73a52f6a (patch) | |
tree | 2096c3297122591abe2d1b9fe03d2267d6335b8f /target/sparc/helper.c | |
parent | 6c3bc244d3cbdc5545504fda4fae0238ec36a3c0 (diff) |
ppc: fix VTB migration
Migration of a system under stress (for example, with
"stress-ng --numa 2") triggers on the destination
some kernel watchdog messages like:
NMI watchdog: BUG: soft lockup - CPU#0 stuck for 3489660870s!
NMI watchdog: BUG: soft lockup - CPU#1 stuck for 3489660884s!
This problem appears with the changes introduced by
42043e4 spapr: clock should count only if vm is running
I think this commit only triggers the problem.
Kernel computes the soft lockup duration using the
Virtual Timebase register (VTB), not using the Timebase
Register (TBR, the one 42043e4 stops).
It appears VTB is not migrated, so this patch adds it in
the list of the SPRs to migrate, and fixes the problem.
For the migration, I've tested a migration from qemu-2.8.0 and
pseries-2.8.0 to a patched master (qemu-2.11.0-rc1). The received
VTB is 0 (as is it not initialized by qemu-2.8.0), but the value
seems to be ignored by KVM and a non zero VTB is used by the kernel.
I have no explanation for that, but as the original problem appears
only with SMP system under stress I suspect some problems in KVM
(I think because VTB is shared by all threads of a core).
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/sparc/helper.c')
0 files changed, 0 insertions, 0 deletions