aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@fujitsu.com>2025-01-15 15:58:34 +0800
committerMichael S. Tsirkin <mst@redhat.com>2025-01-15 13:07:30 -0500
commit1ce979e7269a34d19ea1a65808df014d8b2acbf6 (patch)
treeb17d3d81addc00a43e6d7b24443f05fbf5bf15b6
parent9fb1c9a1bb26e111ee5fa5538070cd684de14c08 (diff)
downloadqemu-1ce979e7269a34d19ea1a65808df014d8b2acbf6.zip
qemu-1ce979e7269a34d19ea1a65808df014d8b2acbf6.tar.gz
qemu-1ce979e7269a34d19ea1a65808df014d8b2acbf6.tar.bz2
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>
-rw-r--r--hw/mem/cxl_type3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.c
index bd76527..0ae1704 100644
--- a/hw/mem/cxl_type3.c
+++ b/hw/mem/cxl_type3.c
@@ -843,7 +843,7 @@ static void ct3_realize(PCIDevice *pci_dev, Error **errp)
ComponentRegisters *regs = &cxl_cstate->crb;
MemoryRegion *mr = &regs->component_registers;
uint8_t *pci_conf = pci_dev->config;
- unsigned short msix_num = 6;
+ unsigned short msix_num = 10;
int i, rc;
uint16_t count;