hw/cxl: Fix msix_notify: Assertion `vector < dev->msix_entries_nr`
authorLi Zhijian <lizhijian@fujitsu.com>
Wed, 15 Jan 2025 07:58:34 +0000 (15:58 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 15 Jan 2025 18:07:30 +0000 (13:07 -0500)
commit1ce979e7269a34d19ea1a65808df014d8b2acbf6
treeb17d3d81addc00a43e6d7b24443f05fbf5bf15b6
parent9fb1c9a1bb26e111ee5fa5538070cd684de14c08
hw/cxl: Fix msix_notify: Assertion `vector < dev->msix_entries_nr`

This assertion always happens when we sanitize the CXL memory device.
$ echo 1 > /sys/bus/cxl/devices/mem0/security/sanitize

It is incorrect to register an MSIX number beyond the device's capability.

Increase the device's MSIX number to cover the mailbox msix number(9).

Fixes: 43efb0bfad2b ("hw/cxl/mbox: Wire up interrupts for background completion")
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Message-Id: <20250115075834.167504-1-lizhijian@fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mem/cxl_type3.c