From nobody Wed Nov 02 15:22:08 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N2VxD64HGz4g98M; Wed, 2 Nov 2022 15:22:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N2VxD5cn4z3W8R; Wed, 2 Nov 2022 15:22:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667402528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ISr4EG7K+ScaGI7NNIJ+OHhJT4X3tA11XtWO1hjzaWI=; b=QxnYy4GWGl76IppQCQdmtdDV98dzvvV7OY8jYIZ9as3elpjqX5XnwExw0XhkgTh6rk+CoC wT4EG3QPaMwsK7EmzBn1dmIyC6LqTurWUKs5rxe9p9PpWLO3fpxaHBNfECE3hfE44sX831 W6bbayQnfaQIHpfvtcVRxb7kQRI1snpCA0nGMppXf9ZOiftPkttD9eXvs/WphGI2iFTMlG Ch8yDQk0RG58b7tf5KCBl6CG7epEfBCzr8AC3eWZIZH0QEgZhixJgzTiYiffBWzbDJ4j95 YiZ2xsTQIxMvwsHdnIDjZZbi5wPJgvhVsg3QB0kNulwTrH3bM/uLLLs3onBtpA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N2VxD4hLMz11K4; Wed, 2 Nov 2022 15:22:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A2FM8B6021942; Wed, 2 Nov 2022 15:22:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A2FM8RJ021941; Wed, 2 Nov 2022 15:22:08 GMT (envelope-from git) Date: Wed, 2 Nov 2022 15:22:08 GMT Message-Id: <202211021522.2A2FM8RJ021941@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 923704f7b8ef - main - vmw_pvscsi: Expand vcpuHint to 16 bit to aliagn with host side change. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 923704f7b8efefd988bedd88ab68540332efa3f8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667402528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ISr4EG7K+ScaGI7NNIJ+OHhJT4X3tA11XtWO1hjzaWI=; b=HdtQGCVUNxvLSeBEHqj2p5GzBjEiggz9yCa3RZAkhJUQldmc7ZwRhkvSef6ME1GfspNgOR unIwq43Sgy7Zd52VKxlu3MILCtZ62nHqBYtyCKqeFTfeACL0LREFJTnMdpLMpT9cbVj8Ap 8YwlJZ703OuyL0jabLvbDOVt7NNNLL6jMK7h32jHEjZFJnv97zBP/My9Wl4gvaOOnO6Rtd LvDcxGpSfBOotXmPMo3JgHdNLF4w4hEDGg6B0Hz75AKqD2pKH/TiIoLExAykA4LCDIU3dy pUpXFbDwy7BK4c5pwGWtyVof95WIFbufCjlBFoNtnTbrHpjlJ5bh2AgsH5skPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667402528; a=rsa-sha256; cv=none; b=tULdRE6dH2gxekG7rQf1BuJriJfRzWtha7ih8Nww6/xS7mbCQM6aNSwsEhKnjNeCwe7yFX QO8doTyfUYM7Z8+3/we3Ewt8y8J76U6P+fPXY1bRAiKSKHtcuZcuVyl7qgt3UKIIMBgfA3 PSo3mGMlFO11UVBOjeWnFfb0gRf6xC34iiJL5+QGiKhcGdEkztGGslMBqNl2EvjVS02ehv wB6r4cpyo6SpbPU31oEQJ2+u2RKRQTte6hD2FSv68b6p7QH8kePJnmF2ACP0jkMkWq8NA9 HSGpTDpO44VpdPVFXziYTVOkU9v2hRY5qe7GuhmkuxYxagOBec2wGeh9I2u+xg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=923704f7b8efefd988bedd88ab68540332efa3f8 commit 923704f7b8efefd988bedd88ab68540332efa3f8 Author: Wentao Wang AuthorDate: 2022-11-02 15:14:52 +0000 Commit: Warner Losh CommitDate: 2022-11-02 15:14:52 +0000 vmw_pvscsi: Expand vcpuHint to 16 bit to aliagn with host side change. vcpuHint has been expanded to 16 bit on host side to enable interruptions to be routed 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. This driver is for ESXi product which only supports x86/x64. They are little-endian. So there is no need to consider big-endian system. PR: 264840 Reviewed by: imp@, Zhenlei Huang --- sys/dev/vmware/pvscsi/pvscsi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/vmware/pvscsi/pvscsi.h b/sys/dev/vmware/pvscsi/pvscsi.h index 9f56823e9688..5ea7fd6ab2fd 100644 --- a/sys/dev/vmware/pvscsi/pvscsi.h +++ b/sys/dev/vmware/pvscsi/pvscsi.h @@ -120,8 +120,8 @@ struct pvscsi_ring_req_desc { uint8_t tag; uint8_t bus; uint8_t target; - uint8_t vcpu_hint; - uint8_t unused[59]; + uint16_t vcpu_hint; + uint8_t unused[58]; }; struct pvscsi_ring_cmp_desc {