nvme_disk: Re-enable MSI-X.

It now works in QEMU, probably following the addition of 64-bit
address support in hrev55542.
This commit is contained in:
Augustin Cavalier 2021-10-26 14:17:43 -04:00
parent 9710cdc6b3
commit b69c9008dd

View File

@ -256,7 +256,6 @@ nvme_disk_init_device(void* _info, void** _cookie)
uint8 irq = info->info.u.h0.interrupt_line;
if (sPCIx86Module != NULL) {
#if 0
if (sPCIx86Module->get_msix_count(info->info.bus, info->info.device,
info->info.function)) {
uint8 msixVector = 0;
@ -267,9 +266,7 @@ nvme_disk_init_device(void* _info, void** _cookie)
TRACE_ALWAYS("using MSI-X\n");
irq = msixVector;
}
} else
#endif
if (sPCIx86Module->get_msi_count(info->info.bus,
} else if (sPCIx86Module->get_msi_count(info->info.bus,
info->info.device, info->info.function) >= 1) {
uint8 msiVector = 0;
if (sPCIx86Module->configure_msi(info->info.bus, info->info.device,