From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXmN3-0004ih-T7 for qemu-devel@nongnu.org; Wed, 09 Apr 2014 02:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXmMv-000199-Bs for qemu-devel@nongnu.org; Wed, 09 Apr 2014 02:52:29 -0400 Received: from forward3l.mail.yandex.net ([84.201.143.136]:46565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXmMv-00018v-5k for qemu-devel@nongnu.org; Wed, 09 Apr 2014 02:52:21 -0400 Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward3l.mail.yandex.net (Yandex) with ESMTP id 0B2321500FAA for ; Wed, 9 Apr 2014 10:52:19 +0400 (MSK) Received: from smtp2o.mail.yandex.net (localhost [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id 6B75F36A1848 for ; Wed, 9 Apr 2014 10:52:19 +0400 (MSK) From: Andrey Karpov Date: Wed, 09 Apr 2014 10:52:18 +0400 Message-ID: <20140409065218.22927.70351.stgit@ndd> In-Reply-To: <20140409065121.22927.52213.stgit@ndd> References: <20140409065121.22927.52213.stgit@ndd> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] synchronize state of the cpu before memory reading List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --- cpus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpus.c b/cpus.c index 1104d61..4c53747 100644 --- a/cpus.c +++ b/cpus.c @@ -1417,6 +1417,7 @@ void qmp_memsave(int64_t addr, int64_t size, const char *filename, return; } + cpu_synchronize_state(cpu); while (size != 0) { l = sizeof(buf); if (l > size)