AMD Ryzen Byhyve "sysctl: unknown oid "hw.vmm.amdvi""

Darius Mihai dariusmihaim at gmail.com
Sat Jun 30 11:48:54 UTC 2018


On Sat, Jun 30, 2018 at 2:42 PM pestalent1 via freebsd-virtualization
<freebsd-virtualization at freebsd.org> 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 at 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: <base peripheral, IOMMU> at device 0.2 (no driver attached)
> pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
> pci0: <base peripheral, IOMMU> 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"


More information about the freebsd-virtualization mailing list