Re: Hang on subsequent boot with PCI-passthrough

2013-11-13 Thread Marek R
Hello Hilton,

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

Marek

On 13 November 2013 19:57, Hilton Day  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  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-unsubscr...@freebsd.org"
>
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Re: Hang on subsequent boot with PCI-passthrough

2013-11-13 Thread Hilton Day
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  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-unsubscr...@freebsd.org"
>
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"


Hang on subsequent boot with PCI-passthrough

2013-11-12 Thread Marek R
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-unsubscr...@freebsd.org"