Skip to content

Commit 1ce979e

Browse files
zhijianli88mstsirkin
authored andcommitted
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: 43efb0b ("hw/cxl/mbox: Wire up interrupts for background completion") Signed-off-by: Li Zhijian <[email protected]> Message-Id: <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 9fb1c9a commit 1ce979e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/mem/cxl_type3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ static void ct3_realize(PCIDevice *pci_dev, Error **errp)
843843
ComponentRegisters *regs = &cxl_cstate->crb;
844844
MemoryRegion *mr = &regs->component_registers;
845845
uint8_t *pci_conf = pci_dev->config;
846-
unsigned short msix_num = 6;
846+
unsigned short msix_num = 10;
847847
int i, rc;
848848
uint16_t count;
849849

0 commit comments

Comments
 (0)