[resend because the first attempt didn't make it to the mailing list] Here are two patches for block device characteristics detection. The first one implements block size auto-sensing for virtio-block and the second patch changes geometry guessing common code. More details in the patch descriptions.
Einar Lueck (2): virtio-block: support auto-sensing of block sizes hd-geometry.c: Integrate HDIO_GETGEO in guessing hw/block-common.c | 23 ++++++++++ hw/block-common.h | 12 ++++-- hw/hd-geometry.c | 118 +++++++++++++++++++++++++++++++++++---------------- hw/qdev-properties.c | 4 +- hw/s390-virtio-bus.c | 2 +- hw/virtio-blk.c | 1 + 6 files changed, 118 insertions(+), 42 deletions(-) -- 1.7.11.4