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

Alexey Kirillov posted 2 patches 4 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/seabios tags/patchew/20200107171917.7535-1-lekiravi@yandex-team.ru
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 v3 0/2] Initialize only bootable virtio-blk/virtio-blk
Posted by Alexey Kirillov 4 years, 2 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
[SeaBIOS] Re: [PATCH v3 0/2] Initialize only bootable virtio-blk/virtio-blk
Posted by Gerd Hoffmann 4 years, 2 months ago
On Tue, Jan 07, 2020 at 08:19:15PM +0300, Alexey Kirillov wrote:
> 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

Applied & pushed.

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