From: Simon Ruderich <simon@ruderich.org>
To: Markus Armbruster <armbru@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Peter Crosthwaite <crosthwaitepeter@gmail.com>,
qemu-devel@nongnu.org,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v3 5/5] qmp: add pmemload command
Date: Thu, 16 Aug 2018 10:13:20 +0200 [thread overview]
Message-ID: <20180816081320.GA16148@ruderich.org> (raw)
In-Reply-To: <87pnyig92q.fsf@dusky.pond.sub.org>
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
On Thu, Aug 16, 2018 at 07:43:41AM +0200, Markus Armbruster wrote:
>> On Fri, Aug 10, 2018 at 11:36:51AM +0100, Dr. David Alan Gilbert wrote:
>>> Also, had you considered rearranging and making them optional,
>>> for example if you do:
>>>
>>> val:l,filename:F,offset:i?,size:i?
>>>
>>> I think that would mean you can do the fairly obvious:
>>> pmemload addr "myfile"
>>>
>>> with the assumption that loads the whole file.
>>
>> This would deviate from pmemsave/memsave, but feels more natural.
>
> The different order or arguments in HMP is somewhat ugly. Okay if it
> makes the command more pleasant to use. Up to you and Dave to decide.
>
> If you decide to deviate, consider
>
> filename:F,address:l,size:i?,offset:i?
From what I understand we can't have optional arguments in the
middle. Would you prefer mandatory size/offset parameters in HMP
or optional parameters but inconsistent with pmemsave/memsave?
Both works for me.
Regards
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-08-16 8:13 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-10 21:24 [Qemu-devel] [PATCH] qmp: add pmemload command Simon Ruderich
2018-04-10 21:27 ` no-reply
2018-04-10 21:33 ` Eric Blake
2018-04-11 7:36 ` Simon Ruderich
2018-04-11 13:02 ` Eric Blake
2018-04-12 12:48 ` Simon Ruderich
2018-04-12 12:50 ` [Qemu-devel] [PATCH v2 1/5] cpus: correct coding style in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-04-12 12:50 ` [Qemu-devel] [PATCH v2 2/5] cpus: convert qmp_memsave/qmp_pmemsave to use qemu_open Simon Ruderich
2018-04-17 20:58 ` Eric Blake
2018-04-12 12:50 ` [Qemu-devel] [PATCH v2 3/5] cpus: use size_t in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-04-17 20:58 ` Eric Blake
2018-04-12 12:50 ` [Qemu-devel] [PATCH v2 4/5] hmp: don't truncate size in hmp_memsave/hmp_pmemsave Simon Ruderich
2018-04-17 20:59 ` Eric Blake
2018-04-12 12:50 ` [Qemu-devel] [PATCH v2 5/5] qmp: add pmemload command Simon Ruderich
2018-04-17 21:18 ` Eric Blake
2018-04-22 9:47 ` Simon Ruderich
2018-04-23 19:46 ` Eric Blake
2018-04-24 14:50 ` Simon Ruderich
2018-04-17 20:56 ` [Qemu-devel] [PATCH v2 1/5] cpus: correct coding style in qmp_memsave/qmp_pmemsave Eric Blake
2018-04-22 9:19 ` Simon Ruderich
2018-05-21 15:36 ` [Qemu-devel] [PATCH v3 0/5] qmp: add pmemload command Simon Ruderich
2018-05-21 15:36 ` [Qemu-devel] [PATCH v3 1/5] cpus: correct coding style in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-05-21 15:36 ` [Qemu-devel] [PATCH v3 2/5] cpus: convert qmp_memsave/qmp_pmemsave to use qemu_open Simon Ruderich
2018-05-21 15:36 ` [Qemu-devel] [PATCH v3 3/5] cpus: use size_t in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-05-21 15:36 ` [Qemu-devel] [PATCH v3 4/5] hmp: don't truncate size in hmp_memsave/hmp_pmemsave Simon Ruderich
2018-05-21 15:36 ` [Qemu-devel] [PATCH v3 5/5] qmp: add pmemload command Simon Ruderich
2018-08-09 16:46 ` Eric Blake
2018-08-14 14:16 ` Simon Ruderich
2018-08-10 10:36 ` Dr. David Alan Gilbert
2018-08-14 14:18 ` Simon Ruderich
2018-08-14 15:49 ` Markus Armbruster
2018-08-14 19:03 ` Simon Ruderich
2018-08-15 4:22 ` Markus Armbruster
2018-08-15 12:41 ` Simon Ruderich
2018-08-15 14:29 ` Markus Armbruster
2018-08-15 15:46 ` Simon Ruderich
2018-08-16 5:43 ` Markus Armbruster
2018-08-16 8:13 ` Simon Ruderich [this message]
2018-08-16 8:26 ` Markus Armbruster
2018-08-16 8:38 ` Simon Ruderich
2018-08-14 19:30 ` Dr. David Alan Gilbert
2018-08-09 14:43 ` [Qemu-devel] [PATCH v3 0/5] " Simon Ruderich
2018-08-10 6:06 ` Markus Armbruster
2018-08-14 14:16 ` Simon Ruderich
2018-08-14 15:27 ` Markus Armbruster
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 0/7] qmp/hmp: " Simon Ruderich
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 1/7] cpus: correct coding style in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-08-16 19:56 ` Eric Blake
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 2/7] cpus: convert qmp_memsave/qmp_pmemsave to use qemu_open Simon Ruderich
2018-08-16 19:58 ` Eric Blake
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 3/7] cpus: use size_t in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-08-16 19:58 ` Eric Blake
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 4/7] hmp: use l for size argument in memsave/pmemsave Simon Ruderich
2018-08-16 18:51 ` Dr. David Alan Gilbert
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 5/7] hmp: use F for filename arguments " Simon Ruderich
2018-08-16 18:53 ` Dr. David Alan Gilbert
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 6/7] qmp: add pmemload command Simon Ruderich
2018-08-16 20:01 ` Eric Blake
2018-08-17 7:50 ` Simon Ruderich
2018-08-21 12:38 ` [Qemu-devel] [PATCH v5 5/6] " Simon Ruderich
[not found] ` <20180921110205.GA904@ruderich.org>
2018-10-09 12:14 ` Simon Ruderich
2018-08-16 9:01 ` [Qemu-devel] [PATCH v4 7/7] hmp: " Simon Ruderich
2018-08-16 18:57 ` Dr. David Alan Gilbert
2018-11-15 13:01 ` [Qemu-devel] [PATCH v6 0/6] qmp: " Simon Ruderich
2018-11-15 13:01 ` [Qemu-devel] [PATCH v6 1/6] cpus: convert qmp_memsave/qmp_pmemsave to use qemu_open Simon Ruderich
2018-11-15 13:01 ` [Qemu-devel] [PATCH v6 2/6] cpus: use size_t in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-11-15 13:01 ` [Qemu-devel] [PATCH v6 3/6] hmp: use l for size argument in memsave/pmemsave Simon Ruderich
2018-11-15 13:01 ` [Qemu-devel] [PATCH v6 4/6] hmp: use F for filename arguments " Simon Ruderich
2018-11-15 13:01 ` [Qemu-devel] [PATCH v6 5/6] qmp: add pmemload command Simon Ruderich
2018-11-15 13:01 ` [Qemu-devel] [PATCH v6 6/6] hmp: " Simon Ruderich
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 0/7] qmp: " Simon Ruderich
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 1/7] cpus: correct coding style in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-11-15 13:46 ` Eric Blake
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 2/7] cpus: convert qmp_memsave/qmp_pmemsave to use qemu_open Simon Ruderich
2018-11-15 13:49 ` Eric Blake
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 3/7] cpus: use size_t in qmp_memsave/qmp_pmemsave Simon Ruderich
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 4/7] hmp: use l for size argument in memsave/pmemsave Simon Ruderich
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 5/7] hmp: use F for filename arguments " Simon Ruderich
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 6/7] qmp: add pmemload command Simon Ruderich
2018-11-15 13:22 ` [Qemu-devel] [PATCH v7 7/7] hmp: " Simon Ruderich
2018-11-15 13:45 ` [Qemu-devel] [PATCH v7 0/7] qmp: " Eric Blake
2018-11-15 14:09 ` Simon Ruderich
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=20180816081320.GA16148@ruderich.org \
--to=simon@ruderich.org \
--cc=armbru@redhat.com \
--cc=crosthwaitepeter@gmail.com \
--cc=dgilbert@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).