Skip to content

Commit

Permalink
scsi: vmw_pvscsi: Expand vcpuHint to 16 bits
Browse files Browse the repository at this point in the history
[ Upstream commit cf71d59 ]

vcpuHint has been expanded to 16 bit on host to enable routing to more
CPUs. Guest side should align with the change. This change has been tested
with hosts with 8-bit and 16-bit vcpuHint, on both platforms host side can
get correct value.

Link: https://lore.kernel.org/r/EF35F4D5-5DCC-42C5-BCC4-29DF1729B24C@vmware.com
Signed-off-by: Wentao Wang <wwentao@vmware.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Wentao Wang authored and gregkh committed Jun 22, 2022
1 parent 0e9994b commit f416fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/vmw_pvscsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ struct PVSCSIRingReqDesc {
u8 tag;
u8 bus;
u8 target;
u8 vcpuHint;
u8 unused[59];
u16 vcpuHint;
u8 unused[58];
} __packed;

/*
Expand Down

0 comments on commit f416fee

Please sign in to comment.