[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Kevin O'Connor
On Tue, Jan 14, 2020 at 06:10:43PM +0100, Laszlo Ersek wrote: > On 01/14/20 10:25, Gerd Hoffmann wrote: > > Call find_prio("HALT") only once, on first is_bootprio_strict() call. > > Store the result in a variable and reuse it on subsequent calls. > > > > Signed-off-by: Gerd Hoffmann > > --- > >

[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Laszlo Ersek
On 01/14/20 10:25, Gerd Hoffmann wrote: > Call find_prio("HALT") only once, on first is_bootprio_strict() call. > Store the result in a variable and reuse it on subsequent calls. > > Signed-off-by: Gerd Hoffmann > --- > src/boot.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) >

[SeaBIOS] Re: [PATCH 3/3] nvme: skip initializing non-bootable devices

2020-01-14 Thread Philippe Mathieu-Daudé
On 1/14/20 10:25 AM, Gerd Hoffmann wrote: Check NVMe devices whenever they are bootable, skip initialization in case they are not. Signed-off-by: Gerd Hoffmann --- src/hw/nvme.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/hw/nvme.c b/src/hw/nvme.c index

[SeaBIOS] Re: [PATCH 2/3] virtio-scsi: skip initializing non-bootable devices

2020-01-14 Thread Philippe Mathieu-Daudé
On 1/14/20 10:25 AM, Gerd Hoffmann wrote: Check each disk attached to a virtio-scsi device whenever it is bootable and skip initialization in case it isn't. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé --- src/hw/virtio-scsi.c | 11 ++- 1 file changed, 10

[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Philippe Mathieu-Daudé
On 1/14/20 10:25 AM, Gerd Hoffmann wrote: Call find_prio("HALT") only once, on first is_bootprio_strict() call. Store the result in a variable and reuse it on subsequent calls. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé --- src/boot.c | 6 +- 1 file changed, 5

[SeaBIOS] Re: [PATCH 3/3] nvme: skip initializing non-bootable devices

2020-01-14 Thread Alexey Kirillov
Hi, 14.01.2020, 12:25, "Gerd Hoffmann" : > Check NVMe devices whenever they are bootable, > skip initialization in case they are not. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Alexey Kirillov > --- >  src/hw/nvme.c | 7 +++ >  1 file changed, 7 insertions(+) > > diff --git

[SeaBIOS] Re: [PATCH 2/3] virtio-scsi: skip initializing non-bootable devices

2020-01-14 Thread Alexey Kirillov
Hi, 14.01.2020, 12:25, "Gerd Hoffmann" : > Check each disk attached to a virtio-scsi device whenever > it is bootable and skip initialization in case it isn't. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Alexey Kirillov > --- >  src/hw/virtio-scsi.c | 11 ++- >  1 file changed, 10

[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Alexey Kirillov
Hi, 14.01.2020, 12:25, "Gerd Hoffmann" : > Call find_prio("HALT") only once, on first is_bootprio_strict() call. > Store the result in a variable and reuse it on subsequent calls. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Alexey Kirillov > --- >  src/boot.c | 6 +- >  1 file changed, 5

[SeaBIOS] [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Gerd Hoffmann
Call find_prio("HALT") only once, on first is_bootprio_strict() call. Store the result in a variable and reuse it on subsequent calls. Signed-off-by: Gerd Hoffmann --- src/boot.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/boot.c b/src/boot.c index

[SeaBIOS] [PATCH 3/3] nvme: skip initializing non-bootable devices

2020-01-14 Thread Gerd Hoffmann
Check NVMe devices whenever they are bootable, skip initialization in case they are not. Signed-off-by: Gerd Hoffmann --- src/hw/nvme.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/hw/nvme.c b/src/hw/nvme.c index 2e3aa38682c4..41f3b768528e 100644 --- a/src/hw/nvme.c +++

[SeaBIOS] [PATCH 2/3] virtio-scsi: skip initializing non-bootable devices

2020-01-14 Thread Gerd Hoffmann
Check each disk attached to a virtio-scsi device whenever it is bootable and skip initialization in case it isn't. Signed-off-by: Gerd Hoffmann --- src/hw/virtio-scsi.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/hw/virtio-scsi.c b/src/hw/virtio-scsi.c

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

2020-01-14 Thread Gerd Hoffmann
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