]> git.proxmox.com Git - qemu.git/commit
ide: qdev property for BIOS CHS translation
authorMarkus Armbruster <armbru@redhat.com>
Tue, 10 Jul 2012 09:12:48 +0000 (11:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 17 Jul 2012 14:48:31 +0000 (16:48 +0200)
commit6e6f61a66aa45a15c9f411ad000a8d3d57272f8a
tree75dc2f5e958fdcfb473545890438590c8e93fe5d
parent8cd41745fbe4ebbc7adff247cf2955765f7eb5e2
ide: qdev property for BIOS CHS translation

This isn't quite orthodox.  CHS translation is firmware configuration,
communicated via the RTC's CMOS RAM, not a property of the disk.  But
it's best to treat it just like geometry anyway.

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

Bonus: info qtree now shows the translation.  Except when it shows
"auto": that's resolved by pc_cmos_init_late().  To be addressed
shortly.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/internal.h
hw/ide/qdev.c