[PATCH] vmw_pvscsi: expand vcpuHint to 16 bit.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 444507afb19f0384a3ad82fde04b78f439b42f0b Mon Sep 17 00:00:00 2001
From: Wentao Wang <wwentao@xxxxxxxxxx>
Date: Thu, 2 Jun 2022 11:42:44 -0400
Subject: [PATCH] vmw_pvscsi: expand vcpuHint to 16 bit.

vcpuHint has been expanded to 16 bit on host to enable to route 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 platform host side can get correct value.

Signed-off-by: Wentao Wang <wwentao@xxxxxxxxxx>
---
 drivers/scsi/vmw_pvscsi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/vmw_pvscsi.h b/drivers/scsi/vmw_pvscsi.h
index 51a82f7803d3..9d16cf925483 100644
--- a/drivers/scsi/vmw_pvscsi.h
+++ b/drivers/scsi/vmw_pvscsi.h
@@ -331,8 +331,8 @@ struct PVSCSIRingReqDesc {
 	u8	tag;
 	u8	bus;
 	u8	target;
-	u8	vcpuHint;
-	u8	unused[59];
+	u16	vcpuHint;
+	u8	unused[58];
 } __packed;
 
 /*
-- 
2.30.2






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux