Date: Tue, 17 Sep 2013 18:42:13 +0000 (UTC) From: Peter Grehan <grehan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255647 - head/usr.sbin/bhyve Message-ID: <201309171842.r8HIgDIk016454@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309171842.r8HIgDIk016454>