diff options
author | Sam Eiderman <shmuel.eiderman@oracle.com> | 2019-06-12 12:37:04 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-11-06 10:56:00 +0100 |
commit | 9caa19be0e534c687081fbdfcd301406e728c98c (patch) | |
tree | 588e9234ba792d7aedda3a5442032f9a22d773f4 /src/hw/virtio-blk.c | |
parent | cb56f61c109985ad71078b1fb2e65bd4d6ed1a59 (diff) | |
download | seabios-9caa19be0e534c687081fbdfcd301406e728c98c.tar.gz |
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>
Diffstat (limited to 'src/hw/virtio-blk.c')
-rw-r--r-- | src/hw/virtio-blk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hw/virtio-blk.c b/src/hw/virtio-blk.c index 88d7e54a..3e615b26 100644 --- a/src/hw/virtio-blk.c +++ b/src/hw/virtio-blk.c @@ -183,6 +183,8 @@ init_virtio_blk(void *data) status |= VIRTIO_CONFIG_S_DRIVER_OK; vp_set_status(&vdrive->vp, status); + + boot_lchs_find_pci_device(pci, &vdrive->drive.lchs); return; fail: |