]> git.ipfire.org Git - thirdparty/qemu.git/commit
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 Tokarev <mjt@tls.msk.ru>
Sat, 18 Jan 2025 10:43:32 +0000 (13:43 +0300)
commit7594c49b95453c085d4da3903e6ffb79bae07c50
tree5a38d5b647beb07490dbfb3971436cdc6a3e5c9d
parent30faa99558e4b12af174c5d35a96859ff1aa0232
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>
(cherry picked from commit 1ce979e7269a34d19ea1a65808df014d8b2acbf6)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/mem/cxl_type3.c