From owner-freebsd-virtualization@freebsd.org Sun Feb 26 22:52:22 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2B73CEEF64 for ; Sun, 26 Feb 2017 22:52:22 +0000 (UTC) (envelope-from sem@semmy.ru) Received: from sunner.semmy.ru (sunner.semmy.ru [IPv6:2a00:14d0:0:20::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8695BFEA for ; Sun, 26 Feb 2017 22:52:22 +0000 (UTC) (envelope-from sem@semmy.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=semmy.ru; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1ZMqLhnFGvewLxE8nWGrzmdkgxHiO+XcF+jPpXfp+S0=; b=tJaeBSMFPJkKl8YiTPtkxi4gLG IS/1Hn8v+sYNHv1bHIY9CZys5lEkhlYQXRc0h8piKrvPJcJ+FJr9Y5mcsn96AiAuRsYCJlvQglA1T Deys+3SobxzMyUWzsct7TaW9gfnxBpA2KhY2qrepjyjNqQJtH2cT3QZVVz3w3byuyo0o=; Received: from [37.204.164.247] (helo=homeipv6.semmy.ru) by sunner.semmy.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1ci7fu-0000b4-66 for freebsd-virtualization@FreeBSD.org; Mon, 27 Feb 2017 01:52:18 +0300 Subject: Re: bhyve passthrough problem after updated host to 10.3 To: freebsd-virtualization@FreeBSD.org References: From: Sergey Matveychuk Message-ID: <98d35860-7d18-1864-700f-29df58fb85ba@semmy.ru> Date: Mon, 27 Feb 2017 01:52:19 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 22:52:22 -0000 25.02.2017 6:42, Sergey Matveychuk пишет: > Hi. > > After updating my host from 10.0-RELEASE to 10.3-RELEASE-p11 I've got > problem with my network card passthrought: > > pci0:0:3:0: failed to read VPD data. > bge0: mem > 0xc0010000-0xc001ffff,0xc0020000-0xc002ffff,0xc0030000-0xc003ffff irq 36 > at device 3.0 on pci0 > bge0: APE FW version: NCSI v1.0.60.0 > bge0: CHIP ID 0x05719001; ASIC REV 0x5719; CHIP REV 0x57190; PCI-E > bge0: Try again > bge0: Try again > bge0: Try again > bge0: Try again > bge0: attaching PHYs failed > device_attach: bge0 attach returned 6 > > pciconf on the host system: > ppt0@pci0:3:0:1: class=0x020000 card=0x169d103c chip=0x165714e4 > rev=0x01 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'NetXtreme BCM5719 Gigabit Ethernet PCIe' > class = network > subclass = ethernet Oh, I found my message when I tried passthrough for a first time: https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-January/001973.html For 3 year I forgot how I fixed it. Now, after experiments I can say the card can work only on 2 slot and function=function on host. Example: -s 2:1,passthrough,3/0/1 -s 2:3,passthrough,3/0/3 It does not work on slot 3 and function 0 as vmrun.sh does. I have no idea why. So, current vmrun.sh is not an option for me.