aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@fujitsu.com>2025-02-03 16:19:04 +0000
committerMichael S. Tsirkin <mst@redhat.com>2025-02-21 07:18:42 -0500
commit8f90a54cfafe8c93a71930a96a63ccbd074f4142 (patch)
tree00a830f4ee29583f57d9691036d4e847b5a8edc6 /rust/qemu-api
parent14998e50c3638b07946ebe5972a327cc26e9f03c (diff)
downloadqemu-8f90a54cfafe8c93a71930a96a63ccbd074f4142.zip
qemu-8f90a54cfafe8c93a71930a96a63ccbd074f4142.tar.gz
qemu-8f90a54cfafe8c93a71930a96a63ccbd074f4142.tar.bz2
hw/cxl: Introduce CXL_T3_MSIX_VECTOR enumeration
Introduce the `CXL_T3_MSIX_VECTOR` enumeration to specify MSIX vector assignments specific to the Type 3 (T3) CXL device. The primary goal of this change is to encapsulate the MSIX vector uses that are unique to the T3 device within an enumeration, improving code readability and maintenance by avoiding magic numbers. This organizational change allows for more explicit references to each vector’s role, thereby reducing the potential for misconfiguration. It also modified `mailbox_reg_init_common` to accept the `msi_n` parameter, reflecting the new MSIX vector setup. This pertains to the T3 device privately; other endpoints should refrain from using it, despite its public accessibility to all of them. Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Message-Id: <20250203161908.145406-2-Jonathan.Cameron@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'rust/qemu-api')
0 files changed, 0 insertions, 0 deletions