From owner-freebsd-virtualization@freebsd.org Wed Aug 8 18:08:35 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 C40151065C2A for ; Wed, 8 Aug 2018 18:08:35 +0000 (UTC) (envelope-from djfarid@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 400148B49E; Wed, 8 Aug 2018 18:08:35 +0000 (UTC) (envelope-from djfarid@gmail.com) Received: by mail-ed1-x535.google.com with SMTP id o8-v6so1662684edt.13; Wed, 08 Aug 2018 11:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nHGKP1UD0ZmGwx83poj2lpG2/e99OqoTG28HMZjuvAU=; b=W6JxGQmwHf7L6+KnGwHBvFdqTwebaZOaKON4g+Jlc7uqtUD2bc5dilPnNYczcjOc+z ylqZIVyav2Qwf83Mbem7FUodL9vSfpELUToRcPePIw8acnTrsN/6Mo1Rye7TvY6ROixu YMNBYstxQ9CxkjmUMHkzv9+N5b4XaNb/25e/vt4RofsaRYxSyJAfE0AVXlCtYAXiYEes YKgUFktgl87WqW9GppsMhD3pgDuVg6vfsj6ROsGpzBWzLCLJIpNTqllaCTmuU0ZblCyk 7mFF8sbhqdU9P0qbjD5YMcWmbhhGd1orUv78INRhDGib5TpzQZ2yDFukOjWVpyQJtPeJ KZ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nHGKP1UD0ZmGwx83poj2lpG2/e99OqoTG28HMZjuvAU=; b=Zs9geS1YK5Bcy5ZGPLEImUidrZ1MfJwYl0+TvnDOxSM0eg2CIvBuyYTpn2dlJ4gJQU F2gJT+IQmZ8vD1IZr7QYJbtfwlrUOc1gJHgMJKyQvYXteFBO7gS/aeE9YpR340qOEWxg MBq9c39iOi5XmFTEfrzqCq0/B4gnFy6Py6Kzhasuwfcw+A69UXrUPU9t1+OPLFWwnWFj 27Dpfx+YfkUKY2rpGrdzfylfhADf08sXh+WaZNCVV64lauD5Js/F6aBBDZT3GRYcTfx1 LW04cKFAw5mTM6F/xu1HHdlJ+gtSm9ou/1iGFvSTeJqntHGWeVOxKW6b7ZuI5lfo3yKA wUOQ== X-Gm-Message-State: AOUpUlGBP4KW/oF4U2f68+FhG1YZW8Tvzm3DDwdk7b6ctfcDE1+BRYSp Va0fqWYZxeEmiLP/NUb/fO9OgCt5m1pp+8nnLLJ5DQ== X-Google-Smtp-Source: AA+uWPxSVmogpx2WyQV/Iu843uT5KV2+8lGWU2ufQ1wqsInSInUIkLUuvVyIw+CHSh0hNDa1nzhkvmiiWle/eqOLsjs= X-Received: by 2002:aa7:c68b:: with SMTP id n11-v6mr4617729edq.122.1533751714089; Wed, 08 Aug 2018 11:08:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Farid Joubbi Date: Wed, 8 Aug 2018 20:08:22 +0200 Message-ID: Subject: Re: Passthrough not working with OpenBSD nor NetBSD To: John Baldwin Cc: 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: Wed, 08 Aug 2018 18:08:36 -0000 That's what I also thought, but it's not anything I can force it to do, is it? Isn't it supposed to detect the MSI interrupt compatibility automatically? On Wed, Aug 8, 2018, 20:02 John Baldwin wrote: > On 7/6/18 8:07 AM, Farid Joubbi wrote: > > 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? > > You have to use MSI interrupts for pass-through devices for bhyve. Those > errors look as if the guests are trying to use legacy INTx interrupts. > > -- > John Baldwin >