svn commit: r255647 - head/usr.sbin/bhyve

Peter Grehan grehan at FreeBSD.org
Tue Sep 17 18:42:14 UTC 2013


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);
 }


More information about the svn-src-all mailing list