All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Baojun Wang <wangbj@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] monitor: Add pmemload command
Date: Tue, 08 Apr 2014 12:31:02 -0600	[thread overview]
Message-ID: <53444066.4010407@redhat.com> (raw)
In-Reply-To: <CAC+a-TbbQoN7MAgr-mZL8Eni5SL+wRJzYx6KRoCWgfXKO1i6hA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]

On 04/08/2014 11:17 AM, Baojun Wang wrote:
> Hi list,
> 
> Is it possible to add a monitor command ``pmemload'' as pmemsave?
> I found this could be useful to have qemu-softmmu as a cross debugger
> (launch with -s -S command line option), then if we can have a command to
> load guest physical memory, we can use cross gdb to do some target debug
> which gdb cannot do directly.
> 
> Attachment is a trivial patch add pmemload monitor command.

We prefer patches sent inline via 'git send-email', as they are easier
to reply to.


> +++ b/qapi-schema.json
> @@ -1708,6 +1708,26 @@
>    'data': {'val': 'int', 'size': 'int', 'filename': 'str'} }
>  
>  ##
> +# @pmemload:
> +#
> +# Load a portion of guest physical memory from a file.
> +#
> +# @val: the physical address of the guest to start from
> +#
> +# @size: the size of memory region to save

s/save/load/ ?

> +#
> +# @filename: the file to load the memory from as binary data
> +#
> +# Returns: Nothing on success
> +#
> +# Since: 2.0

You've missed 2.0; at the earliest, this would be 2.1.

> +#
> +# Notes: Errors were not reliably returned until 1.1

This note is bogus copy and paste - since the command is new to 2.1,
there is no unreliable error handling in 1.1.

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

      parent reply	other threads:[~2014-04-08 18:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-08 17:17 [Qemu-devel] [PATCH 1/1] monitor: Add pmemload command Baojun Wang
2014-04-08 18:17 ` Baojun Wang
2014-04-08 18:31   ` Eric Blake
2014-04-08 18:31 ` Eric Blake [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=53444066.4010407@redhat.com \
    --to=eblake@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wangbj@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.