From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 29 05:02:10 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 420EB451; Sat, 29 Nov 2014 05:02:10 +0000 (UTC) Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [IPv6:2607:f8b0:400e:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 149236DE; Sat, 29 Nov 2014 05:02:10 +0000 (UTC) Received: by mail-pa0-f49.google.com with SMTP id eu11so7688335pac.8 for ; Fri, 28 Nov 2014 21:02:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=iwPCFAlmyhZS2EoeKpGdKD/wqUQUkIHoKMvxrycxe74=; b=R4/BtV+s7c8/DMGnoqbMbaEMRwIgPapnJ/A5PaSh5RnHvCYr1Z5gyacE/D+FXEZqeP EyXSgZSa9+0ZLTgADX8iDGCs7KvhivwDDIxaB9E+b9uzAabXvn2mRkx133TchbTVIIpG w5Bw6eXcfA8rrd8FzNvhyoGzNN1ebqeBOaA8EHdjyCJSEyFKHNY8ZZMOATE72BleEVwy J93p5dfC3c/BBkaOG85jg+LmDNgw3MEnVpraqlPQ9uJ0auOBONTBO32ic2X35C7Uav1n m4EsK5/Dde72njZ5QaUgx9WWzko8bWubdqHWm0YE7vhinLfvcdbp0SCbnqKwKeAYqdEf MaPQ== X-Received: by 10.68.211.193 with SMTP id ne1mr79158858pbc.49.1417237329409; Fri, 28 Nov 2014 21:02:09 -0800 (PST) Received: from [192.168.1.3] ([98.248.138.12]) by mx.google.com with ESMTPSA id o5sm11390076pdr.50.2014.11.28.21.02.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 21:02:08 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: bhyve: Unsupported MSI-X configuration: 2/0/0 From: Anish Gupta In-Reply-To: Date: Fri, 28 Nov 2014 21:02:06 -0800 Message-Id: <1B9C5228-5549-412C-AAE9-5053C86EDB9D@gmail.com> References: <5478E4C4.3080203@gmx.com> To: Nikos Vassiliadis X-Mailer: Apple Mail (2.1993) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 29 Nov 2014 05:02:10 -0000 >> bge0@pci0:2:0:0: class=3D0x020000 card=3D0x06471025 = chip=3D0x16b514e4 rev=3D0x10 hdr=3D0x00 >> sdhci_pci0@pci0:2:0:1: class=3D0x080501 card=3D0x06471025 = chip=3D0x16bc14e4 rev=3D0x10 hdr=3D0x00 >> none2@pci0:2:0:2: class=3D0x088000 card=3D0x06471025 = chip=3D0x16be14e4 rev=3D0x10 hdr=3D0x00 >> none3@pci0:2:0:3: class=3D0x088000 card=3D0x06471025 = chip=3D0x16bf14e4 rev=3D0x10 hdr=3D0x00 Passthrough stub driver is part of vmm.ko and if it was present early in = boot, you should see ppt@pciD:B:S:F[Domain:Bus:Slot:Function] in = pciocnf list above. Given that bge driver claimed 2/0/0, most likely = vmm.ko failed to load or probably was not present. Do you have = vmm_load=3D=E2=80=9CYES=E2=80=9D in /boot/loader.conf as mentioned in = https://wiki.freebsd.org/bhyve/pci_passthru? = =20 If you already have loader.conf configured correctly, you can try to = manually load vmm.ko once system is booted and see dmesg for any problem = in loading it like kernel mismatch, missing symbol[One common I usually = encounter is KTRACE define in sys/modules/vmm/Makefile but kernel config = is missing =E2=80=9Coption KTRACE=E2=80=9D] etc. Thanks, Anish > On Nov 28, 2014, at 5:05 PM, Craig Rodrigues = wrote: >=20 > On Fri, Nov 28, 2014 at 1:10 PM, Nikos Vassiliadis = wrote: >=20 >> Hi, >>=20 >> I am trying to use PCI passthrough to pass the bge device to a guest = but I >> am doing something wrong. I have tried several combinations of = pptdevs like >> "2/0/0 2/0/1 2/0/2 2/0/3" but it always fails on 2/0/0. Any ideas = what I >> could try? >>=20 >=20 > Did you read this: https://wiki.freebsd.org/bhyve/pci_passthru ? >=20 > After following those instructions, what is the output of pciconf -l = -v > before and after enabling PCI passthru? > On the host and in the guest? >=20 >=20 > -- > Craig > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to = "freebsd-virtualization-unsubscribe@freebsd.org"