qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 00/16] Make qemu-io commands available in the monitor
Date: Thu, 6 Jun 2013 11:46:02 +0200	[thread overview]
Message-ID: <20130606094602.GA30685@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1370434781-28570-1-git-send-email-kwolf@redhat.com>

On Wed, Jun 05, 2013 at 02:19:25PM +0200, Kevin Wolf wrote:
> This is a prerequisite for some kind of tests. It involves reorganising the
> qemu-io code so that the command part can be separated and doesn't pollute the
> global namespace any more, so we can link it with qemu.
> 
> v2:
> - Drop the QMP command, make it HMP only
> - Minor review comments like typos
> 
> Kevin Wolf (16):
>   qemu-io: Remove unused args_command
>   cutils: Support 'P' and 'E' suffixes in strtosz()
>   qemu-io: Make cvtnum() a wrapper around strtosz_suffix()
>   qemu-io: Handle cvtnum() errors in 'alloc'
>   qemu-io: Don't use global bs in command implementations
>   qemu-io: Split off commands to qemu-io-cmds.c
>   qemu-io: Factor out qemuio_command
>   qemu-io: Move 'help' function
>   qemu-io: Move 'quit' function
>   qemu-io: Move qemu_strsep() to cutils.c
>   qemu-io: Move functions for registering and running commands
>   qemu-io: Move command_loop() and friends
>   qemu-io: Move remaining helpers from cmd.c
>   qemu-io: Interface cleanup
>   qemu-io: Use the qemu version for -V
>   Make qemu-io commands available in HMP
> 
>  Makefile                   |    2 +-
>  Makefile.objs              |    1 +
>  cmd.c                      |  612 -------------
>  cmd.h                      |   79 --
>  hmp-commands.hx            |   16 +
>  hmp.c                      |   18 +
>  hmp.h                      |    1 +
>  include/qemu-common.h      |    3 +
>  include/qemu-io.h          |   46 +
>  monitor.c                  |    8 +-
>  qemu-img.c                 |   10 +-
>  qemu-io-cmds.c             | 2118 ++++++++++++++++++++++++++++++++++++++++++++
>  qemu-io.c                  | 1990 ++++-------------------------------------
>  tests/qemu-iotests/049.out |    8 +-
>  util/cutils.c              |   25 +
>  15 files changed, 2416 insertions(+), 2521 deletions(-)
>  delete mode 100644 cmd.c
>  delete mode 100644 cmd.h
>  create mode 100644 include/qemu-io.h
>  create mode 100644 qemu-io-cmds.c
> 
> -- 
> 1.8.1.4
> 

On IRC kwolf explained that he moved cmd.c into qemu-io-cmds.c since
there are no other users and cmd.c uses global state (it's not easily
reusable anyway).  I'm happy with dropping cmd.c now.

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

      parent reply	other threads:[~2013-06-06  9:46 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 12:19 [Qemu-devel] [PATCH v2 00/16] Make qemu-io commands available in the monitor Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 01/16] qemu-io: Remove unused args_command Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 02/16] cutils: Support 'P' and 'E' suffixes in strtosz() Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 03/16] qemu-io: Make cvtnum() a wrapper around strtosz_suffix() Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 04/16] qemu-io: Handle cvtnum() errors in 'alloc' Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 05/16] qemu-io: Don't use global bs in command implementations Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 06/16] qemu-io: Split off commands to qemu-io-cmds.c Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 07/16] qemu-io: Factor out qemuio_command Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 08/16] qemu-io: Move 'help' function Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 09/16] qemu-io: Move 'quit' function Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 10/16] qemu-io: Move qemu_strsep() to cutils.c Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 11/16] qemu-io: Move functions for registering and running commands Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 12/16] qemu-io: Move command_loop() and friends Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 13/16] qemu-io: Move remaining helpers from cmd.c Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 14/16] qemu-io: Interface cleanup Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 15/16] qemu-io: Use the qemu version for -V Kevin Wolf
2013-06-05 12:19 ` [Qemu-devel] [PATCH v2 16/16] Make qemu-io commands available in HMP Kevin Wolf
2013-06-07 14:17   ` Luiz Capitulino
2013-06-06  9:46 ` Stefan Hajnoczi [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=20130606094602.GA30685@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=pbonzini@redhat.com \
    --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).