From owner-freebsd-virtualization@freebsd.org Sat Jun 30 11:41:06 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 8DB25102BC74 for ; Sat, 30 Jun 2018 11:41:06 +0000 (UTC) (envelope-from pestalent1@yahoo.com) Received: from sonic313-19.consmr.mail.gq1.yahoo.com (sonic313-19.consmr.mail.gq1.yahoo.com [98.137.65.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 024A77A3A7 for ; Sat, 30 Jun 2018 11:41:05 +0000 (UTC) (envelope-from pestalent1@yahoo.com) X-YMail-OSG: 6Tbh7m4VM1msuTVa6lnld2yxEwz4.Pv_HKh9Umlp89F9SssKGD31lt_djeixlwv jsa.OXei07jk3GiggkS4CpKVgbaE92ba9Ij2Ky80BCYVm9sTcoOVtNi0bjK0f6ut0czLzghU.ZNj vFaPJFwhvmYrvvXYMXqRAjfMSJ.2acsxpo_DsZtE_6_w_lq0e0rFhmaTLOIJjY2IrSI_4FWwijYr pW04D5srX2UQ_Bg_XBOAeLfsilgjBngW70meVkRubT5n2Nafv_QwOWhrOBihQmjzO.DAvJ9UxaWh 8yUvsofYjU0YiwHDvyaTpN0ZyYBskudb5azF2bV1f2vu5NsnJJPA5HY.8SQPC4SZbeI6Dx8A.2a_ xNYBcm1A2jPR976kbUk9K.Pl.bkjxA5OlfSxlOv5sY8uiKAc8BMMu6_tUlFyCKzuMVc1yqpkEgnp NhE1kYT.n1tkZf5oqw1SCl8d8rcF.6J.B9H2KiZNJQoeHUZAR7TkdknTJpHUm7_Seheq4BuHo_Cy Yf3wsj5rQkkpC.dJUMhD5xP5PK._H2bIW3QEDrZGvrGEU7wYwuZwmcMcCNbrGvuXQjgGD3oFJ3lk VxbfDeTLbvuwPA3n_nCEKzv2soOGj8yG2Sd3oki8cRy2rfEkRNV5hMoaM4YWQfn4L8p0VBb8hIes V8Yen4ewIZw_V6qSpmVDHO5_Kpec5dkmRFwF778rn60dlhVQpD7oNsJHTu28qM7veAJ3IuLz_mE9 cmE86d1bJIGnUnw_7JzjHzfr58NHIcDUF1QwngWRj5EdAql1cuenBuQn32hvRJ7Ifc21ZOkGTqxw oFhmVA7TmwQroaj4WR5PQYGhris3zjOcWpg5fZZxxl.WeyCXEedYxL_b7ClrOh7_weOEuYKbcSeG DZ1CRADsMPzoqvxYCbh9JkRBg50wxaRFC_pZoyiXXglrydyoqGtUjkYOpdg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Sat, 30 Jun 2018 11:40:59 +0000 Received: from c-24-91-1-212.hsd1.vt.comcast.net (EHLO [192.168.1.25]) ([24.91.1.212]) by smtp414.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 76b0142a03ef42aaee1510acd13b52af for ; Sat, 30 Jun 2018 11:40:53 +0000 (UTC) Subject: AMD Ryzen Byhyve "sysctl: unknown oid "hw.vmm.amdvi"" To: freebsd-virtualization@freebsd.org References: From: pestalent1 Message-ID: Date: Sat, 30 Jun 2018 07:40:56 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Sat, 30 Jun 2018 11:41:06 -0000 Hello, I have bhyve up and running on my "FreeBSD 11.2/bhyve 1.1.8_2  running kde5 desktop with: "ryzen 7 1700 (overclocked to 3700Mhz, if that matters) 32 GB of ram on a MSI x370 Gaming Plus motherboard with the latest bios". I have a windows 2012r2 vm (config below) up and running, it has 4 of my physical hard-drives passed through, all is working. I am trying to passthrough the below USB 3 controller. Not sure if it matters, the IOMMU was set to "auto" in the bios/uefi when I installed the OS. It is now set to "enable" It does not work the Vm fails to boot. Do I have something mis-configured or I am missing something. I hope I have provided all the necessary info for assistance. |ppt0@pci0:40:0:0: class=0x0c0330 card=0x7a331462 chip=0x21421b21 rev=0x00 hdr=0x00 vendor = 'ASMedia Technology Inc.' class = serial bus subclass = USB cap 05[50] = MSI supports 8 messages, 64 bit cap 01[78] = powerspec 3 supports D0 D3 current D0 cap 10[80] = PCI-Express 2 legacy endpoint max data 128(512) RO NS link x2(x2) speed 8.0(8.0) ASPM disabled(L0s/L1) ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected ecap 0019[200] = PCIe Sec 1 lane errors 0 ecap 0018[300] = LTR 1 |  My loader.conf |kern.vty=vt zfs_load="YES" fuse_load="YES" kern.geom.label.disk_ident.enable="0" kern.geom.label.gptid.enable="0" vmm_load="YES" nmdm_load="YES" if_bridge_load="YES" if_tap_load="YES" hw.syscons.disable="1" hw.vmm.amdvi.enable="1" hw.vmm.topology.cores_per_package=4 #hw.vmm.topology.threads_per_core=2 pptdevs="40/0/0"| My VM config file: |uefi="yes" cpu=4 memory=6G graphics="yes" xhci_mouse="yes" graphics_res="1600x900" network0_type="virtio-net" network0_switch="public" #ahci_device_limit="6" debug="yes" disk0_opts="sectorsize=512" disk0_type="ahci-hd" disk0_name="BackupR7.img" disk1_dev="custom" disk1_opts="sectorsize=512" disk1_type="ahci-hd" disk1_name="/dev/ada0,hd:/dev/ada1" disk2_dev="custom" disk2_opts="sectorsize=512" disk2_type="ahci-hd" disk2_name="/dev/ada2,hd:/dev/ada3" uuid="762f78e9-270b-11e8-87a4-309c230c9abc" network0_mac="02:15:5d:45:32:01" passthru0="40/0/0"| |acpidump -t | grep DMAR|shows nothing, I have IOMMU enabled in bios or uefi. sysctl hw.vmm.amdvi  gives me "sysctl: unknown oid "hw.vmm.amdvi"" last line in my vm-bhyve.log : fatal;  pci passthrough not supported on this system (no VT-d)  dmesg | egrep -i 'ivrs|ivh|amd-vi|mmu' pci0: at device 0.2 (no driver attached) pci0: at device 0.2 (no driver attached) pci0: at device 0.2 (no driver attached) amd_iommu_init: not implemented I would appreciate any and all help Thanks, Pete K