Statistics
| Branch: | Revision:

root @ 793ed47a

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.7 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.8 kB
Makefile 17.4 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 33.8 kB
async.c 6.9 kB
balloon.c 3.7 kB
block-migration.c 22.8 kB
block.c 149.2 kB
blockdev-nbd.c 3 kB
blockdev.c 69.9 kB
blockjob.c 7.6 kB
bt-host.c 5.2 kB
bt-vhci.c 4.5 kB
configure 124.7 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.3 kB
cpus.c 37 kB
cputlb.c 10.6 kB
device-hotplug.c 2.2 kB
device_tree.c 8.5 kB
disas.c 13.6 kB
dma-helpers.c 7 kB
dtc 0 Bytes
dump.c 23.2 kB
exec.c 75 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.1 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.3 kB
monitor.c 143.1 kB
nbd.c 30.5 kB
os-posix.c 8.5 kB
os-win32.c 4.2 kB
page_cache.c 5 kB
pixman 0 Bytes
qapi-schema.json 120.2 kB
qdev-monitor.c 20.2 kB
qdict-test-data.txt 88.4 kB
qemu-bridge-helper.c 11.1 kB
qemu-char.c 98.8 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 90.1 kB
qemu-file.c 17.5 kB
qemu-img-cmds.hx 2.6 kB
qemu-img.c 78.6 kB
qemu-img.texi 17.9 kB
qemu-io-cmds.c 53.3 kB
qemu-io.c 11.5 kB
qemu-log.c 4.8 kB
qemu-nbd.c 19.4 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.8 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 91.3 kB
qmp.c 15.7 kB
qtest.c 13.6 kB
rules.mak 6.1 kB
savevm.c 32.5 kB
spice-qemu-char.c 9 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 121.7 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
c25f53b0 01/24/2014 06:40 pm Paolo Bonzini

raw: Probe required direct I/O alignment

Add a bs->request_alignment field that contains the required
offset/length alignment for I/O requests and fill it in the raw block
drivers. Use ioctls if possible, else see what alignment it takes for
O_DIRECT to succeed....

d0c7f642 01/24/2014 06:40 pm Kevin Wolf

block: Introduce bdrv_aligned_preadv()

This separates the part of bdrv_co_do_readv() that needs to happen
before the request is modified to match the backend alignment, and a
part that needs to be executed afterwards and passes the request to the
BlockDriver....

1b0288ae 01/24/2014 06:40 pm Kevin Wolf

block: Introduce bdrv_co_do_preadv()

Similar to bdrv_pread(), which aligns byte-aligned request to 512 byte
sectors, bdrv_co_do_preadv() takes a byte-aligned request and aligns it
to the alignment specified in bs->request_alignment.

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

b404f720 01/24/2014 06:40 pm Kevin Wolf

block: Introduce bdrv_aligned_pwritev()

This separates the part of bdrv_co_do_writev() that needs to happen
before the request is modified to match the backend alignment, and a
part that needs to be executed afterwards and passes the request to the
BlockDriver....

244eadef 01/24/2014 06:40 pm Kevin Wolf

block: write: Handle COR dependency after I/O throttling

First waiting for all COR requests to complete and calling the
throttling function afterwards means that the request could be delayed
and we still need to wait for the COR request even if it was issued only...

6601553e 01/24/2014 06:40 pm Kevin Wolf

block: Introduce bdrv_co_do_pwritev()

This is going to become the bdrv_co_do_preadv() equivalent for writes.
In this patch, however, just a function taking byte offsets is created,
it doesn't align anything yet.

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

793ed47a 01/24/2014 06:40 pm Kevin Wolf

block: Switch BdrvTrackedRequest to byte granularity

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

1ff735bd 01/24/2014 06:40 pm Kevin Wolf

block: Detect unaligned length in bdrv_qiov_is_aligned()

For an O_DIRECT request to succeed, it's not only necessary that all
base addresses in the qiov are aligned, but also that each length in it
is aligned.

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

339064d5 01/24/2014 06:40 pm Kevin Wolf

block: Don't use guest sector size for qemu_blockalign()

bs->buffer_alignment is set by the device emulation and contains the
logical block size of the guest device. This isn't something that the
block layer should know, and even less something to use for determining...

1b7fd729 01/24/2014 06:40 pm Paolo Bonzini

block: rename buffer_alignment to guest_block_size

The alignment field is now set to the value that is promised to the
guest, rather than required by the host. The next patches will make
QEMU aware of the host-provided values, so make this clear.

The alignment is also not about memory buffers, but about the sectors on...

View all revisions | View revisions

Also available in: Atom