summary refs log tree commit diff stats
path: root/hw/core/null-machine.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-06-18 17:58:29 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-07-01 09:15:02 +0200
commitdc80ca6cd6cafdee174af3c883d85e19b7fd70a5 (patch)
tree60444c59542bb386cb8625b9b07be046ba56c9bd /hw/core/null-machine.c
parentef7c7ff6d4ca1955278af1bc5025f47044183250 (diff)
downloadfocaccia-qemu-dc80ca6cd6cafdee174af3c883d85e19b7fd70a5.tar.gz
focaccia-qemu-dc80ca6cd6cafdee174af3c883d85e19b7fd70a5.zip
virtio-blk: avoid qdev property definition duplication
It becomes unwiedly to duplicate all virtio-blk qdev property
definitions due to an #ifdef.  The C preprocessor syntax makes it a
little hard to resolve this cleanly but we can extract the #ifdef and
call a macro it defines later.

Avoiding duplication is important since it will only get worse when we
move the x-data-plane qdev property here too.  We'd have a combinatorial
explosion since x-data-plane has its own #ifdef.

Suggested-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Diffstat (limited to 'hw/core/null-machine.c')
0 files changed, 0 insertions, 0 deletions