Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2018 20:12:24 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: Bhyve passthrough problems (update)
Message-ID:  <20180207201224.2c5c4c47@Papi.lobos>
In-Reply-To: <20180119175257.3f29d9d6@Papi.lobos>
References:  <20180117202250.6ef90c6d@Papi.lobos> <b85ae2a8-1656-9dcb-a117-564deeb66214@freebsd.org> <20180119175257.3f29d9d6@Papi.lobos>

index | next in thread | previous in thread | raw e-mail

On Fri, 19 Jan 2018 17:52:57 -0300
Mario Lobo <lobo@bsd.com.br> wrote:

> On Thu, 18 Jan 2018 00:58:08 -0800
> Peter Grehan <grehan@freebsd.org> wrote:
> 
> > Hi Mario,
> >   
> > > I'm trying to passthrough a firewire pci card to a windows 7 64
> > > guest.    
> > 
> >   First, you'll need to verify if that card supports MSI or MSI-x
> > since that is required by bhyve for passthru support. This can be
> > seen with 'pciconf -lbc' on the FreeBSD host.
> >   
> > > VM exits with:
> > > 
> > > Assertion failed: (mr->name == memp->name), function
> > > unregister_mem, file /usr/src/usr.sbin/bhyve/mem.c, line 265.
> > > Abort trap    
> > 
> >   This is bug in bhyve when running Windows with PCI devices that
> > have more than 1 memory BAR (e.g. Intel igb ethernet devices), due
> > to the order that Windows determines BAR sizes. I've been meaning
> > to fix this for a long time so will try and get to it.
> > 
> > later,
> > 
> > Peter.  
> 
> Hi there:
> 
> Well, now, even without setting up passthrough, the VM doesn't start
> (which it did, before I svned up /usr/src).
> 
> With vnc:
> 
> bhyve  -c 4       -s 0,amd_hostbridge       
> -s 3,ahci-hd,/Vmachines/disk.img,sectorsize=512       
> -s 4,ahci-cd,/Extra/Isos/Windows/Windows_7/null_dvd.iso       
> -s 10,virtio-net,tap0       
> -s 11,fbuf,tcp=0.0.0.0:5900,,w=1600,h=900,wait       
> -s 20,xhci,tablet       
> -s 31,lpc       
> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd       
> -m 4G -H -w WIN-764
> fbuf frame buffer base: 0x942e00000 [sz 16777216]
> 
> error:
> Assertion failed: (error == 0), function modify_bar_registration,
> file /usr/src/usr.sbin/bhyve/pci_emul.c, line 491. Abort trap
> 
> 
> Without vnc:
> 
> bhyve  -c 4       -s 0,amd_hostbridge       
> -s 3,ahci-hd,/Vmachines/disk.img,sectorsize=512       
> -s 4,ahci-cd,/Extra/Isos/Windows/Windows_7/null_dvd.iso       
> -s 10,virtio-net,tap0       
> -s 20,xhci,tablet       
> -s 31,lpc       
> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd       
> -m 4G -H -w WIN-764
> 
> error:
> Assertion failed: (mr->name == memp->name), function unregister_mem,
> file /usr/src/usr.sbin/bhyve/mem.c, line 265. Abort trap
> 
> 
> Revisions (/usr/src 11-STABLE):
> 
> working:               321652
> not working (current): 328163
> 
> 

Any updates on this issue?

Thanks,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio.... YET!!]
 
"UNIX was not designed to stop you from doing stupid things, 
because that would also stop you from doing clever things."


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180207201224.2c5c4c47>