v1->v2:
do BLKPBSZGET ioctl in Patch 1/2 only when running on Linux

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    |  28 ++++++++++++
 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, 123 insertions(+), 42 deletions(-)

-- 
1.7.11.4


Reply via email to