Statistics
| Branch: | Revision:

root / hw / block / virtio-blk.c @ 81cce07e

History | View | Annotate | Download (22.4 kB)

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

75884afd 12/09/2013 10:46 pm Andreas Färber

virtio-blk: Convert to QOM realize

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

306ec6c3 12/09/2013 10:46 pm Andreas Färber

virtio: Convert exit to unrealize

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

40dfc16f 12/09/2013 10:46 pm Paolo Bonzini

virtio-blk: switch exit callback to VirtioDeviceClass

This ensures hot-unplug is handled properly by the proxy, and avoids
leaking bus_name which is freed by virtio_device_exit.

Cc:
Acked-by: Andreas Faerber <>
Signed-off-by: Paolo Bonzini <>

3ffeeef7 12/09/2013 10:46 pm Andreas Färber

virtio-blk-dataplane: Improve error reporting

Return an Error so that it can be propagated later.

Tested-by: Stefan Hajnoczi <>
Acked-by: Stefan Hajnoczi <>
[AF: Rebased]
Signed-off-by: Andreas Färber <>...

179b417e 12/09/2013 10:46 pm Andreas Färber

virtio-blk: QOM realize preparations

Rename variable qdev -> dev since that's what realize's argument is called
by convention.

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

b432779a 10/18/2013 02:02 pm Stefan Weil

virtio: Remove unneeded memcpy

Report from valgrind:

19521 Source and destination overlap in memcpy(0x31d38938, 0x31d38938, 64)
19521 at 0x4A0A343: memcpy@@GLIBC_2.14 (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
19521 by 0x42774E: virtio_blk_device_init (virtio-blk.c:686)...
ef5bc962 09/20/2013 08:27 pm Paolo Bonzini

virtio-blk: do not relay a previous driver's WCE configuration to the current

The following sequence happens:
- the SeaBIOS virtio-blk driver does not support the WCE feature, which
causes QEMU to disable writeback caching

- the Linux virtio-blk driver resets the device, finds WCE is available...

eddbf0ab 07/29/2013 07:33 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/block' into staging

  1. By Stefan Hajnoczi (4) and others
  2. Via Stefan Hajnoczi
    • stefanha/block:
      dataplane: refuse to start if device is already in use
      dataplane: enable virtio-blk x-data-plane=on live migration
      migration: fix spice migration...
125ee0ed 07/29/2013 06:37 pm Marcel Apfelbaum

devices: Associate devices to their logical category

The category will be used to sort the devices displayed in
the command line help.

Signed-off-by: Marcel Apfelbaum <>
Message-id: ...

84db52d0 07/29/2013 06:19 pm Stefan Hajnoczi

dataplane: enable virtio-blk x-data-plane=on live migration

Although the dataplane thread does not cooperate with dirty memory
logging yet it's fairly easy to temporarily disable dataplane during
live migration. This way virtio-blk can live migrate when...

6a1a8cc7 04/24/2013 07:50 pm KONRAD Frederic

virtio: cleanup: init and exit function.

This clean the init and the exit functions and rename virtio_common_cleanup
to virtio_cleanup.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

181103cd 04/24/2013 07:50 pm KONRAD Frederic

virtio: remove the function pointer.

This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

e03ba136 04/12/2013 03:33 pm Peter Maydell

Typo, spelling and grammatical fixes

Minor fixes to documentation and code comments.

Signed-off-by: Peter Maydell <>
Signed-off-by: Stefan Hajnoczi <>

6e790746 04/08/2013 07:13 pm Paolo Bonzini

hw: move virtio devices to hw/ subdirectories

Signed-off-by: Paolo Bonzini <>