qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qmp: synchronize state of the cpu before memory reading
@ 2014-04-09  6:52 Andrey Karpov
  2014-04-09  6:52 ` [Qemu-devel] [PATCH] " Andrey Karpov
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Karpov @ 2014-04-09  6:52 UTC (permalink / raw)
  To: qemu-devel

calling "memsave' through the qmp makes a zero filled dump. the hmp still works properly because hmp_memsave calls cpu_synchronize_state before calling qmp_memsave.

---

Andrey Karpov (1):
      synchronize state of the cpu before memory reading


 cpus.c |    1 +
 1 file changed, 1 insertion(+)

--
Signature

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

* [Qemu-devel] [PATCH] synchronize state of the cpu before memory reading
  2014-04-09  6:52 [Qemu-devel] [PATCH] qmp: synchronize state of the cpu before memory reading Andrey Karpov
@ 2014-04-09  6:52 ` Andrey Karpov
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Karpov @ 2014-04-09  6:52 UTC (permalink / raw)
  To: qemu-devel


---
 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)

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

end of thread, other threads:[~2014-04-09  6:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09  6:52 [Qemu-devel] [PATCH] qmp: synchronize state of the cpu before memory reading Andrey Karpov
2014-04-09  6:52 ` [Qemu-devel] [PATCH] " Andrey Karpov

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).