Statistics
| Branch: | Revision:

root @ 537b41f5

Name Size
  audio
  backends
  block
  bsd-user
  default-configs
  disas
  docs
  fpu
  fsdev
  gdb-xml
  hw
  include
  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.9 kB
.gitmodules 810 Bytes
.mailmap 1.3 kB
.travis.yml 2.8 kB
CODING_STYLE 3.1 kB
COPYING 17.6 kB
COPYING.LIB 25.8 kB
Changelog 22.6 kB
HACKING 7 kB
LICENSE 846 Bytes
MAINTAINERS 17.9 kB
Makefile 17.5 kB
Makefile.objs 3.9 kB
Makefile.target 5.1 kB
README 88 Bytes
VERSION 7 Bytes
aio-posix.c 6.2 kB
aio-win32.c 6 kB
arch_init.c 34.4 kB
async.c 6.9 kB
balloon.c 3.7 kB
block-migration.c 22.8 kB
block.c 150.9 kB
blockdev-nbd.c 3 kB
blockdev.c 70.5 kB
blockjob.c 7.6 kB
bt-host.c 5.2 kB
bt-vhci.c 4.5 kB
configure 127.3 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 29.4 kB
cpus.c 37 kB
cputlb.c 10.6 kB
device-hotplug.c 2.2 kB
device_tree.c 8.5 kB
disas.c 14 kB
dma-helpers.c 7 kB
dtc 0 Bytes
dump.c 23.2 kB
exec.c 76.5 kB
gdbstub.c 43.2 kB
hmp-commands.hx 48.2 kB
hmp.c 47.9 kB
hmp.h 4.5 kB
iohandler.c 6 kB
ioport.c 8.9 kB
kvm-all.c 52.2 kB
kvm-stub.c 2.4 kB
main-loop.c 13.5 kB
memory.c 57.3 kB
memory_mapping.c 10.3 kB
migration-exec.c 1.8 kB
migration-fd.c 1.6 kB
migration-rdma.c 104.9 kB
migration-tcp.c 2.3 kB
migration-unix.c 2.3 kB
migration.c 19.7 kB
monitor.c 146.1 kB
nbd.c 28.9 kB
os-posix.c 8.5 kB
os-win32.c 4.2 kB
page_cache.c 5.5 kB
pixman 0 Bytes
qapi-schema.json 122.8 kB
qdev-monitor.c 20.2 kB
qdict-test-data.txt 88.4 kB
qemu-bridge-helper.c 11.1 kB
qemu-char.c 99.3 kB
qemu-coroutine-io.c 3 kB
qemu-coroutine-lock.c 4.8 kB
qemu-coroutine-sleep.c 1.3 kB
qemu-coroutine.c 3 kB
qemu-doc.texi 91 kB
qemu-file.c 17.5 kB
qemu-img-cmds.hx 2.6 kB
qemu-img.c 78.6 kB
qemu-img.texi 18.8 kB
qemu-io-cmds.c 54.3 kB
qemu-io.c 11.6 kB
qemu-log.c 4.8 kB
qemu-nbd.c 20.7 kB
qemu-nbd.texi 2.5 kB
qemu-options-wrapper.h 1 kB
qemu-options.h 1.4 kB
qemu-options.hx 113.2 kB
qemu-seccomp.c 7.9 kB
qemu-tech.texi 22.9 kB
qemu-timer.c 15.8 kB
qemu.nsi 7.2 kB
qemu.sasl 1.3 kB
qmp-commands.hx 92 kB
qmp.c 16 kB
qtest.c 13.8 kB
rules.mak 6.4 kB
savevm.c 32.5 kB
spice-qemu-char.c 9.5 kB
tcg-runtime.c 2.4 kB
tci.c 35.6 kB
thread-pool.c 9.5 kB
thunk.c 8.8 kB
tpm.c 7.6 kB
trace-events 77.9 kB
translate-all.c 53.4 kB
translate-all.h 995 Bytes
user-exec.c 19.8 kB
version.rc 797 Bytes
vl.c 122.1 kB
vmstate.c 15.5 kB
xbzrle.c 4 kB
xen-all.c 35.7 kB
xen-mapcache.c 12.4 kB
xen-stub.c 1.2 kB

Latest revisions

# Date Author Comment
537b41f5 02/21/2014 10:02 pm Paolo Bonzini

nbd: move socket wrappers to qemu-nbd

qemu-nbd is one of the few valid users of qerror_report_err. Move
the error-reporting socket wrappers there.

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

2e40134b 02/21/2014 10:02 pm Max Reitz

block: Make bdrv_file_open() static

Add the bdrv_open() option BDRV_O_PROTOCOL which results in passing the
call to bdrv_file_open(). Additionally, make bdrv_file_open() static and
therefore bdrv_open() the only way to call it.

Consequently, all existing calls to bdrv_file_open() have to be adjusted...

5d12aa63 02/21/2014 10:02 pm Max Reitz

block: Reuse reference handling from bdrv_open()

Remove the reference parameter and the related handling code from
bdrv_file_open(), since it exists in bdrv_open() now as well.

Signed-off-by: Max Reitz <>
Reviewed-by: Benoit Canet <>...

d4446eae 02/21/2014 10:02 pm Max Reitz

block: Remove bdrv_new() from bdrv_file_open()

Change bdrv_file_open() to take a simple pointer to an already existing
BDS instead of an indirect one. The BDS will be created in bdrv_open()
if necessary.

Signed-off-by: Max Reitz <>
Reviewed-by: Benoit Canet <>...

5469a2a6 02/21/2014 10:02 pm Max Reitz

block: Handle bs->options in bdrv_open() only

The fail paths of bdrv_file_open() and bdrv_open() naturally exhibit
similarities, thus it is possible to reuse the one from bdrv_open() and
shorten the one in bdrv_file_open() accordingly.

Also, setting bs->options in bdrv_file_open() is not necessary if it is...

5acd9d81 02/21/2014 10:02 pm Max Reitz

block: Reuse success path from bdrv_open()

The fail and success paths of bdrv_file_open() may be further shortened
by reusing code already existent in bdrv_open(). This includes
bdrv_file_open() not taking the reference to options which allows the
removal of QDECREF in that function....

f7d9fd8c 02/21/2014 10:02 pm Max Reitz

block: Remove bdrv_open_image()'s force_raw option

This option is now unnecessary since specifying BDRV_O_PROTOCOL as flag
will do exactly the same.

Signed-off-by: Max Reitz <>
Reviewed-by: Benoit Canet <>
Reviewed-by: Kevin Wolf <>...

a69d9af4 02/21/2014 10:02 pm Paolo Bonzini

nbd: produce a better error if neither host nor port is passed

Before:
$ qemu-io-old
qemu-io-old> open -r -o file.driver=nbd
qemu-io-old: can't open device (null): Could not open image: Invalid argument
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd,file.host=foo,file.path=bar...

77e8b9ca 02/21/2014 10:02 pm Paolo Bonzini

nbd: correctly propagate errors

Before:
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd
one of path and host must be specified.
qemu-io-old: can't open device (null): Could not open image: Invalid argument
$ ./qemu-io-old
qemu-io-old> open -r -o file.driver=nbd,file.host=foo,file.path=bar...

c06b7278 02/21/2014 10:02 pm Paolo Bonzini

nbd: inline tcp_socket_incoming_spec into sole caller

Signed-off-by: Paolo Bonzini <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Kevin Wolf <>

View all revisions | View revisions

Also available in: Atom