From: Shmuel Eiderman Date: Thu, 1 Nov 2018 15:14:42 +0000 (+0200) Subject: pvscsi: Scan all 64 possible targets X-Git-Tag: rel-1.12.0~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b44803247cfc86b38106049a2c5349548ca054df;p=seabios.git pvscsi: Scan all 64 possible targets The max number of targets per PVSCSI controller is 64, not 7. This can easily be seen in QEMU PVSCSI emulation code (hw/scsi/vmw_pvscsi.c) as PVSCSI_MAX_DEVS, which defines the number of targets, have value of 64. Fixes: 83d60b3c474b ("Add pvscsi boot support") Reviewed-by: Liran Alon Reviewed-by: Mark Kanda Signed-off-by: Shmuel Eiderman --- diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c index d62d0a0..e0ea33c 100644 --- a/src/hw/pvscsi.c +++ b/src/hw/pvscsi.c @@ -310,7 +310,7 @@ init_pvscsi(void *data) struct pvscsi_ring_dsc_s *ring_dsc = NULL; pvscsi_init_rings(iobase, &ring_dsc); int i; - for (i = 0; i < 7; i++) + for (i = 0; i < 64; i++) pvscsi_scan_target(pci, iobase, ring_dsc, i); }