From owner-freebsd-virtualization@FreeBSD.ORG Fri Mar 13 10:00:49 2015 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 5C5078C5 for ; Fri, 13 Mar 2015 10:00:49 +0000 (UTC) Received: from mail-ig0-x241.google.com (mail-ig0-x241.google.com [IPv6:2607:f8b0:4001:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D57CE89 for ; Fri, 13 Mar 2015 10:00:49 +0000 (UTC) Received: by igbhn18 with SMTP id hn18so964316igb.3 for ; Fri, 13 Mar 2015 03:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=47vCxC23kK2AsRmR+nh6YRpL5hohItMxK1SYw4rxedc=; b=QBeF3K6FeF5Ho0gKsDyKrEyJUifCgMi1E+aBFrfaQfC5DO8Nm+OkCEsxjW38j0MGdb sGTrOTKZc5UlWA9DrZgNpP8+rFwN7Punn+eCiQgxcSjyulufVBIOr8FC5L2dPjoInMKa dgzsWCg3usX/p1NSnCXCfK0QQ2XHGED4VfOfDa/i3mEZCTCJ44f4vLWovjwbzj4RzeiO uaB5IJOHyMjSCrjLBtPccTtapUaO1aZNL+fFW3Wi4nQlnizVh1pdbZn6CZWtKUHCO0Ov gbVt054ObTP8PUfXIUfYZYnjqmMPA8oHIyoqnFCnfgwNeLYC9EfFkixqpBbw0ZD1DBjI IipA== MIME-Version: 1.0 X-Received: by 10.107.150.149 with SMTP id y143mr22844239iod.22.1426240848407; Fri, 13 Mar 2015 03:00:48 -0700 (PDT) Received: by 10.50.100.137 with HTTP; Fri, 13 Mar 2015 03:00:48 -0700 (PDT) Date: Fri, 13 Mar 2015 03:00:48 -0700 Message-ID: Subject: PCI passthrough help From: Jonathan Wong To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Fri, 13 Mar 2015 10:00:49 -0000 Hi I've been trying to get PCI-passthrough to work with bhyve, but seem to have run into some trouble. I've been following this https://wiki.freebsd.org/bhyve/pci_passthru and have tried to pass through a few devices: a VGA Nvidia GK106 card by itself, and also an integrated Atheros card AR9485 network adapter. I've checked that I have iommu and that the pci devices I want to passthrough aren't being used and are in pptdevs in loader.conf. I tried unsuccessfully in 10.1-Release and I've just upgraded to 11-Current, but so far not much luck with PCI-passthrough. The VM I'm booting is Ubuntu 14.04. I can see the devices in lspci, but nouveau driver doesn't load because lspci can't enumerate a BAR1 line correctly. In both cases I'm getting some routing errors, and I want to know if it'll help debug the situation. It seems there are some successful cases for PCI passthrough and I'd like to find out in which cases it'll work currently. http://0xfeedface.org/2014/12/11/FreeBSD-Intel-wifi-via-bhyve.html The errors in dmesg look like the following (ath9k): [ 4.451908] ath9k 0000:00:09.0: can't derive routing for PCI INT A [ 4.451910] ath9k 0000:00:09.0: PCI INT A: no GSI [ 4.451997] ath9k 0000:00:09.0: request_irq failed [ 4.452459] ath9k 0000:00:09.0: can't derive routing for PCI INT A [ 4.452462] ath9k: probe of 0000:00:09.0 failed with error -22 Any suggestions and tips would be great in getting either device to work. Thanks, Jon