]> xenbits.xensource.com Git - seabios.git/commitdiff
pvscsi: Scan all 64 possible targets
authorShmuel Eiderman <shmuel.eiderman@oracle.com>
Thu, 1 Nov 2018 15:14:42 +0000 (17:14 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 10 Nov 2018 18:07:29 +0000 (13:07 -0500)
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 <liran.alon@oracle.com>
Reviewed-by: Mark Kanda <mark.kanda@oracle.com>
Signed-off-by: Shmuel Eiderman <shmuel.eiderman@oracle.com>
src/hw/pvscsi.c

index d62d0a097bbb0be9a61b5c331a49c5dfb7525b57..e0ea33cd751c291428a7c62e74b310b73902981a 100644 (file)
@@ -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);
 }