Statistics
| Branch: | Revision:

root @ d1174f13

Name Size
  QMP
  audio
  backends
  block
  bsd-user
  default-configs
  disas
  docs
  fpu
  fsdev
  gdb-xml
  hw
  include
  ldscripts
  libcacard
  linux-headers
  linux-user
  net
  pc-bios
  po
  qapi
  qga
  qobject
  qom
  roms
  scripts
  slirp
  stubs
  sysconfigs
  target-alpha
  target-arm
  target-cris
  target-i386
  target-lm32
  target-m68k
  target-microblaze
  target-mips
  target-moxie
  target-openrisc
  target-ppc
  target-s390x
  target-sh4
  target-sparc
  target-unicore32
  target-xtensa
  tcg
  tests
  trace
  ui
  util
.exrc 220 Bytes
.gitignore 1.7 kB
.gitmodules 746 Bytes
.mailmap 1.2 kB
CODING_STYLE 3.1 kB
COPYING 17.6 kB
COPYING.LIB 25.8 kB
Changelog 22.6 kB
HACKING 6 kB
LICENSE 519 Bytes
MAINTAINERS 15.5 kB
Makefile 15.5 kB
Makefile.objs 3.5 kB
Makefile.target 5.2 kB
README 80 Bytes
VERSION 7 Bytes
aio-posix.c 6.7 kB
aio-win32.c 5.8 kB
arch_init.c 29 kB
async.c 5.3 kB
balloon.c 3.7 kB
block-migration.c 21.8 kB
block.c 125.3 kB
blockdev-nbd.c 3.2 kB
blockdev.c 52.2 kB
blockjob.c 7.6 kB
bt-host.c 5.2 kB
bt-vhci.c 4.5 kB
cmd.c 3.5 kB
cmd.h 1.6 kB
configure 117 kB
coroutine-gthread.c 5.8 kB
coroutine-sigaltstack.c 8.3 kB
coroutine-ucontext.c 5.6 kB
coroutine-win32.c 2.6 kB
cpu-exec.c 28.9 kB
cpus.c 33.8 kB
cputlb.c 10.9 kB
device-hotplug.c 2.2 kB
device_tree.c 7.9 kB
disas.c 12.9 kB
dma-helpers.c 11 kB
dtc 0 Bytes
dump-stub.c 778 Bytes
dump.c 22.2 kB
exec.c 72.1 kB
gdbstub.c 76.2 kB
hmp-commands.hx 44.6 kB
hmp.c 41.3 kB
hmp.h 4.1 kB
iohandler.c 6 kB
ioport.c 13.3 kB
kvm-all.c 52.5 kB
kvm-stub.c 2.3 kB
main-loop.c 13.1 kB
memory.c 55.9 kB
memory_mapping-stub.c 627 Bytes
memory_mapping.c 7 kB
migration-exec.c 1.7 kB
migration-fd.c 1.6 kB
migration-tcp.c 2.3 kB
migration-unix.c 2.2 kB
migration.c 16.7 kB
monitor.c 138.6 kB
nbd.c 30.4 kB
os-posix.c 8.5 kB
os-win32.c 4.2 kB
page_cache.c 5 kB
pixman 0 Bytes
qapi-schema-test.json 1.7 kB
qapi-schema.json 96.2 kB
qdev-monitor.c 18.1 kB
qdict-test-data.txt 88.4 kB
qemu-bridge-helper.c 11.1 kB
qemu-char.c 98.1 kB
qemu-coroutine-io.c 2.4 kB
qemu-coroutine-lock.c 4.7 kB
qemu-coroutine-sleep.c 898 Bytes
qemu-coroutine.c 2.9 kB
qemu-doc.texi 89.7 kB
qemu-img-cmds.hx 2.2 kB
qemu-img.c 66.6 kB
qemu-img.texi 13.8 kB
qemu-io-cmds.c 48.8 kB
qemu-io.c 9.8 kB
qemu-log.c 4.8 kB
qemu-nbd.c 17.6 kB
qemu-nbd.texi 2.1 kB
qemu-options-wrapper.h 1 kB
qemu-options.h 1.4 kB
qemu-options.hx 112 kB
qemu-seccomp.c 8 kB
qemu-tech.texi 22.9 kB
qemu-timer.c 18.8 kB
qemu.sasl 1.3 kB
qmp-commands.hx 72.3 kB
qmp.c 13.7 kB
qtest.c 13.3 kB
readline.c 13.2 kB
rules.mak 4.7 kB
savevm.c 64 kB
spice-qemu-char.c 8.8 kB
tcg-runtime.c 2.4 kB
tci.c 35.8 kB
thread-pool.c 9.7 kB
thunk.c 8.8 kB
tpm.c 7.6 kB
trace-events 76.6 kB
translate-all.c 53.4 kB
translate-all.h 1.2 kB
user-exec.c 19.1 kB
version.rc 749 Bytes
vl.c 123.9 kB
xbzrle.c 4 kB
xen-all.c 35.2 kB
xen-mapcache.c 12.4 kB
xen-stub.c 1.2 kB

Latest revisions

# Date Author Comment
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 <>

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

qemu-io: Move command_loop() and friends

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

734c3b85 06/06/2013 12:27 pm Kevin Wolf

qemu-io: Don't use global bs in command implementations

Pass in the BlockDriverState to the command handlers instead of using
the global variable. This is an important step to make the commands
usable outside of qemu-io.

Signed-off-by: Kevin Wolf <>...

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 <>...

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

qemu-io: Move 'quit' function

This one only makes sense in the context of the qemu-io tool, so move it
to qemu-io.c. Adapt coding style and register it like other commands.

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

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

qemu-io: Move qemu_strsep() to cutils.c

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

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

qemu-io: Make cvtnum() a wrapper around strtosz_suffix()

No reason to implement the same thing multiple times. A nice side effect
is that fractional numbers like 0.5M can be used in qemu-io now.

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

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

qemu-io: Handle cvtnum() errors in 'alloc'

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

View all revisions | View revisions

Also available in: Atom