Re: PCI passthrough not working with bhyve and NetBSD

2018-08-10 Thread Jaromír Doleček
MSI and MSI-X themselves are supported on amd64, though not every driver use it. Both wm(4) and bge(4) however do support it and use it, so should work. Maybe there is either some misunderstanding about the MSI support (e.g. our PCI subsystem doesn't detect it), or the PCI probe code tries to allo

Re: PCI passthrough not working with bhyve and NetBSD

2018-08-09 Thread Farid Joubbi
I think I know the cause of the problem. I posted this same question on the FreeBSD virtualization list, and received this reply which sounds plausible: You have to use MSI interrupts for pass-through devices for bhyve. Those errors look as if the guests are trying to use legacy INTx interrupts.

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-15 Thread Farid Joubbi
I have current installed on it now. It has both the Intel and Broadcom NICs with passthrough as well as the virtual NIC from bhyve. The virtual NIC works nice. I used it to fetch the installation sets. >From dmesg: [ 1.0448813] virtio1 at pci0 dev 5 function 0 [ 1.0448813] virtio1: Virtio Netw

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-15 Thread gary
"Farid Joubbi" wrote: => I tried the install CD for the latest HEAD-201807121210Z. => It can see both the NICs, but they don't work. => Trying to configure them with DHCP, it looks as if the NIC is sending a => DISCOVERY but timing out never receiving anything back (I doubt that it is => actually

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-15 Thread Farid Joubbi
I tried the install CD for the latest HEAD-201807121210Z. It can see both the NICs, but they don't work. Trying to configure them with DHCP, it looks as if the NIC is sending a DISCOVERY but timing out never receiving anything back (I doubt that it is actually sending anything on the wire). Then it

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-14 Thread Farid Joubbi
I have a working configuration for NetBSD on bhyve. It's not a problem with vm-bhyve https://github.com/churchers/vm-bhyve NetBSD 7.1.2 does not initiate the bge0 nor wm0 at all under bhyve, as I wrote earlier. It seems to run perfectly fine other than that. The "normal" vioif0 works fine. I trie

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-09 Thread Travis Paul
> On 9 Jul 2018, at 5:58 AM, Farid Joubbi wrote: > > Thanks for the reply. > After reading it, I realize that the learning curve for me to understand what > is going on is a bit too steep. > I know only some basic C programming from university courses several years > ago. > This kind of learn

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-09 Thread David Brownlee
On 8 July 2018 at 22:58, Farid Joubbi wrote: > Thanks for the reply. > After reading it, I realize that the learning curve for me to understand > what is going on is a bit too steep. > I know only some basic C programming from university courses several years > ago. > This kind of learning was not

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-09 Thread Farid Joubbi
Thanks for the reply. After reading it, I realize that the learning curve for me to understand what is going on is a bit too steep. I know only some basic C programming from university courses several years ago. This kind of learning was not what I had in mind when I figured that I want to run a ne

Re: PCI passthrough not working with bhyve and NetBSD

2018-07-08 Thread Greg Troxel
Farid Joubbi writes: > I have a server running FreeBSD 11.1-RELEASE-p11. > I would like to run NetBSD using bhyve on that. That's interesting; there has been little discussion of running NetBSD under bhyve so far. > I have configured passthrough of two different PCI Express network > interface