From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RESEND #3][PATCH] Report unmapped addresses in memory_dump
Date: Mon, 18 Aug 2008 09:01:00 -0500 [thread overview]
Message-ID: <48A9809C.4040108@codemonkey.ws> (raw)
In-Reply-To: <48A91FF4.4070509@web.de>
Jan Kiszka wrote:
> Instead of dumping incorrect (ie. previously read) data, report the
> invalid virtual address to the user.
>
Applied. Thanks.
Sorry it took three resends.
Regards,
Anthony Liguori
> Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
> ---
> monitor.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> Index: b/monitor.c
> ===================================================================
> --- a/monitor.c
> +++ b/monitor.c
> @@ -594,7 +594,10 @@ static void memory_dump(int count, int f
> env = mon_get_cpu();
> if (!env)
> break;
> - cpu_memory_rw_debug(env, addr, buf, l, 0);
> + if (cpu_memory_rw_debug(env, addr, buf, l, 0) < 0) {
> + term_printf(" Cannot access memory\n");
> + break;
> + }
> }
> i = 0;
> while (i < l) {
>
>
>
prev parent reply other threads:[~2008-08-18 14:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-08 14:32 [Qemu-devel] [PATCH] Report unmapped addresses in memory_dump Jan Kiszka
2008-07-01 6:43 ` [Qemu-devel] [RESEND][PATCH] " Jan Kiszka
2008-07-13 12:43 ` [Qemu-devel] [RESEND #2][PATCH] " Jan Kiszka
2008-08-18 7:08 ` [Qemu-devel] [RESEND #3][PATCH] " Jan Kiszka
2008-08-18 14:01 ` Anthony Liguori [this message]
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=48A9809C.4040108@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@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).