From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXane-0002jv-4H for qemu-devel@nongnu.org; Tue, 08 Apr 2014 14:31:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXanZ-0004rw-5T for qemu-devel@nongnu.org; Tue, 08 Apr 2014 14:31:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXanY-0004rk-SQ for qemu-devel@nongnu.org; Tue, 08 Apr 2014 14:31:05 -0400 Message-ID: <53444066.4010407@redhat.com> Date: Tue, 08 Apr 2014 12:31:02 -0600 From: Eric Blake MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="N6rXeEo8PA32W0WwmlesdaTw53vUSO3ae" Subject: Re: [Qemu-devel] [PATCH 1/1] monitor: Add pmemload command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Baojun Wang , qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --N6rXeEo8PA32W0WwmlesdaTw53vUSO3ae Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04/08/2014 11:17 AM, Baojun Wang wrote: > Hi list, >=20 > 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 debu= g > which gdb cannot do directly. >=20 > 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'} } > =20 > ## > +# @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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --N6rXeEo8PA32W0WwmlesdaTw53vUSO3ae Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTREBmAAoJEKeha0olJ0NqK9kIAJdCWN5MSKpRpHaS/nISox1m 2a0VvA+eBgC6BsAEPnue97YYYM/xMdfOORai9s1oqBhYmMhN+k3vpKFhbkCrLxlX Y4OdmZ1uAuOp9Nz7PnVL3AoWUK4BzlMWb79a9Y8GL7D9CfGHdH1QyIH8Wl5F/jnt 3eXAnEIqYZRnkbZm73x0UPw0Ygly3n4QHf6UAR+s9Ywjb+fDkc51yA3gsmrmcKRL kNzhQm8Vs0ftwV3l+aOKPEuz7zv4Z2TqYNca/t9i2ZINMcvGKXiKlHSF4szw0Cds uMV3V7czVG0SjVwH79mpeSEvG7AV/P8o7vqsBB6p1XO04PZR2YWm7Iix9yOWAAs= =K96r -----END PGP SIGNATURE----- --N6rXeEo8PA32W0WwmlesdaTw53vUSO3ae--