From owner-freebsd-virtualization@freebsd.org Tue Jul 2 09:35:14 2019 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 086CD15CDDAA for ; Tue, 2 Jul 2019 09:35:14 +0000 (UTC) (envelope-from richard@bader-muenchen.de) Received: from gate1.bader-muenchen.de (gate1.bader-muenchen.de [213.179.151.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3CAA576282 for ; Tue, 2 Jul 2019 09:35:11 +0000 (UTC) (envelope-from richard@bader-muenchen.de) Received: from rserver.bader.loc (rserver.bader.loc [192.168.16.72]) by gate1.bader-muenchen.de (8.15.2/8.15.2) with ESMTP id x629MOwh060629; Tue, 2 Jul 2019 11:22:24 +0200 (CEST) (envelope-from richard@bader-muenchen.de) To: "freebsd-virtualization@freebsd.org" From: richard Subject: bhyve: pci_passthru not working: PCI device at 5/1/0 is not using the ppt(4) driver Message-ID: <5014022d-88a4-c17c-85c3-1de1fda67269@bader-muenchen.de> Date: Tue, 2 Jul 2019 11:22:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 3CAA576282 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.51 / 15.00]; MX_GOOD(-0.01)[gate1.bader-muenchen.de,mail.bader-muenchen.de]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8767, ipnet:213.179.128.0/19, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.968,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[bader-muenchen.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[0.999,0]; IP_SCORE(0.65)[asn: 8767(3.28), country: DE(-0.01)]; NEURAL_SPAM_LONG(1.00)[1.000,0]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 02 Jul 2019 09:35:14 -0000 Hello, i'm trying to use pci_passthru to handover a USB interface to windows7 running under bhyve. window7 is running perfect under bhyve. As this does not work i tried to pass a simple network adapter, but the error message is the same when starting bhyve:     bhyve: PCI device at 5/1/0 is not using the ppt(4) driver here the details: uname -a: FreeBSD main2rest2.bader.loc 11.2-RELEASE-p10 FreeBSD 11.2-RELEASE-p10 #1 r349319: Mon Jun 24 06:27:24 CEST 2019 root@main2rest2.bader.loc:/usr/obj/usr/src/sys/MYKERNEL  amd64 cat /boot/loader.conf: vmm_load="YES" pptdevs="5/1/0" hw.vmm.topology.threads_per_core=2 hw.vmm.topology.cores_per_package=4 pciconf -v -l: ppt0@pci0:5:1:0:        class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10 hdr=0x00     vendor     = 'Realtek Semiconductor Co., Ltd.'     device     = 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter'     class      = network     subclass   = ethernet the commandline for starting bhyve: bhyve -S -c 7 -m 5G -w -H \    -s 0,hostbridge\    -s 3,ahci-cd,./empty.iso\    -s 4,ahci-hd,./06_win7bac4.img,sectorsize=512\    -s 5,virtio-net,tap13\    -s 7,passthru,5/1/0\    -s 29,fbuf,tcp=192.168.16.109:5905,w=1024,h=800\    -s 31,lpc -l com1,stdio\    -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd 06win7bac4 any ideas, thanks richard