From owner-freebsd-virtualization@freebsd.org Sat Jun 30 11:48:54 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 28FB6102C046 for ; Sat, 30 Jun 2018 11:48:54 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (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 AB36A7A6C4 for ; Sat, 30 Jun 2018 11:48:53 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: by mail-qt0-x235.google.com with SMTP id b15-v6so212700qtp.11 for ; Sat, 30 Jun 2018 04:48:53 -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=sof/TJZ02y0zKohdrcGnhlvI92LE94Z2l2+dSF6xtdw=; b=koP5136W/VqGeqDTVgN8OoevLFTjgVCm0LTfiSEQ5EWaNC5f8Pqdszdvi5P0m6acV2 GPCihjbHnm5+wG5VUfVSnN420eioPibQub+i07KxdAEKuha8i9YNWWD3NzKMme4QEpDg 2Z8bMRrUDpV558sUP0v7VxDBpdwmhvBvClprgumPXa0eX8TzfyoJ8BGxeuc1QV/ENM5c bswj29QVAVpax24qoNKW58e/Z4dJpQaE1vQOo3nUBqn9MIqcweAje4MUA9HmYo0i328C wF/l6/v81q6iFzGLOT0ksO1Q7UZr3y5/LCsfqNeXPMmjhO74sib+LCFYVjaI2R32s8IO QDEQ== 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=sof/TJZ02y0zKohdrcGnhlvI92LE94Z2l2+dSF6xtdw=; b=kTNxtyV8Jnkwche0cwCCTBLg3z71iRFaUte1s/3KWVnq3gKuyoKMJbUxBXQjTH2pG/ lCHShE0vjgD4QIlRVUyT8XpEqBVPxRVby6Lxdffsjip/6C5gFteEkK3fV3Yrgi9hQWKh 1sDjo7rKww4toNY7TW3wPtVwoVDYnjb4m1JaQ3bWIO4aEkd9rijSEIzhaGbNPktmLLiO hHBIORYNd7nQu1Nox4xeOqsdj2nodPAb3PuFPje079K2p9/uaekefWm4gjW6C+ehOOP/ bBVoXZoFS025Vd6GZ/d3KcBOj+efzom3LG6vicGwx79aotPk9P1pQmwvhlvceTJLx1/7 DN+A== X-Gm-Message-State: APt69E298sZmA+9LrenNslu/dAqwmvrcVxjP5xuy2KZxzCnrVqEtVkfy isq+CVFX/6GRGnGSAueg3q6NR4CEIihcKkKrVXo= X-Google-Smtp-Source: AAOMgpeHkSRoHsUINGZ2KvLEzA3q3So+Pdt0uUWfWG4MPUex7kgA4hB1O3pp6fkQndkbsFqdY8lbJ7CSh6nh6EZWPB4= X-Received: by 2002:aed:220a:: with SMTP id n10-v6mr4495293qtc.18.1530359333223; Sat, 30 Jun 2018 04:48:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Darius Mihai Date: Sat, 30 Jun 2018 14:48:15 +0300 Message-ID: Subject: Re: AMD Ryzen Byhyve "sysctl: unknown oid "hw.vmm.amdvi"" To: pestalent1@yahoo.com Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" 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:48:54 -0000 On Sat, Jun 30, 2018 at 2:42 PM pestalent1 via freebsd-virtualization wrote: > > > 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 > > Hi, The first thing that came to mind was that Ryzen processors have virtualization disabled by default. I remember having to go and enable the virtualization capabilities in BIOS when I first created a virtual machine (admittedly, it was using VMWare so I'm not very sure on bhyve error messages). Darius > > > > > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"