[SeaBIOS] [PATCH v2 0/2] Initialize only bootable virtio-blk/virtio-blk

Alexey Kirillov posted 2 patches 4 years, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/seabios tags/patchew/20191230100738.6797-1-lekiravi@yandex-team.ru
There is a newer version of this series
src/boot.c           |  5 +++++
src/hw/virtio-blk.c  | 11 ++++++++++-
src/hw/virtio-scsi.c | 11 ++++++++++-
src/util.h           |  1 +
4 files changed, 26 insertions(+), 2 deletions(-)
[SeaBIOS] [PATCH v2 0/2] Initialize only bootable virtio-blk/virtio-blk
Posted by Alexey Kirillov 4 years, 3 months ago
This patch aimed to avoid problem with uninitialized virtio-blk and
virtio-scsi boot devices.
Currently, 12 KiB of memory is allocated for each virtio-blk/scsi, so
no more than about 10 devices can be initialized. If the device is not
initialized, we cannot boot from it. So, if we have more than 10 devices,
we can't boot from any of the following (11, 12, etc.).
We can initialize only bootable devices, i.e. listed in boot order list,
that this patch does.

Alexey Kirillov (2):
  boot: Detect strict boot order (HALT record) in function
  virtio: Do not init non-bootable devices

 src/boot.c           |  5 +++++
 src/hw/virtio-blk.c  | 11 ++++++++++-
 src/hw/virtio-scsi.c | 11 ++++++++++-
 src/util.h           |  1 +
 4 files changed, 26 insertions(+), 2 deletions(-)

-- 
2.17.1
_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-leave@seabios.org