]> git.proxmox.com Git - mirror_qemu.git/commit
hw/block: Introduce share-rw qdev property
authorKevin Wolf <kwolf@redhat.com>
Tue, 24 Jan 2017 12:58:00 +0000 (13:58 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:40:36 +0000 (20:40 +0100)
commitdabd18f64c8800d441fd9fb232c2102e8409aa2e
tree96cd8be59b9a5f045edca263974b08d26f169884
parenta17c17a274f24f0c0259f89d288f29b8ce0511aa
hw/block: Introduce share-rw qdev property

By default, don't allow another writer for block devices that are
attached to a guest device. For the cases where this setup is intended
(e.g. using a cluster filesystem on the disk), the new option can be
used to allow it.

This change affects only devices using DEFINE_BLOCK_PROPERTIES().
Devices directly using DEFINE_PROP_DRIVE() still accept writers
unconditionally.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
hw/block/block.c
include/hw/block/block.h
tests/qemu-iotests/172.out