]> xenbits.xensource.com Git - seabios.git/commit
geometry: Apply LCHS values for boot devices
authorSam Eiderman <shmuel.eiderman@oracle.com>
Wed, 12 Jun 2019 09:37:04 +0000 (12:37 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 6 Nov 2019 09:56:00 +0000 (10:56 +0100)
commit9caa19be0e534c687081fbdfcd301406e728c98c
tree588e9234ba792d7aedda3a5442032f9a22d773f4
parentcb56f61c109985ad71078b1fb2e65bd4d6ed1a59
geometry: Apply LCHS values for boot devices

Boot devices which use overriden LCHS values are:

    * ata
    * ahci
    * scsi
        * esp
        * lsi
        * megasas
        * mpt
        * pvscsi
        * virtio
    * virtio-blk

We use these values in get_translation() and setup_translation() by
introducing a new translation type: "TRANSLATION_MACHINE".

We treat this translation as TRANSLATION_NONE in fill_ata_edd(),
although this does not really matter since now the translation between
physical and logical geometry does not exist.

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>
Message-Id: <20190612093704.47175-6-shmuel.eiderman@oracle.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/block.c
src/block.h
src/hw/ahci.c
src/hw/ata.c
src/hw/esp-scsi.c
src/hw/lsi-scsi.c
src/hw/megasas.c
src/hw/mpt-scsi.c
src/hw/pvscsi.c
src/hw/virtio-blk.c
src/hw/virtio-scsi.c