[PATCH v2 0/2] target/loongarch: Fix vmstate_tlb migration issue

Bibo Mao posted 2 patches 6 days, 2 hours ago
target/loongarch/machine.c | 39 ++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
[PATCH v2 0/2] target/loongarch: Fix vmstate_tlb migration issue
Posted by Bibo Mao 6 days, 2 hours ago
This reverts commit 9e771d547b72d1eecd962725fad7508af3b97183.
The old commit breaks migration of a loongarch "virt-11.1" machine from
QEMU 11.1 to current head-of-git.

Also this patch discards field of vmstate_tlb during migration since TLB
can reconstruct from scratch.

---
v1 ... v2:
  1. Add test steps to resolve the issue in the comments of patch 1
  2. Add Resolves tag in the comments of patch 1
---
Bibo Mao (2):
  Revert "target/loongarch: Remove TLB entry in vmstate"
  target/loongarch: Discard vmstate_tlb field

 target/loongarch/machine.c | 39 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)


base-commit: e9fa1f66f0d47c74b6766e1b8b87ad7c2a9394d5
-- 
2.54.0
Re: [PATCH v2 0/2] target/loongarch: Fix vmstate_tlb migration issue
Posted by Karl Mehltretter 5 days, 21 hours ago
On Tue, 17 Nov 2026 at 10:04, Bibo Mao <maobibo@loongson.cn> wrote:
> This reverts commit 9e771d547b72d1eecd962725fad7508af3b97183.
> The old commit breaks migration of a loongarch "virt-11.1" machine from
> QEMU 11.1 to current head-of-git.
>
> Also this patch discards field of vmstate_tlb during migration since TLB
> can reconstruct from scratch.

With this series applied on master (97c88c61d45d), migrating a paused
virt-11.1 machine under TCG from QEMU 11.1.3 to master and from master
back to 11.1.3 both exit 0.

Tested with patch 1/2 alone and with both patches applied on Debian 13 x86_64.

Tested-by: Karl Mehltretter <kmehltretter@gmail.com>

Thanks,
Karl