From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1753CCA480 for ; Tue, 14 Jun 2022 02:10:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352617AbiFNCKi (ORCPT ); Mon, 13 Jun 2022 22:10:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352476AbiFNCJW (ORCPT ); Mon, 13 Jun 2022 22:09:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18FAD369C6; Mon, 13 Jun 2022 19:06:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9584660B66; Tue, 14 Jun 2022 02:06:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28D97C34114; Tue, 14 Jun 2022 02:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655172393; bh=fc7MFvLBl5S0Dpre7Mc7IFBpLtZ3FB1t+p8Ol2drvI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O48t5YSGjGuepBoNLUI+B74+Z15IU1NrQeqodouLmwEGmYX9NA8wqIHOwpJeNWUUa THg9ei8nI7rGckElZ2BcUBj01/ZwIBE2Zmt4ALb0zy2FvoK5S2nuW7lOVxGoyjmryt 5mIc7vBgrHxAMKXdkz2L3IAmCnhEVGr5kb85ay/pto1vH1KH+IOCMtkW4J8n4KdxOZ WiR6jmVra57IF2ccKtBq4KNaCC9A6GYUd/YDRUek71iPAmkPywUxDVdUn1lRAVp/qD pYN6/IZdK/7Hf3HQv/WqaCCFYQRBWMXMXXk91QKTB2hju9Fj/0o+GA6Nvd6In4fuIO lUvG4vAsd8TRw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wentao Wang , "Martin K . Petersen" , Sasha Levin , jgill@vmware.com, pv-drivers@vmware.com, jejb@linux.vnet.ibm.com, linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 5.17 20/43] scsi: vmw_pvscsi: Expand vcpuHint to 16 bits Date: Mon, 13 Jun 2022 22:05:39 -0400 Message-Id: <20220614020602.1098943-20-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220614020602.1098943-1-sashal@kernel.org> References: <20220614020602.1098943-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wentao Wang [ Upstream commit cf71d59c2eceadfcde0fb52e237990a0909880d7 ] 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 Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- 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.35.1