qemu/include
Peter Lieven 3ac216270a block: change default of .has_zero_init to 0
.has_zero_init defaults to 1 for all formats and protocols.

this is a dangerous default since this means that all
new added drivers need to manually overwrite it to 0 if
they do not ensure that a device is zero initialized
after bdrv_create().

if a driver needs to explicitly set this value to
1 its easier to verify the correctness in the review process.

during review of the existing drivers it turned out
that ssh and gluster had a wrong default of 1.
both protocols support host_devices as backend
which are not by default zero initialized. this
wrong assumption will lead to possible corruption
if qemu-img convert is used to write to such a backend.

vpc and vmdk also defaulted to 1 altough they support
fixed respectively flat extends. this has to be addresses
in separate patches. both formats as well as the mentioned
ssh and gluster are turned to the default of 0 with this
patch for safety.

a similar problem with the wrong default existed for
iscsi most likely because the driver developer did
oversee the default value of 1.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-06-28 13:52:35 +02:00
..
block block: change default of .has_zero_init to 0 2013-06-28 13:52:35 +02:00
disas
exec rdma: introduce qemu_ram_foreach_block() 2013-06-27 02:38:36 +02:00
fpu
hw linux-user: Fix compilation failure 2013-06-27 15:38:35 -05:00
migration linux-user: Fix compilation failure 2013-06-27 15:38:35 -05:00
monitor
net
qapi qerror: drop QERR_OPEN_FILE_FAILED macro 2013-06-17 11:01:14 -04:00
qemu notify: add NotiferWithReturn so notifier list can abort 2013-06-28 09:20:26 +02:00
qom cpu: Turn cpu_get_memory_mapping() into a CPUState hook 2013-06-11 18:03:35 +02:00
sysemu dma: eliminate DMAContext 2013-06-20 16:39:52 +02:00
ui vnc: use booleans for vnc_connect, vnc_listen_read and vnc_display_add_client 2013-06-21 22:52:50 +04:00
config.h
elf.h include/elf.h: add aarch64 ELF machine and relocs 2013-06-12 16:20:22 +01:00
glib-compat.h
qemu-common.h create qemu_openpty_raw() helper function and move it to a separate file 2013-06-14 14:28:43 +04:00
qemu-io.h qemu-io: Interface cleanup 2013-06-06 11:27:05 +02:00
trace.h