From owner-freebsd-xen@FreeBSD.ORG Wed Nov 13 18:57:01 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 44AFF7B1 for ; Wed, 13 Nov 2013 18:57:01 +0000 (UTC) Received: from mail-pd0-x230.google.com (mail-pd0-x230.google.com [IPv6:2607:f8b0:400e:c02::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1F82227B8 for ; Wed, 13 Nov 2013 18:57:01 +0000 (UTC) Received: by mail-pd0-f176.google.com with SMTP id r10so798077pdi.7 for ; Wed, 13 Nov 2013 10:57:00 -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=oMnq+WaSvJgLDG0MUuoExpvtnNsKzXLeQGEJyBTV92g=; b=h5NG44rwXi4VVl8aagziByNyr46u5+j0Hmt6Oo0YKY2H6y6k8bWoh5evHlh+Fqwd98 H9aWMkz4/iIHP+SLcn+7iezRo2bOTWC9i3sO/v5+iodtms4Eb2bS0Q2RJlwItcVmFMID /3m82d44a4RzP99YlLoI5r07J5rqDiEKlspD4AbanJsrPJzb1L7zT5iT0OmiWgHS9l1N O9ojCZ+UNZ6WmJ1m2n66exYQQ/on3KgMOpIs/7YibTTT1BUIsyYAamuBIjzJraKCn3g3 p6yv44zP9n/MZd2oB6+AkB5DX/79XoB7KhFa7E2GsxZjtbAWbduJcr5Yjjj261phfhao /dig== MIME-Version: 1.0 X-Received: by 10.69.29.107 with SMTP id jv11mr15754459pbd.147.1384369020690; Wed, 13 Nov 2013 10:57:00 -0800 (PST) Received: by 10.70.66.231 with HTTP; Wed, 13 Nov 2013 10:57:00 -0800 (PST) In-Reply-To: References: Date: Thu, 14 Nov 2013 05:57:00 +1100 Message-ID: Subject: Re: Hang on subsequent boot with PCI-passthrough From: Hilton Day To: Marek R Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 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: Wed, 13 Nov 2013 18:57:01 -0000 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" >