[9.0.2] PPC: incorrect name filed in vmstate_tlbemb_entry, broken snapshot replay
Host environment
- Operating system: Linux Mint 21.1
- OS/kernel version: Linux 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC
- Architecture: x86_64
- QEMU flavor: qemu-system-ppc
- QEMU version: 9.0.2
- QEMU command line:
qemu-system-ppc -kernel hello.elf -display none -serial stdio -icount 1,rr=record,rrfile=main.bin,rrsnapshot=init -drive file=empty.qcow2,if=none,id=rr -M bamboo
qemu-system-ppc -kernel hello.elf -display none -serial stdio -icount 1,rr=replay,rrfile=main.bin,rrsnapshot=init -drive file=empty.qcow2,if=none,id=rr -M bamboo
Emulated/Virtualized environment
- Operating system: Bare metal hello world
- OS/kernel version: None
- Architecture: PowerPC e500mc (Book-E)
Description of problem
Fix commit: a90db158 When using the Record/replay feature on ppc emulation (qemu-system-ppc binary), an error occurred during loading:
qemu-system-ppc: Missing section footer for cpu
qemu-system-ppc: Error -22 while loading VM state
qemu-system-ppc: Could not load snapshot for icount replay
I found a typo that led to this error
more info in https://lists.nongnu.org/archive/html/qemu-devel/2024-08/msg02951.html
Steps to reproduce
- Run bare metal example from the attachment with the first command-line to create snapshot.
- Run bare metal example from the attachment with the second command-line to replay snapshot.
Additional information
Use this example ppc-e500.zip
Edited by Arman