qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] cpu: flush TB cache when loading VMState
@ 2018-01-10 13:48 Pavel Dovgalyuk
  2018-01-10 13:49 ` Paolo Bonzini
  2018-01-10 17:49 ` Richard Henderson
  0 siblings, 2 replies; 8+ messages in thread
From: Pavel Dovgalyuk @ 2018-01-10 13:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: quintela, dgilbert, maria.klimushenkova, dovgaluk, pavel.dovgaluk,
	pbonzini

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 <pavel.dovgaluk@ispras.ru>
Signed-off-by: Maria Klimushenkova <maria.klimushenkova@ispras.ru>
---
 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;
 }

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-11 13:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-10 13:48 [Qemu-devel] [PATCH] cpu: flush TB cache when loading VMState Pavel Dovgalyuk
2018-01-10 13:49 ` Paolo Bonzini
2018-01-10 17:49 ` Richard Henderson
2018-01-10 17:55   ` Dr. David Alan Gilbert
2018-01-10 18:32   ` Peter Maydell
2018-01-11 10:15     ` Paolo Bonzini
2018-01-11 10:20       ` Peter Maydell
2018-01-11 13:24         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).