]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Support providing LCHS from user
authorSam Eiderman <shmuel.eiderman@oracle.com>
Wed, 16 Oct 2019 16:41:39 +0000 (19:41 +0300)
committerJohn Snow <jsnow@redhat.com>
Thu, 31 Oct 2019 15:47:11 +0000 (11:47 -0400)
commit64c5bb83df51bc40bf9da5075709b270b86f66e3
treef2e68b875bad839ec50414f3de81da5cff5194e7
parent8e6a1749373b49f781d744375e6e280f4686f1da
block: Support providing LCHS from user

Add logical geometry variables to BlockConf.

A user can now supply "lcyls", "lheads" & "lsecs" for any HD device
that supports CHS ("cyls", "heads", "secs").

These devices include:
    * ide-hd
    * scsi-hd
    * virtio-blk-pci

In future commits we will use the provided LCHS and pass it to the BIOS
through fw_cfg to be supplied using INT13 routines.

Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Reviewed-by: Arbel Moshe <arbel.moshe@oracle.com>
Signed-off-by: Sam Eiderman <shmuel.eiderman@oracle.com>
Signed-off-by: Sam Eiderman <sameid@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
include/hw/block/block.h