Statistics
| Branch: | Revision:

root / qemu-io-cmds.c @ 34b5d2c6

History | View | Annotate | Download (52.1 kB)

# Date Author Comment
d663640c 09/06/2013 04:25 pm Paolo Bonzini

block: expect errors from bdrv_co_is_allocated

Some bdrv_is_allocated callers do not expect errors, but the fallback
in qcow2.c might make other callers trip on assertion failures or
infinite loops.

Fix the callers to always look for errors.

Cc: ...

6a1751b7 08/22/2013 08:10 pm Alex Bligh

aio / timers: Untangle include files

include/qemu/timer.h has no need to include main-loop.h and
doing so causes an issue for the next patch. Unfortunately
various files assume including timers.h will pull in main-loop.h.
Untangle this mess.

Signed-off-by: Alex Bligh <>...

c2cdf5c5 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move functions for registering and running commands

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>
Signed-off-by: Stefan Hajnoczi <>

0b613881 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move remaining helpers from cmd.c

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

3d21994f 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Interface cleanup

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

797ac58c 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Split off commands to qemu-io-cmds.c

This is the implementation of all qemu-io commands that make sense to be
called from the qemu monitor, i.e. everything except open, close and
quit.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>...

dd583296 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Factor out qemuio_command

It's duplicated code. Move it to qemu-io-cmds.c because it's not
dependent on any static data of the qemu-io tool.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>
Signed-off-by: Stefan Hajnoczi <>

f18a834a 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Move 'help' function

No reason to treat it different from other commands. Move it to
qemu-io-cmds.c, adapt the coding style and register it like any other
command.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>...