diff options
author | grehan <grehan@FreeBSD.org> | 2013-09-17 18:42:13 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2013-09-17 18:42:13 +0000 |
commit | 6f381c7c573310aa336d1c71283b282b8da66ba5 (patch) | |
tree | 7bfa39824e304f72763377c77c5ef434453c3f54 | |
parent | 6a5810ff62dcf94d040fcb00ad2bdcf1a8b1fe87 (diff) | |
download | FreeBSD-src-6f381c7c573310aa336d1c71283b282b8da66ba5.zip FreeBSD-src-6f381c7c573310aa336d1c71283b282b8da66ba5.tar.gz |
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)
-rw-r--r-- | usr.sbin/bhyve/virtio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/virtio.c b/usr.sbin/bhyve/virtio.c index cdc9228..c26272b 100644 --- a/usr.sbin/bhyve/virtio.c +++ b/usr.sbin/bhyve/virtio.c @@ -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); } |