From owner-freebsd-virtualization@freebsd.org Sun May 20 19:04:21 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 8EEDAEEC973 for ; Sun, 20 May 2018 19:04:21 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-ot0-x22c.google.com (mail-ot0-x22c.google.com [IPv6:2607:f8b0:4003:c0f::22c]) (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 301EA6BF1A for ; Sun, 20 May 2018 19:04:20 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-ot0-x22c.google.com with SMTP id n3-v6so14566429ota.5 for ; Sun, 20 May 2018 12:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pAmvaFH8qcqcoJQhM9odUulVdJozgy4ELBjpu+Ee+Fo=; b=WTvgJ9pM2JHRNnoB8gz0foii83+2hVHWDoJQbNIFrwGiVA76iyZmpQTm3iH7eXGQ60 O62phaRNQzoBdatD9bNsax8fv80Hy/TxLODD4Qf+FtMXFMjPtdPv6CsYxUrBYVl8fxuD +bkfkKL9Xm0Uk6XhjKrp86OvE37AZ4cv9rkyU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pAmvaFH8qcqcoJQhM9odUulVdJozgy4ELBjpu+Ee+Fo=; b=rUrUuZA9blgcBjIQM4jncQOP2sgEGcgSgjH2uGvNidHT8WxqTentUG71BgZ9qI+H5H LFeoCjfLkurf8z7TUOERTtI8+1pFR5QrDTDib0L7RXn+XerjKjJnWCiL4Suzzyh+JYQp esXD5Q4yleqAwLgf00PZ+jSqxj55j3CaBWRauAwTYexTgWDtt5MJhatEFYtThQCrVRku u1h8GtS1MefvixnwqJESw0vEnkITDlbdYi5jPDUymDyknVhUcBsoaKNAMvlyEIBEZj1I mjzLaEEThfJhb2RJM6BFs7Scn+LSlzgLKbzVsFp/Tl8JZLlwaYfM3hIb6gKC44NCODvs rsfg== X-Gm-Message-State: ALKqPwdmy+Q49NF+i7Wsro+oGPXJ0uXerbKhsur2N14yJBhlRMT827ga HXW9f2W0AlQwIwtoEfftR3W5PemiF0SyrIofKE/a8A== X-Google-Smtp-Source: AB8JxZrHhm+g+BWoNRGZpt61xsAOUdj3qbOYeQTxaZP3MRaTDTZ3zgCrzLacIAofF7BLT+jyby5hh3Ej9YAfhht4Y3g= X-Received: by 2002:a9d:1ec2:: with SMTP id n60-v6mr10837062otn.24.1526843060043; Sun, 20 May 2018 12:04:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.19.65 with HTTP; Sun, 20 May 2018 12:04:19 -0700 (PDT) In-Reply-To: <7167ea46-ee07-8ffa-615e-0f3d3eb92e64@palmen-it.de> References: <7167ea46-ee07-8ffa-615e-0f3d3eb92e64@palmen-it.de> From: Mario Lobo Date: Sun, 20 May 2018 16:04:19 -0300 Message-ID: Subject: Re: bhyve: passthrough of PCIe device without MSI possible? To: Felix Palmen Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.26 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, 20 May 2018 19:04:21 -0000 Hi Felix; I had the same impression and I was attempting to do the same with no success. Have you managed to make it work? 2018-05-11 12:26 GMT-03:00 Felix Palmen : > I have the following PCIe card on a host running 11.1-RELEASE: > > | ppt0@pci0:5:0:0: class=0x078000 card=0x00011b74 chip=0x08101b74 > rev=0x14 hdr=0x00 > | vendor = 'OpenVox Communication Co. Ltd.' > | class = simple comms > > it doesn't support MSI according to `pciconf -lbc`: > > | ppt0@pci0:5:0:0: class=0x078000 card=0x00011b74 chip=0x08101b74 > rev=0x14 hdr=0x00 > | bar [10] = type Memory, range 32, base 0xdfe00000, size 524288, > enabled > > Trying to pass this card to a guest using `vm-bhyve` gives me the > following in `bhyve.log`: > > | bhyve: failed to initialize MSI for PCI 5/0/0 > > and this in `vm-byve.log`: > > | [bhyve options: -c 2 -m 2G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd > -U 9f2546f5-5464-11e8-8b52-d05099c0f275 -S] > | [bhyve devices: -s 0,hostbridge -s 31,lpc -s > 4:0,virtio-blk,/dev/zvol/zroot/vm/pbx/disk0 -s > 5:0,virtio-net,tap2,mac=58:9c:fc:00:d7:6b -s 6:0,passthru,5/0/0 -s > 7:0,fbuf,tcp=0.0.0.0:5900] > | [bhyve console: -l com1,/dev/nmdm0A] > | [bhyve iso device: -s 3:0,ahci-cd,/var/vm/.config/null.iso] > | starting bhyve (run 1) > | bhyve exited with status 1 > > Now .. is it actually possible to pass such a device to a bhyve guest? > From the code comment here: > ve/pci_passthru.c#L257> > I assumed MSI would be "emulated" if necessary? > > TIA, Felix > > -- > Dipl.-Inform. Felix Palmen ,.//.......... > {web} http://palmen-it.de {jabber} [see email] ,//palmen-it.de > {pgp public key} http://palmen-it.de/pub.txt // """"""""""" > {pgp fingerprint} ED9B 62D0 BE39 32F9 2488 5D0C 8177 9D80 5ECF F683 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubs > cribe@freebsd.org" > -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]