git: 923704f7b8ef - main - vmw_pvscsi: Expand vcpuHint to 16 bit to aliagn with host side change.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 02 Nov 2022 15:22:08 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=923704f7b8efefd988bedd88ab68540332efa3f8

commit 923704f7b8efefd988bedd88ab68540332efa3f8
Author:     Wentao Wang <wwentao@vmware.com>
AuthorDate: 2022-11-02 15:14:52 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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 {