Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2014 21:02:06 -0800
From:      Anish Gupta <akgupt3@gmail.com>
To:        Nikos Vassiliadis <nvass@gmx.com>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: bhyve: Unsupported MSI-X configuration: 2/0/0
Message-ID:  <1B9C5228-5549-412C-AAE9-5053C86EDB9D@gmail.com>
In-Reply-To: <CAG=rPVfSXAxeJ3bB0ughSej2uv2-iQTqv-7Yp6PtBZo05RTUvw@mail.gmail.com>
References:  <5478E4C4.3080203@gmx.com> <CAG=rPVfSXAxeJ3bB0ughSej2uv2-iQTqv-7Yp6PtBZo05RTUvw@mail.gmail.com>

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

>> 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 <rodrigc@FreeBSD.org> wrote:
> 
> On Fri, Nov 28, 2014 at 1:10 PM, Nikos Vassiliadis <nvass@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-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B9C5228-5549-412C-AAE9-5053C86EDB9D>