From: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
To: qemu-devel@nongnu.org
Cc: quintela@redhat.com, dgilbert@redhat.com,
maria.klimushenkova@ispras.ru, dovgaluk@ispras.ru,
pavel.dovgaluk@ispras.ru, pbonzini@redhat.com
Subject: [Qemu-devel] [PATCH] cpu: flush TB cache when loading VMState
Date: Wed, 10 Jan 2018 16:48:46 +0300 [thread overview]
Message-ID: <20180110134846.12940.99993.stgit@pasha-VirtualBox> (raw)
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;
}
next reply other threads:[~2018-01-10 13:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 13:48 Pavel Dovgalyuk [this message]
2018-01-10 13:49 ` [Qemu-devel] [PATCH] cpu: flush TB cache when loading VMState 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180110134846.12940.99993.stgit@pasha-VirtualBox \
--to=pavel.dovgaluk@ispras.ru \
--cc=dgilbert@redhat.com \
--cc=dovgaluk@ispras.ru \
--cc=maria.klimushenkova@ispras.ru \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).