Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2015 20:48:40 -0700
From:      Trent Thompson <trentnthompson@gmail.com>
To:        Sergey Manucharian <sm@ara-ler.com>
Cc:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>
Subject:   Re: {Spam?} Re: bhyve PCI pass-through to Linux guest
Message-ID:  <CAE7bWBpZO8rNz9O=VW_ZYNpNPNH%2Bzqjjs8vJiTbVSAQDsxVVsA@mail.gmail.com>
In-Reply-To: <5678BECC.7090200@freebsd.org>
References:  <20151220045821.GG22018@dendrobates.araler.com> <56763672.3090207@freebsd.org> <20151220051015.GH22018@dendrobates.araler.com> <56763A0B.8010802@freebsd.org> <20151220053644.GI22018@dendrobates.araler.com> <20151220215240.GB4064@dendrobates.araler.com> <5678BECC.7090200@freebsd.org>

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

I've seen some success passing through devices that have their driver
disabled in the FreeBSD kernel.
See the USB 3.0 pass through that Eresia set up in iohyve.
https://github.com/pr1ntf/iohyve/wiki/USB-3.0-PCI-Controller-Pass-through

When he disabled the kernel module in FreeBSD, he can then use the device
in the bhyve guest.

Unfortunately, I have not worked on this specific problem myself, and
cannot speak for this solution.

-Trent

On Mon, Dec 21, 2015 at 8:09 PM, Peter Grehan <grehan@freebsd.org> wrote:

> Hi Sergey,
>
> This is pretty reproducible:
>>
>> I pass trough a PCI device (USB controller) to a Linux guest. It works
>> properly. Then I halt the VM, make sure that bhyve destroyed it and run
>> Windows guest with the same PCI device passed-through.
>>
>> Windows device manager does show the device, however, e.g. a flash drive
>> plugged in is not presented to Windows, instead it's being processed by
>> FreeBSD.
>>
>> After that it does not work in Linux guest as well. Kernel module (vmm)
>> unloading and reloading does not help.
>>
>
>  The flash drive being processed by FreeBSD would indicate that it has
> ownership of the device. Would you be able to try a 'pciconf -vl' after the
> Linux guest exists, and after the Windows guest exits ?
>
> later,
>
> Peter.
>
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> https://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?CAE7bWBpZO8rNz9O=VW_ZYNpNPNH%2Bzqjjs8vJiTbVSAQDsxVVsA>