]> git.proxmox.com Git - qemu.git/commit - hw/scsi/scsi-disk.c
scsi-hd: qdev properties for disk geometry
authorMarkus Armbruster <armbru@redhat.com>
Tue, 10 Jul 2012 09:12:42 +0000 (11:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 17 Jul 2012 14:48:30 +0000 (16:48 +0200)
commitd252df489879ca3b128e080409b89305491d04cf
tree2b5b5c9379616aac66ba8b506a7385815e926cbe
parent1f24d7b47e1f18b5e7f0f050f915a42e9aa645db
scsi-hd: qdev properties for disk geometry

Geometry needs to be qdev properties, because it belongs to the
disk's guest part.

Maintain backward compatibility exactly like for serial: fall back to
DriveInfo's geometry, set with -drive cyls=...

Do this only for scsi-hd.  scsi-disk is legacy.  scsi-cd doesn't have
a geometry.  scsi-block should get geometry from the host disk.

Bonus: info qtree now shows the geometry.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c