On Mon, 20 Dec 2021 11:05:14 -0800, Alexey Makhalov wrote:
PVSCSI implementation in VMware hypervisor under specific configuration ("SCSI Bus Sharing" set to "Physical") returns zero dataLen in completion descriptor for read_capacity_16. As a result, the kernel can not detect proper disk geometry. It can be recognized by the kernel message: [ 0.776588] sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
PVSCSI implementation in QEMU does not set dataLen at all keeping it zeroed, leading to the boot hang, as was reported by Shmulik Ladkani.
[...]
Applied to 5.16/scsi-fixes, thanks!
[1/1] scsi: vmw_pvscsi: Set residual data length conditionally https://git.kernel.org/mkp/scsi/c/142c779d05d1