From owner-freebsd-xen@FreeBSD.ORG Thu Nov 14 06:34:43 2013 Return-Path: Delivered-To: freebsd-xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D6C0D8A for ; Thu, 14 Nov 2013 06:34:43 +0000 (UTC) Received: from mail-pb0-x231.google.com (mail-pb0-x231.google.com [IPv6:2607:f8b0:400e:c01::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DF9892094 for ; Thu, 14 Nov 2013 06:34:42 +0000 (UTC) Received: by mail-pb0-f49.google.com with SMTP id um1so1555867pbc.8 for ; Wed, 13 Nov 2013 22:34:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/7hB5q5VdUPQppYmDEC+Az2yAblD56+BG4+5yVp/sFo=; b=Lv7Wckty86rpEzCryzcPwxuH6aSfSvgGlVyiCJg6frvI25HS4QwyYaxsU2hVE5qIem P7xuR4XDbLdpmfFslRG4tAhpY/XAf/VvQhV7/CyEgLVIVyibUJoX2JNcOoTC8iJSBJ/E 9d3XPpaOoAhV3ZUaJMgyTWOt1hFGSWqTaOyn1C9jB308rsXItfci+R5/96l3X4KE9xG+ 7mPoBWeZs0Urvb4u+cUkk6vt0q7j41fsGAsxKWmQAEke7baxfPufSgxFMxqmzZHQ2ENK L3Y/lvzW921bQy50CqM9XHTQ0cZUwZx9fGxqoLDYKYcWQ6wJAtc3F80fNpoJpnR4/VQ9 kkJg== MIME-Version: 1.0 X-Received: by 10.68.228.138 with SMTP id si10mr45581125pbc.13.1384410882149; Wed, 13 Nov 2013 22:34:42 -0800 (PST) Received: by 10.66.75.167 with HTTP; Wed, 13 Nov 2013 22:34:42 -0800 (PST) In-Reply-To: References: Date: Thu, 14 Nov 2013 07:34:42 +0100 Message-ID: Subject: Re: Hang on subsequent boot with PCI-passthrough From: Marek R To: Hilton Day Content-Type: text/plain; charset=UTF-8 Cc: freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 06:34:43 -0000 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-unsubscribe@freebsd.org" > >