From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
qemu-ppc@nongnu.org, Alexander Graf <agraf@suse.de>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/3] target-ppc: Add support for dumping guest memory using qemu gdb server
Date: Tue, 20 Aug 2013 13:49:45 +0530 [thread overview]
Message-ID: <874naklqou.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <52121951.80407@suse.de>
Andreas Färber <afaerber@suse.de> writes:
> Hi Aneesh,
>
> Am 19.08.2013 14:29, schrieb Aneesh Kumar K.V:
>> This patch series implement support for dumping guest memory using qemu gdb server.
>
> I had a quick look through but will leave in-depth review to Alex or
> Anthony.
>
> Do you plan to implement dumping guest memory via QMP, too?
Are you looking at memsave command ? That would fail before. This patch
series should fix that too. For memsave to fail we need the below patch
diff --git a/cpus.c b/cpus.c
index 0f65e76..3340150 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1309,7 +1309,10 @@ void qmp_memsave(int64_t addr, int64_t size, const char *filename,
l = sizeof(buf);
if (l > size)
l = size;
- cpu_memory_rw_debug(cpu, addr, buf, l, 0);
+ if (cpu_memory_rw_debug(cpu, addr, buf, l, 0) != 0) {
+ error_set(errp, QERR_IO_ERROR);
+ goto exit;
+ }
if (fwrite(buf, 1, l, f) != l) {
error_set(errp, QERR_IO_ERROR);
goto exit;
next prev parent reply other threads:[~2013-08-20 8:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-19 12:29 [Qemu-devel] [PATCH 0/3] target-ppc: Add support for dumping guest memory using qemu gdb server Aneesh Kumar K.V
2013-08-19 12:29 ` [Qemu-devel] [PATCH 1/3] target-ppc: Update slb array with correct index values Aneesh Kumar K.V
2013-08-19 12:42 ` Andreas Färber
2013-08-19 12:50 ` Andreas Färber
2013-08-19 12:29 ` [Qemu-devel] [PATCH 2/3] target-ppc: Use #define instead of opencoding SLB valid bit Aneesh Kumar K.V
2013-08-19 12:44 ` Andreas Färber
2013-08-19 12:29 ` [Qemu-devel] [PATCH 3/3] target-ppc: Fix page table lookup with kvm enabled Aneesh Kumar K.V
2013-08-19 13:07 ` Andreas Färber
2013-08-19 13:10 ` [Qemu-devel] [PATCH 0/3] target-ppc: Add support for dumping guest memory using qemu gdb server Andreas Färber
2013-08-20 8:19 ` Aneesh Kumar K.V [this message]
2013-08-20 12:49 ` Andreas Färber
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=874naklqou.fsf@linux.vnet.ibm.com \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/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).