Date: Sat, 22 Apr 2023 15:16:02 -0600 (MDT) From: Dale Scott <dalescott@shaw.ca> To: Tomek CEDRO <tomek@cedro.info> Cc: FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>, freebsd-emulation@freebsd.org Subject: Re: embedded emulation: bhyve + vt-x on amd fx-8320 Message-ID: <1033603027.10889563.1682198162191.JavaMail.zimbra@shaw.ca> In-Reply-To: <CAFYkXjkFEh6r%2B%2BiE7GmQuaxUN6LJvYM13ttnp1tHW-22bugGHw@mail.gmail.com> References: <CAFYkXjng502kFLCuzEepo1dWSF7w-oo2nJagoKh5ShSiR8n3jQ@mail.gmail.com> <CAFYkXjkFEh6r%2B%2BiE7GmQuaxUN6LJvYM13ttnp1tHW-22bugGHw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- > From: "Tomek CEDRO" <tomek@cedro.info> > To: "FreeBSD Questions Mailing List" <freebsd-questions@freebsd.org>, fre= ebsd-emulation@freebsd.org > Sent: Saturday, April 22, 2023 1:11:14 PM > Subject: Re: embedded emulation: bhyve + vt-x on amd fx-8320 > CPU: AMD FX(tm)-8320 Eight-Core Processor (3512.01-MHz K8-clas= s CPU) > Origin=3D"AuthenticAMD" Id=3D0x600f20 Family=3D0x15 Model=3D0x2 Step= ping=3D0 > Features=3D0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG= E,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > Features2=3D0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,PO= PCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C> > AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> > AMD > Features2=3D0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OS= VW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC> > Structured Extended Features=3D0x8<BMI1> > SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D65536 > TSC: P-state invariant, performance statistics > real memory =3D 34359738368 (32768 MB) > avail memory =3D 33236238336 (31696 MB) >From the handbook https://docs.freebsd.org/en/books/handbook/virtualization= /#virtualization-host-bhyve "The easiest way to tell if a processor supports bhyve is to run dmesg or l= ook in /var/run/dmesg.boot for the POPCNT processor feature flag on the Fea= tures2 line for AMD=C2=AE processors or EPT and UG on the VT-x line for Int= el=C2=AE processors." Unfortunately it seems you might be out of luck. Following is from dmesg on my server (an older HP desktop box with a 4-core= 8-thread Intel CPU). Curiously POPCNT appears in the Features2 line, but p= er the handbook it's the EPT and UG in the VT-x line that's important for a= n Intel processor. I am also trying to configure a Bhyve vm for the first time, and will find = out soon if I need to dig into the BIOS... CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (3392.76-MHz K8-class CPU) Origin=3D"GenuineIntel" Id=3D0x206a7 Family=3D0x6 Model=3D0x2a Steppi= ng=3D7 Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG= E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=3D0x1fbae3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,S= SSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSX= SAVE,AVX> AMD Features=3D0x28100800<SYSCALL,NX,RDTSCP,LM> AMD Features2=3D0x1<LAHF> XSAVE Features=3D0x1<XSAVEOPT> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics Cheers, Dale
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1033603027.10889563.1682198162191.JavaMail.zimbra>