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 <[email protected]>
---
 target/loongarch/machine.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 */
-- 
2.54.0


Reply via email to