Statistics
| Branch: | Revision:

root @ 9b34277d

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-openrisc
  target-ppc
  target-s390x
  target-sh4
  target-sparc
  target-unicore32
  target-xtensa
  tcg
  tests
  tpm
  trace
  ui
  util
.exrc 220 Bytes
.gitignore 1.6 kB
.gitmodules 682 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.1 kB
LICENSE 519 Bytes
MAINTAINERS 14.8 kB
Makefile 14.4 kB
Makefile.objs 3.6 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.3 kB
async.c 5.3 kB
balloon.c 3.7 kB
block-migration.c 21.8 kB
block.c 127.2 kB
blockdev-nbd.c 3.2 kB
blockdev.c 45.1 kB
blockjob.c 7.6 kB
bt-host.c 5.2 kB
bt-vhci.c 4.5 kB
cmd.c 12.1 kB
cmd.h 2 kB
configure 112.9 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.7 kB
cpus.c 33.1 kB
cputlb.c 11 kB
device-hotplug.c 2.2 kB
device_tree.c 7.9 kB
disas.c 12.6 kB
dma-helpers.c 10.9 kB
dump-stub.c 1.5 kB
dump.c 22.1 kB
exec.c 74 kB
gdbstub.c 76 kB
hmp-commands.hx 44.5 kB
hmp.c 41.3 kB
hmp.h 4.1 kB
iohandler.c 6 kB
ioport.c 13.3 kB
kvm-all.c 51.1 kB
kvm-stub.c 2.5 kB
main-loop.c 12.4 kB
memory.c 53.7 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.8 kB
monitor.c 137.7 kB
nbd.c 31 kB
os-posix.c 8.4 kB
os-win32.c 4.4 kB
page_cache.c 5.1 kB
pixman 0 Bytes
qapi-schema-test.json 1.3 kB
qapi-schema.json 91.3 kB
qdev-monitor.c 18 kB
qdict-test-data.txt 88.4 kB
qemu-bridge-helper.c 10.4 kB
qemu-char.c 97.5 kB
qemu-coroutine-io.c 2.4 kB
qemu-coroutine-lock.c 4.4 kB
qemu-coroutine-sleep.c 898 Bytes
qemu-coroutine.c 2.4 kB
qemu-doc.texi 88.1 kB
qemu-img-cmds.hx 2.2 kB
qemu-img.c 71.7 kB
qemu-img.texi 13.8 kB
qemu-io.c 48.3 kB
qemu-log.c 4.8 kB
qemu-nbd.c 17.3 kB
qemu-nbd.texi 2 kB
qemu-options-wrapper.h 1 kB
qemu-options.h 1.4 kB
qemu-options.hx 110.7 kB
qemu-seccomp.c 7.8 kB
qemu-tech.texi 22.9 kB
qemu-timer.c 19.2 kB
qemu.sasl 1.3 kB
qmp-commands.hx 69.3 kB
qmp.c 13.6 kB
qtest.c 13.3 kB
readline.c 12.9 kB
rules.mak 4.4 kB
savevm.c 60.2 kB
spice-qemu-char.c 8.4 kB
tcg-runtime.c 2.4 kB
tci.c 35.5 kB
thread-pool.c 9.9 kB
thunk.c 8.8 kB
trace-events 71.5 kB
translate-all.c 53.5 kB
translate-all.h 1.2 kB
user-exec.c 19.1 kB
version.rc 749 Bytes
vl.c 123.2 kB
xbzrle.c 4 kB
xen-all.c 35.6 kB
xen-mapcache.c 11.9 kB
xen-stub.c 1.2 kB

Latest revisions

# Date Author Comment
2154f24e 03/15/2013 05:07 pm Stefan Hajnoczi

qcow2: flush in qcow2_update_snapshot_refcount()

Users of qcow2_update_snapshot_refcount() do not flush consistently.
qcow2_snapshot_create() flushes but qcow2_snapshot_goto() and
qcow2_snapshot_delete() do not.

Solve this by moving the bdrv_flush() into...

f9cb2860 03/15/2013 05:07 pm Stefan Hajnoczi

qcow2: drop flush in update_cluster_refcount()

The update_cluster_refcount() function increments/decrements a cluster's
refcount and then returns the new refcount value.

There is no need to flush since both update_cluster_refcount() callers
already take care of this:...

36479179 03/15/2013 05:07 pm Stefan Hajnoczi

qcow2: drop unnecessary flush in qcow2_update_snapshot_refcount()

We already flush when the function completes. There is no need to flush
after every compressed cluster.

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

381b487d 03/15/2013 05:07 pm Paolo Bonzini

qcow2: make is_allocated return true for zero clusters

Otherwise, live migration of the top layer will miss zero clusters and
let the backing file show through. This also matches what is done in qed.

QCOW2_CLUSTER_ZERO clusters are invalid in v2 image files. Check this...

0d6db300 03/15/2013 05:07 pm MORITA Kazutaka

sheepdog: use non-blocking fd in coroutine context

Using a blocking socket in the coroutine context reduces the chance of
switching to other work. This patch makes the sheepdog driver use a
non-blocking fd always.

Signed-off-by: MORITA Kazutaka <>...

ed9ba724 03/15/2013 05:07 pm MORITA Kazutaka

sheepdog: set io_flush handler in do_co_req

If an io_flush handler is not set, qemu_aio_wait doesn't invoke
callbacks.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Stefan Hajnoczi <>

5f3aa1ff 03/15/2013 05:07 pm Stefan Hajnoczi

main-loop: add qemu_get_aio_context()

It is very useful to get the main loop AioContext, which is a static
variable in main-loop.c.

I'm not sure whether qemu_get_aio_context() will be necessary in the
future once devices focus on using their own AioContext instead of the...

b811203c 03/15/2013 05:07 pm Stefan Hajnoczi

threadpool: move globals into struct ThreadPool

Move global variables into a struct so multiple thread pools can be
supported in the future.

This patch does not change thread-pool.h interfaces. There is still a
global thread pool and it is not yet possible to create/destroy...

f7311ccc 03/15/2013 05:07 pm Stefan Hajnoczi

threadpool: add thread_pool_new() and thread_pool_free()

ThreadPool is tied to an AioContext through its event notifier, which
dictates in which AioContext the work item's callback function will be
invoked.

In order to support multiple AioContexts we need to support multiple...

9b34277d 03/15/2013 05:07 pm Stefan Hajnoczi

aio: add a ThreadPool instance to AioContext

This patch adds a ThreadPool to AioContext. It's possible that some
AioContext instances will never use the ThreadPool, so defer creation
until aio_get_thread_pool().

The reason why AioContext should have the ThreadPool is because the...

View all revisions | View revisions

Also available in: Atom