diff options
author | Shmuel Eiderman <shmuel.eiderman@oracle.com> | 2018-11-01 17:14:42 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-11-10 13:07:29 -0500 |
commit | b44803247cfc86b38106049a2c5349548ca054df (patch) | |
tree | df5a9fb5c4ae4cafeb958df55c95e3280c93b9ca | |
parent | 14221cd86eadba82255fdc55ed174d401c7a0a04 (diff) | |
download | seabios-b44803247cfc86b38106049a2c5349548ca054df.tar.gz |
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 <liran.alon@oracle.com>
Reviewed-by: Mark Kanda <mark.kanda@oracle.com>
Signed-off-by: Shmuel Eiderman <shmuel.eiderman@oracle.com>
-rw-r--r-- | src/hw/pvscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c index d62d0a09..e0ea33cd 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); } |