History | View | Annotate | Download (51.9 kB)
qemu-io: Move functions for registering and running commands
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-io: Move remaining helpers from cmd.c
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-io: Interface cleanup
qemu-io: Split off commands to qemu-io-cmds.c
This is the implementation of all qemu-io commands that make sense to becalled from the qemu monitor, i.e. everything except open, close andquit.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>...
qemu-io: Factor out qemuio_command
It's duplicated code. Move it to qemu-io-cmds.c because it's notdependent on any static data of the qemu-io tool.
qemu-io: Move 'help' function
No reason to treat it different from other commands. Move it toqemu-io-cmds.c, adapt the coding style and register it like any othercommand.