Author: grehan
Date: Tue Sep 17 18:42:13 2013
New Revision: 255647
URL: http://svnweb.freebsd.org/changeset/base/255647

Log:
  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)

Modified:
  head/usr.sbin/bhyve/virtio.c

Modified: head/usr.sbin/bhyve/virtio.c
==============================================================================
--- head/usr.sbin/bhyve/virtio.c        Tue Sep 17 18:41:32 2013        
(r255646)
+++ head/usr.sbin/bhyve/virtio.c        Tue Sep 17 18:42:13 2013        
(r255647)
@@ -139,7 +139,8 @@ vi_intr_init(struct virtio_softc *vs, in
                        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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to