提交 06ae2d99 编写于 作者: W Wentao Wang 提交者: Zheng Zengkai

scsi: vmw_pvscsi: Expand vcpuHint to 16 bits

stable inclusion
from stable-v5.10.124
commit f416fee125d4e59e9038943c2bfcdbc904d52866
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6E7

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f416fee125d4e59e9038943c2bfcdbc904d52866

--------------------------------

[ Upstream commit cf71d59c ]

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.comSigned-off-by: NWentao Wang <wwentao@vmware.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
上级 6ff5fcf2
...@@ -333,8 +333,8 @@ struct PVSCSIRingReqDesc { ...@@ -333,8 +333,8 @@ struct PVSCSIRingReqDesc {
u8 tag; u8 tag;
u8 bus; u8 bus;
u8 target; u8 target;
u8 vcpuHint; u16 vcpuHint;
u8 unused[59]; u8 unused[58];
} __packed; } __packed;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册