aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWentao Wang <wwentao@vmware.com>2022-11-02 15:14:52 +0000
committerWarner Losh <imp@FreeBSD.org>2022-11-02 15:14:52 +0000
commit923704f7b8efefd988bedd88ab68540332efa3f8 (patch)
treebbf7764eafddac19788903b7ca335f7191852c33
parenta7222b3cc3417929b520b96672af86a19902d8a9 (diff)
downloadsrc-923704f7b8efefd988bedd88ab68540332efa3f8.tar.gz
src-923704f7b8efefd988bedd88ab68540332efa3f8.zip
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
-rw-r--r--sys/dev/vmware/pvscsi/pvscsi.h4
1 files 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 {