[SLOF] [PATCH] base: increase catpad buffer

Nikunj A Dadhania nikunj at linux.vnet.ibm.com
Tue Nov 28 18:38:09 AEDT 2017


Current buffer of 1K is not sufficient, and causes exception if more than 20
devices are used with bootindex. Increase the buffer size to 16K

Reported here: https://github.com/qemu/SLOF/issues/3

Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>

---

qemu-system-ppc64 -nographic -nodefaults -serial stdio -monitor pty -m 2G \
-device virtio-scsi-pci    \
`for ((i=2;i<=50;i++)) ; \
do echo -n "  -drive file=/tmp/storage$i.qcow2,if=none,id=drive$i,format=qcow2 \
-device
scsi-hd,drive=drive$i,id=disk$i,channel=0,scsi-id=0,lun=$i,bootindex=$i"; \
done;` \
-drive file=guest.disk,if=none,id=drv1,format=qcow2,cache=none \
-device scsi-hd,drive=drv1,bootindex=1 -boot menu=on,splash-time=3000,strict=on
---
 slof/fs/base.fs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slof/fs/base.fs b/slof/fs/base.fs
index edd474e..b885d28 100644
--- a/slof/fs/base.fs
+++ b/slof/fs/base.fs
@@ -53,7 +53,7 @@ VARIABLE mask -1 mask !
 ;
 
 
-CREATE $catpad 400 allot
+CREATE $catpad 4000 allot
 : $cat ( str1 len1 str2 len2 -- str3 len3 )
    >r >r dup >r $catpad swap move
    r> dup $catpad + r> swap r@ move
-- 
2.13.5



More information about the SLOF mailing list