Commit 305a62d849 for qemu.org

commit 305a62d8493aece79a523572177eee7ca44e5a85
Author: Bibo Mao <maobibo@loongson.cn>
Date:   Tue Nov 17 10:04:58 2026 +0800

    target/loongarch: Discard vmstate_tlb field

    TLB in destination can reconstruct from scratch, it is not necessary
    to migrate the TLB entries. Here set return value as false in function
    tlb_needed(), so that vmstate_tlb field is discard during migration.

    Signed-off-by: Bibo Mao <maobibo@loongson.cn>

diff --git a/target/loongarch/machine.c b/target/loongarch/machine.c
index 957dc2ed71..a91700cbff 100644
--- a/target/loongarch/machine.c
+++ b/target/loongarch/machine.c
@@ -178,7 +178,11 @@ static const VMStateDescription vmstate_pmu = {
 #if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY)
 static bool tlb_needed(void *opaque)
 {
-    return tcg_enabled();
+    /*
+     * Not needed, will remove field of vmstate_tlb when virt-11.1 is
+     * deprecated.
+     */
+    return false;
 }

 /* TLB state */