diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2023-08-08 14:19:52 +1000 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2023-09-06 11:19:33 +0200 |
commit | 578912ad7312ececb9a88b4c38d406dda640346d (patch) | |
tree | f08269af71a20f92513f771879c312fa08f8ffea /hw/ppc/mac_oldworld.c | |
parent | febb71d543a8f747b2f8aaf0182d0a385c6a02c3 (diff) | |
download | qemu-578912ad7312ececb9a88b4c38d406dda640346d.zip qemu-578912ad7312ececb9a88b4c38d406dda640346d.tar.gz qemu-578912ad7312ececb9a88b4c38d406dda640346d.tar.bz2 |
target/ppc: Migrate DECR SPR
TCG does not maintain the DEC reigster in the SPR array, so it does get
migrated. TCG also needs to re-start the decrementer timer on the
destination machine.
Load and store the decrementer into the SPR when migrating. This works
for the level-triggered (book3s) decrementer, and should be compatible
with existing KVM machines that do keep the DEC value there.
This fixes lost decrementer interrupt on migration that can cause
hangs, as well as other problems including record-replay bugs.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/ppc/mac_oldworld.c')
0 files changed, 0 insertions, 0 deletions