From: Eric Blake <eblake@redhat.com>
To: hw.claudio@gmail.com, Luiz Capitulino <lcapitulino@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Gonglei <arei.gonglei@huawei.com>,
Claudio Fontana <claudio.fontana@huawei.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC v3] monitor: add memory search commands s, sp
Date: Mon, 16 Mar 2015 08:45:31 -0600 [thread overview]
Message-ID: <5506EC8B.1020300@redhat.com> (raw)
In-Reply-To: <1426501911-1402-1-git-send-email-hw.claudio@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]
On 03/16/2015 04:31 AM, hw.claudio@gmail.com wrote:
> From: Claudio Fontana <claudio.fontana@huawei.com>
>
> usage is similar to the commands x, xp.
>
> Example with string: looking for "ELF" header in memory:
>
> (qemu) s/1000000cb 0x40001000 "ELF"
> searching memory area [0000000040001000-00000000400f5240]
> 0000000040090001
> (qemu) x/20b 0x40090000
> 0000000040090000: '\x7f' 'E' 'L' 'F' '\x02' '\x01' '\x01' '\x03'
> 0000000040090008: '\x00' '\x00' '\x00' '\x00' '\x00' '\x00' '\x00' '\x00'
> 0000000040090010: '\x02' '\x00' '\xb7' '\x00'
>
> Example with value: looking for 64bit variable value 0x990088
>
> (qemu) s/1000000xg 0xffff900042000000 0x990088
> searching memory area [ffff900042000000-ffff9000427a1200]
> ffff9000424b3000
> ffff9000424c1000
>
> Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
> ---
> hmp-commands.hx | 28 ++++++++++++
> monitor.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 168 insertions(+)
>
> Hello, looking for some comments on whether the addition of this
> command is welcome, and whether the syntax chosen is acceptable,
> or how it can made better.
Do you want to provide a QMP counterpart? In general, we are reluctant
to add new HMP functionality that cannot also be accessed via QMP.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-03-16 14:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 10:31 [Qemu-devel] [RFC v3] monitor: add memory search commands s, sp hw.claudio
2015-03-16 10:38 ` Patchew Tool
2015-03-16 14:45 ` Eric Blake [this message]
2015-03-16 14:56 ` Claudio Fontana
2015-03-16 15:01 ` Paolo Bonzini
2015-03-16 15:54 ` Claudio Fontana
2015-03-16 15:58 ` Eric Blake
2015-03-16 16:29 ` Paolo Bonzini
2015-03-18 13:30 ` Claudio Fontana
2015-03-27 16:19 ` Claudio Fontana
2015-03-30 14:54 ` Paolo Bonzini
2015-04-20 22:01 ` Luiz Capitulino
2015-04-21 14:25 ` Claudio Fontana
2015-04-21 14:28 ` Paolo Bonzini
2015-04-21 15:12 ` Claudio Fontana
2015-04-21 14:35 ` Luiz Capitulino
2015-04-21 14:47 ` Paolo Bonzini
2015-04-23 8:56 ` Claudio Fontana
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=5506EC8B.1020300@redhat.com \
--to=eblake@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=claudio.fontana@huawei.com \
--cc=hw.claudio@gmail.com \
--cc=lcapitulino@redhat.com \
--cc=peter.maydell@linaro.org \
--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).