qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH v3 02/30] cpu: flush TB cache when loading VMSta


From: Pavel Dovgalyuk
Subject: [Qemu-devel] [RFC PATCH v3 02/30] cpu: flush TB cache when loading VMState
Date: Thu, 11 Jan 2018 11:25:04 +0300
User-agent: StGit/0.17.1-dirty

Flushing TB cache is required because TBs key in the cache may match
different code which existed in the previous state.

Signed-off-by: Pavel Dovgalyuk <address@hidden>
Signed-off-by: Maria Klimushenkova <address@hidden>
---
 exec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/exec.c b/exec.c
index 4722e52..ff31e71 100644
--- a/exec.c
+++ b/exec.c
@@ -622,6 +622,7 @@ static int cpu_common_post_load(void *opaque, int 
version_id)
        version_id is increased. */
     cpu->interrupt_request &= ~0x01;
     tlb_flush(cpu);
+    tb_flush(cpu);
 
     return 0;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]