>> bge0@pci0:2:0:0:        class=0x020000 card=0x06471025 chip=0x16b514e4 
>> rev=0x10 hdr=0x00
>> sdhci_pci0@pci0:2:0:1:  class=0x080501 card=0x06471025 chip=0x16bc14e4 
>> rev=0x10 hdr=0x00
>> none2@pci0:2:0:2:       class=0x088000 card=0x06471025 chip=0x16be14e4 
>> rev=0x10 hdr=0x00
>> none3@pci0:2:0:3:       class=0x088000 card=0x06471025 chip=0x16bf14e4 
>> rev=0x10 hdr=0x00


Passthrough stub driver is part of vmm.ko and if it was present early in boot,  
you should see ppt@pciD:B:S:F[Domain:Bus:Slot:Function] in pciocnf list above. 
Given that bge driver claimed 2/0/0, most likely vmm.ko failed to load or 
probably was not present. Do you have vmm_load=“YES” in /boot/loader.conf as 
mentioned in https://wiki.freebsd.org/bhyve/pci_passthru? 
<https://wiki.freebsd.org/bhyve/pci_passthru?> 

If you already have loader.conf configured correctly, you can try to manually 
load vmm.ko once system is booted and see dmesg for any problem in loading it 
like kernel mismatch, missing symbol[One common I usually encounter is KTRACE 
define in sys/modules/vmm/Makefile but kernel config is missing “option 
KTRACE”] etc.

Thanks,
Anish


> On Nov 28, 2014, at 5:05 PM, Craig Rodrigues <rodr...@freebsd.org> wrote:
> 
> On Fri, Nov 28, 2014 at 1:10 PM, Nikos Vassiliadis <nv...@gmx.com> wrote:
> 
>> Hi,
>> 
>> I am trying to use PCI passthrough to pass the bge device to a guest but I
>> am doing something wrong. I have tried several combinations of pptdevs like
>> "2/0/0 2/0/1 2/0/2 2/0/3" but it always fails on 2/0/0. Any ideas what I
>> could try?
>> 
> 
> Did you read this: https://wiki.freebsd.org/bhyve/pci_passthru ?
> 
> After following those instructions, what is the output of pciconf -l -v
> before and after enabling PCI passthru?
> On the host and in the guest?
> 
> 
> --
> Craig
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to 
> "freebsd-virtualization-unsubscr...@freebsd.org"

_______________________________________________
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to