Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2013 07:34:42 +0100
From:      Marek R <marek321@gmail.com>
To:        Hilton Day <hilton.day@gmail.com>
Cc:        freebsd-xen@freebsd.org
Subject:   Re: Hang on subsequent boot with PCI-passthrough
Message-ID:  <CAF%2Ba0-HuFZ-UbX48SOT%2BZE58JUfoaFyag3k3yquiRo9RRQ9M1g@mail.gmail.com>
In-Reply-To: <CABomu8PT-NRV6LvbZJypoYs%2ByBY=bv6m3a_80jhcmDTi5e9Nug@mail.gmail.com>
References:  <CAF%2Ba0-G1mXpyf=Ve3TvC35TV%2B9Q6k%2B3oVD-7Y_xP2uMGxZMwxQ@mail.gmail.com> <CABomu8PT-NRV6LvbZJypoYs%2ByBY=bv6m3a_80jhcmDTi5e9Nug@mail.gmail.com>

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

Thank you for your reply. The guest boots properly now.

Marek

On 13 November 2013 19:57, Hilton Day <hilton.day@gmail.com> wrote:
> Hi Marek,
>
> This is a known issue with the LSI HBA's which affects virtual instances
> (VMware, Xen etc)
>
> Add these lines to /boot/loader.conf:
> hw.pci.enable_msi=1
> hw.pci.enable_msix=0
>
> Hilton.
>
>
> On Wed, Nov 13, 2013 at 4:07 AM, Marek R <marek321@gmail.com> wrote:
>>
>> I'm trying to passthrough a LSI HBA to a fbsd xen hvm guest.
>> The problem is, it only works the first time. On subsequent boots fbsd
>> hangs on the LSI driver, trying to initialize it.
>> I presume this is because the PCI device is left in a different state
>> than right after the host boot.
>> The HBA supports function level reset and I tested it with another OS
>> to make sure it indeed works.
>>
>> Steps to reproduce:
>> 1. Boot host.
>> 2. Boot fbsd guest with passed PCI device. Fbsd boots fine.
>> 3. Restart the guest. Boot hangs on device initialization.
>>
>> The fbsd guest reboots fine without the passed in device.
>>
>> The host is Linux, Xen is 4.3.0. Tried with fbsd 9.2 and 10beta3. The
>> host does not initialize the device (it's "hidden" with pciback)
>>
>> Is this a fbsd bug? Is there maybe some setting or boot option I could
>> try to fix this?
>> _______________________________________________
>> freebsd-xen@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-xen
>> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org"
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF%2Ba0-HuFZ-UbX48SOT%2BZE58JUfoaFyag3k3yquiRo9RRQ9M1g>