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

next in thread | previous in thread | raw e-mail | index | archive | help
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?CABomu8PT-NRV6LvbZJypoYs%2ByBY=bv6m3a_80jhcmDTi5e9Nug>