Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2023 13:08:28 +0200
From:      Corvin =?ISO-8859-1?Q?K=F6hne?= <corvink@FreeBSD.org>
To:        Evilham <contact@evilham.com>, freebsd-virtualization@FreeBSD.org
Subject:   Re: CURRENT: Operation not supported by device
Message-ID:  <4118bddf3c1ff0724f9e83934c534bb38baa48a9.camel@FreeBSD.org>
In-Reply-To: <b9c2691be6de74bcd2eb6306ab397f341fba@yggdrasil.evilham.com>
References:  <b9c2691be6de74bcd2eb6306ab397f341fba@yggdrasil.evilham.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-JQoWqU9vB1fw3zMGApwN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, 2023-03-29 at 12:44 +0200, Evilham wrote:
> Hello,
>=20
> I've been using bhyve for a while now and in the past couple days=20
> (though I'm not sure when it started, certainly less than two=20
> weeks ago), I've been getting this message when trying to start a=20
> VM on CURRENT:
>=20
> # # This is after unloading vmm
> # sh /usr/share/examples/bhyve/vmrun.sh -E -I null.iso -d=20
> =C2=A0 disk0.img test
> *** vmm.ko is not loaded
> # kldload vmm
> # sh /usr/share/examples/bhyve/vmrun.sh -E -I null.iso -d=20
> =C2=A0 disk0.img test
> Launching virtual machine "test" ...
> device emulation initialization error: Operation not supported by=20
> device
> # bhyvectl --vm=3Dtest --destroy
> # kldunload vmm
>=20
>=20
> FWIW, there have been no changes on the BIOS, as can be seen vmm=20
> loads without issues or warnings.
> I usually use vm-bhyve, but was trying to discard that by going=20
> back to the basics.
>=20
> Would greatly appreciate pointers as to where to look in order to=20
> be able to use bhyve again :-).
>=20
> This is the CPU as reported on dmesg:
>=20
> CPU: AMD Ryzen 7 PRO 2700U w/ Radeon Vega Mobile Gfx (2196.04-MHz=20
> K8-class CPU)
> =C2=A0 Origin=3D"AuthenticAMD"=C2=A0 Id=3D0x810f10=C2=A0 Family=3D0x17=C2=
=A0 Model=3D0x11=20
> =C2=A0 Stepping=3D0
> =C2=A0
> Features=3D0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,
> PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
> =C2=A0
> Features2=3D0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,
> MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
> =C2=A0 AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
> =C2=A0 AMD=20
> =C2=A0
> Features2=3D0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,
> OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX>
> =C2=A0 Structured Extended=20
> =C2=A0
> Features=3D0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFL
> USHOPT,SHA>
> =C2=A0 XSAVE Features=3D0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
> =C2=A0 AMD Extended Feature Extensions ID=20
> =C2=A0 EBX=3D0x1007<CLZERO,IRPerf,XSaveErPtr,IBPB>
> =C2=A0 SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D32768
> =C2=A0 TSC: P-state invariant, performance statistics
>=20
> And on with sysctl dev.cpu.0 (there are 0-7 of these)
> dev.cpu.0.cx_method: C1/hlt C2/io
> dev.cpu.0.cx_usage_counters: 415801 517428
> dev.cpu.0.cx_usage: 44.55% 55.44% last 2765us
> dev.cpu.0.cx_lowest: C8
> dev.cpu.0.cx_supported: C1/1/1 C2/2/400
> dev.cpu.0.freq_levels: 2200/2681 1700/1615 1600/1460
> dev.cpu.0.freq: 2200
> dev.cpu.0.%parent: acpi0
> dev.cpu.0.%pnpinfo: _HID=3Dnone _UID=3D0 _CID=3Dnone
> dev.cpu.0.%location: handle=3D\_PR_.C000
> dev.cpu.0.%driver: cpu
> dev.cpu.0.%desc: ACPI CPU
>=20
> Thanks in advance for any pointers!
> --
> Evilham
>=20

Hi Evilham,

I've already seen this issue on one of my AMD devices too. Could you
please test the following patch:
https://reviews.freebsd.org/D39310


--=20
Kind regards,
Corvin

--=-JQoWqU9vB1fw3zMGApwN
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmQkHCwACgkQ2FTaVjFe
Amp54xAAkeeRAmxXv8OTSilZ7Li8cNY/nfCuE8W5WmOexPQswQcCikNopmVO17r9
20h+254cq+/eFKhAdv8wm9H9wdMOMCtWyBlL1w02mWAh2IejeRF1nPGbtqCwksF/
rCwmbTsh9o86xThswNP2nv9xmHGxcNb8T7Wu5paLNsnduJKYgJuAOIKQJqMuNYlB
lwp2IVxRPFQBouStOwiykeAB6GDrU40Z8KEv4MImQiw0GTTkhRZokMqAsXxC5H1D
4YpaL7+qPNAGqE4Hxc5Z3178THJS3dYFdPoVqvpLr3pBW2HEB1GWDlAK+gWJhpjy
yt1beDnAS8KdpjkV8xKeQfKRDZqKRmfN+gb8kDUx+dhPA+u9fg7JH/X741p9OS9L
c4HPsrlGKaxBXiSzvSm95mUjapprd5Ks/3gsVgAHgjcCL/QbjXMzbg4RV39HWiZx
qy/zQ4uO8OAzrrzyXPiumN4iqf54HTBSmEkad2GGA/5An+/aQCmMuBDuC/94vuO0
wUD/cBMGNdOfQilmIxiyx97iCtr48RvhUSjK1TRXbZWv+/ssKjlbMPj0g3KeES8W
62lWgpjainNqAI07l5GJkNHfDjS0vlbthZ0uXEG7NbqscTkRTstDC2Llcczq1xOy
siAjRwyc5bSNjpQ3NeR8X4Ag0rKd/ERVBQq3w9AXHn4TqAwuC1A=
=G+Ol
-----END PGP SIGNATURE-----

--=-JQoWqU9vB1fw3zMGApwN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4118bddf3c1ff0724f9e83934c534bb38baa48a9.camel>