Pass the number of supported vectors to pci_emul_add_msicap() and
not the actual PCI BAR number. Reviewed by: neel Approved by: re@ (blanket)
This commit is contained in:
parent
23916a0385
commit
aaa3016924
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255647
@ -139,7 +139,8 @@ vi_intr_init(struct virtio_softc *vs, int barnum, int use_msix)
|
||||
return (1);
|
||||
} else {
|
||||
vs->vs_flags &= ~VIRTIO_USE_MSIX;
|
||||
pci_emul_add_msicap(vs->vs_pi, barnum);
|
||||
/* Only 1 MSI vector for bhyve */
|
||||
pci_emul_add_msicap(vs->vs_pi, 1);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user