From owner-freebsd-virtualization@freebsd.org Wed Jan 17 23:20:33 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A54B4EBEDAA for ; Wed, 17 Jan 2018 23:20:33 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qt0-x231.google.com (mail-qt0-x231.google.com [IPv6:2607:f8b0:400d:c0d::231]) (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 6141063B0D for ; Wed, 17 Jan 2018 23:20:33 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-qt0-x231.google.com with SMTP id c2so25913874qtn.9 for ; Wed, 17 Jan 2018 15:20:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:subject:message-id:organization:mime-version :content-transfer-encoding; bh=oJJzZTWoV65GJswDWqAT5sJEqklgnMTWDfwOuVTqcDA=; b=VymyIo7TJaywlQFKLHwseyd9rKJHOZCHixchdavlfC1Dkah+K+ybK3Qd3YChuQAF39 JyNmPBiAt/CTk8pOIskEELigOeAEcqWz/9M4+ruB81gU60FCIF77UbHDarUmn7K9SfMa 3aPvFSohBf/i7aeUrYwx69rNJ1NBoadS8O7tM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:organization :mime-version:content-transfer-encoding; bh=oJJzZTWoV65GJswDWqAT5sJEqklgnMTWDfwOuVTqcDA=; b=Qk8xg+xf7AZucEfm5S+osgLs4XAQ/fgODMSdJHVmBl171ozD9zqQIyHnN1VNqhySiN iGKz4PZ7k8LdJvbGum+Rx1cEd9bVDrLp5cdrwYKewEWl327AMpJUxKk574C1L7Qo3CqK 2Gz4UpLQ7URjINVSX1bgAVsnkfedTWqMYar5SIoxTp4YsZU+lJlEIzIfbxl8EGAoXh03 i/B/7mivbrgqOr1QteAdNBf5stClgeX7izJHTlfLOFh5ebz9KXn2pixfqH+9Dbdanl5m DJ5x4YveBZ6x/gTJ1O+KpnRh+mtEB9VoCTaJUJ9gkjBsTiIlHU2ZySSjoBZRgJetyEG/ 8GaQ== X-Gm-Message-State: AKwxytezauaFtpPgBS0H5CNLG51MVd9TivMhyJqKKzsXwF+MzpDGlpnF r1pMzK4ejFlLffzb8t7UvLBc0YCO X-Google-Smtp-Source: ACJfBovyEqUN/z5AqYpM43hBqMhJ5evQ23z/sbpO5xuQAXBZF+1Z4E8ip/ZBP7y3O66NtIKtAzBx3g== X-Received: by 10.237.46.130 with SMTP id k2mr15478085qtd.85.1516231232388; Wed, 17 Jan 2018 15:20:32 -0800 (PST) Received: from Papi.lobos ([177.158.106.185]) by smtp.gmail.com with ESMTPSA id l1sm3767280qki.60.2018.01.17.15.20.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Jan 2018 15:20:32 -0800 (PST) Date: Wed, 17 Jan 2018 20:22:50 -0300 From: Mario Lobo To: freebsd-virtualization@freebsd.org Subject: Bhyve passthrough problems Message-ID: <20180117202250.6ef90c6d@Papi.lobos> Organization: BSD X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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, 17 Jan 2018 23:20:33 -0000 Hello; I'm trying to passthrough a firewire pci card to a windows 7 64 guest. Without passthrough, the vm boots with everything working normally. Here are my specs: uname -a: FreeBSD 11.1-STABLE #0 r328025M: Wed Jan 17 18:30:26 -03 2018 root@Papi.lobos:/usr/obj/usr/src/sys/LOBO amd64 x86info: x86info v1.31pre Found 8 identical CPUs Extended Family: 6 Extended Model: 0 Family: 15 Model: 2 Stepping: 0 CPU Model (x86info's best guess): AMD FX Series Processor (OR-C0) Processor name string (BIOS programmed): AMD FX-8320E Eight-Core Processor dmesg | grep ivhd ivhd0: on acpi0 ivhd0: Flag:3e ivhd0: max supported paging level:7 restricting to: 4 ivhd0: device supported range [0x0 - 0x4ff] ivhd0: device [0xa0 - 0xa0]config:d7 ivhd0: PCI cap 0x10b540f@0x40 feature:1 PCI card (already attached to ppt0) ppt0@pci0:4:7:0: class=0x0c0010 card=0x30441106 chip=0x30441106 rev=0xc0 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller' class = serial bus subclass = FireWire Starting the vm with VNC: bhyve -A -P -H -c 4 -S -s 0,amd_hostbridge -s 3,ahci-hd,/Vmachines/disk.img,sectorsize=512 -s 4,ahci-cd,/Extra/Isos/Windows/Windows_7/null_dvd.iso -s 7,passthru,4/7/0 -s 10,virtio-net,tap0 -s 11,fbuf,tcp=0.0.0.0:5900,,w=1600,h=900,wait -s 20,xhci,tablet -s 31,lpc -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 8G -H -w WIN-764 fbuf frame buffer base: 0xa42e00000 [sz 16777216] Assertion As soon as I try to connect, the VM aborts with: failed: (error == 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emul.c, line 491. Abort trap Starting the vm without VNC: bhyve -A -H -P -c 4 -S -s 0,amd_hostbridge -s 3,ahci-hd,/Vmachines/disk.img,sectorsize=512 -s 4,ahci-cd,/Extra/Isos/Windows/Windows_7/null_dvd.iso -s 7,passthru,4/7/0 -s 10,virtio-net,tap0 -s 20,xhci,tablet -s 31,lpc -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 8G -H -w WIN-764 VM exits with: Assertion failed: (mr->name == memp->name), function unregister_mem, file /usr/src/usr.sbin/bhyve/mem.c, line 265. Abort trap Same thing happens without "-A -H -P" on bhyve command line. Would anybody have any suggestions on what else I could try? Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."