From owner-freebsd-virtualization@freebsd.org Fri Jul 6 15:08:15 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53CAA102FF83 for ; Fri, 6 Jul 2018 15:08:15 +0000 (UTC) (envelope-from djfarid@gmail.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 C286285318 for ; Fri, 6 Jul 2018 15:08:14 +0000 (UTC) (envelope-from djfarid@gmail.com) Received: by mail-ed1-x536.google.com with SMTP id f12-v6so8892302edq.11 for ; Fri, 06 Jul 2018 08:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cFIuZ5Ryp1OiIfu1tnUWCrxlGvrYau7oiJQM3fB28xs=; b=n9+dTVyATKzEcy0Fem8INx/5nDmi5Yx4PFHIxOcGBZCHfwkF9pR34zpAqe3ihae3jK wcrRu4tYRbJ1T84Lluw53WjmEDWqfM2IaEY7Ef2hFCEi8fHnCdyxLPcYnYBbWoSALXb/ sIQDmmD1mXhqjCAmsABsHIgdf3XOAYkT33wzUQV30R0OxUQ2BhHImnaM3koApYwyE7Ci mlMXkNfHNQNSOEnisc9nwGH1AvWACca5CUaqFcE5HkrpDLh4Tsw6OLcSeoDlg/rXyYky DnGPxJUUxKkItOPAgLSiK1K830qnCmeeW6HQYtqQQ7llfPKO7ll4JjU/fuoR+I+/pOU6 5Jnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cFIuZ5Ryp1OiIfu1tnUWCrxlGvrYau7oiJQM3fB28xs=; b=U/ufe0v1tcOa4h9lvSTVFuEIKFI18qv5ETBPz7o9dLOEDKI4KmIhSxHTM3NTRMzVP4 k7UB5xO3E+M/10UEm5+57XyfcFluhF1PZquJlkM+dNSatL57ZKiXpuWgZ42JCJoj0ypA 6b0YowTC3WyKcnrkGlPNxCY2RJzTbpZFkAjLmUAS6D1Bosk7j6d8/BxseeweJ+/CIeVP UhtdSuWwg8s9C2FDr4vyqhSgvcEJ+cZlNt5Tj9fUpPktmuR/S4a4pezTBcu/1bjJkFja iC3ktNvleN//S8cJWSezaMO/dx0vlCkzz5ukur9norzNsxkfhw1FPBiHBz9iY6d9DUM5 q9NQ== X-Gm-Message-State: APt69E1r0GDMbiPduM1Jk5UWOsjkmk5xFBxq4yQ3pSzMSfAEYhH/5D0w Y0VuTlFHnz8RouWsCyil5xi4zLqbPRVJg560nY0grD5v X-Google-Smtp-Source: AAOMgpf+Et7UFp2lannvM3sJYRD7+Pj0rPMT4I8uNY6flGZGxLC+5IPLQ8fcCxP9mdt3Ds636QLdkldlY+owkxKgr2k= X-Received: by 2002:a50:8607:: with SMTP id o7-v6mr10993780edo.243.1530889693528; Fri, 06 Jul 2018 08:08:13 -0700 (PDT) MIME-Version: 1.0 From: Farid Joubbi Date: Fri, 6 Jul 2018 17:07:48 +0200 Message-ID: Subject: Passthrough not working with OpenBSD nor NetBSD To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.27 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, 06 Jul 2018 15:08:15 -0000 Hello, I have configured passthrough of two different PCI Express network interface cards. I can't get neither OpenBSD nor NetBSD to work with these NICs. I get this in dmesg when booting the NetBSD install: wm0 at pci0 dev 5 function 0: 82576 quad-1000BaseT Ethernet (rev. 0x01) pci_intr_map: no mapping for pin B (line=ff) wm0: unable to map interrupt bge0 at pci0 dev 6 function 0: Broadcom BCM5720 Gigabit Ethernet pci_intr_map: no mapping for pin B (line=ff) bge0: couldn't map interrupt With OpenBSD it's the same error. I have no problems running FreeBSD or CentOS with the exact same setup. This is how vm is configured for the NetBSD install: loader="grub" cpu=1 memory=4G passthru0="12/0/1" passthru1="3/0/1" disk0_type="virtio-blk" disk0_name="disk0.img" uuid="1c9596b9-80a0-11e8-960c-5cb9013bbb64" grub_install0="knetbsd -h -r cd0a /netbsd" grub_run0="knetbsd -h -r ld0a /netbsd" I started out with OpenBSD and a Intel NIC. Then I added the Broadcom NIC since I figured that maybe it's a driver issue. I'm running bhyve on 11.1-RELEASE-p11. Any ideas?