32 patches may look discouraging, but most patches are small, and the ones that aren't just move code around.
Goals of this series: 1. One more step towards a clean separation block device host and guest part. 2. Purge CHS geometry from the block layer Part I [PATCH 01-02/32]: Floppy geometry Trivial respin of prior [PATCH 0/2] Floppy geometry cleanup Part II [PATCH 03-04/32]: vvfat geometry bug fixes Part III [PATCH 05-13/32]: Clean up hard disk geometry guessing code Part IV [PATCH 14-15/32]: Clean up CMOS hard disk info setup Part V [PATCH 16-27/32]: qdev properties for disk geometry Part VI [PATCH 16-27/32]: A few more fixes and cleanups This patch series is also available at git://repo.or.cz/qemu/armbru.git tag geo-v1 Markus Armbruster (32): fdc: Drop broken code for user-defined floppy geometry fdc: Move floppy geometry guessing back from block.c vvfat: Fix partition table vvfat: Do not clobber the user's geometry qtest: Tidy up temporary files properly qtest: Add hard disk geometry test block: Factor bdrv_read_unthrottled() out of guess_disk_lchs() hd-geometry: Move disk geometry guessing back from block.c hd-geometry: Add tracepoints hd-geometry: Unnest conditional in hd_geometry_guess() hd-geometry: Factor out guess_chs_for_size() hd-geometry: Clean up gratuitous goto in hd_geometry_guess() hd-geometry: Clean up confusing use of prior translation hint hd-geometry: Cut out block layer translation middleman ide pc: Cut out the block layer geometry middleman blockdev: Save geometry in DriveInfo qdev: Introduce block geometry properties hd-geometry: Switch to uint32_t to match BlockConf scsi-hd: qdev properties for disk geometry virtio-blk: qdev properties for disk geometry ide: qdev properties for disk geometry qtest: Cover qdev properties for disk geometry qdev: Collect private helpers in one place qdev: New property type chs-translation ide: qdev property for BIOS CHS translation qtest: Cover qdev property for BIOS CHS translation block: Geometry and translation hints are now useless, purge them ide pc: Put hard disk info into CMOS only for hard disks qtest: Test we don't put hard disk info into CMOS for a CD-ROM hd-geometry: Compute BIOS CHS translation in one place blockdev: Drop redundant CHS validation for if=ide Relax IDE CHS limits from 16383,16,63 to 65535,16,255 block.c | 278 ++------------------------------- block.h | 41 +---- block/vvfat.c | 57 ++++--- block_int.h | 1 - blockdev.c | 22 +-- blockdev.h | 15 ++ hw/Makefile.objs | 2 +- hw/fdc.c | 125 +++++++++++++-- hw/fdc.h | 10 +- hw/hd-geometry.c | 148 +++++++++++++++++ hw/ide.h | 4 +- hw/ide/core.c | 29 +++- hw/ide/internal.h | 7 +- hw/ide/qdev.c | 45 +++++- hw/pc.c | 79 ++++------ hw/qdev-properties.c | 159 ++++++++++--------- hw/qdev.h | 3 + hw/s390-virtio-bus.c | 1 + hw/scsi-disk.c | 69 ++++++--- hw/virtio-blk.c | 41 ++++- hw/virtio-pci.c | 1 + tests/Makefile | 2 + tests/hd-geo-test.c | 427 ++++++++++++++++++++++++++++++++++++++++++++++++++ tests/libqtest.c | 29 ++-- trace-events | 4 + 25 files changed, 1066 insertions(+), 533 deletions(-) create mode 100644 hw/hd-geometry.c create mode 100644 tests/hd-geo-test.c -- 1.7.6.5