summaryrefslogtreecommitdiffstats
path: root/hw/block-common.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2012-07-11 15:08:37 +0200
committerKevin Wolf <kwolf@redhat.com>2012-07-17 16:48:32 +0200
commit911525dba9ecc21f97b05c0f09bf9319a9de3a7d (patch)
tree5d82736bd710e29d590d841bd2636d4247085eff /hw/block-common.h
parent31e404f4ffb6adadea0b35de08e0a6b640e81a02 (diff)
downloadhqemu-911525dba9ecc21f97b05c0f09bf9319a9de3a7d.zip
hqemu-911525dba9ecc21f97b05c0f09bf9319a9de3a7d.tar.gz
hw/block-common: Factor out fall back to legacy -drive serial=...
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block-common.h')
-rw-r--r--hw/block-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/block-common.h b/hw/block-common.h
index f0d509b..52bddda 100644
--- a/hw/block-common.h
+++ b/hw/block-common.h
@@ -57,6 +57,9 @@ static inline unsigned int get_physical_block_exp(BlockConf *conf)
DEFINE_PROP_UINT32("heads", _state, _conf.heads, 0), \
DEFINE_PROP_UINT32("secs", _state, _conf.secs, 0)
+/* Configuration helpers */
+
+void blkconf_serial(BlockConf *conf, char **serial);
/* Hard disk geometry */
OpenPOWER on IntegriCloud