Processor support for bhyve

amiramix

Member

Reaction score: 3
Messages: 89

I am trying to determine if my processor supports [FONT=Courier New]bhyve[/FONT]. Just reading the 21.7. FreeBSD as a Host with bhyve page. I can find the [FONT=Courier New]POPCNT[/FONT] flag when grepping /var/run/dmesg.boot but can't find a line with [FONT=Courier New]VT-x[/FONT]. In particular:

Code:
CPU: AMD Opteron(tm) Processor 3380  (2600.05-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2  Stepping=0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
  Structured Extended Features=0x8<BMI1>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=65536
  TSC: P-state invariant, performance statistics
And:

Code:
CPU: AMD Phenom(tm) II X4 955 Processor (3210.89-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x100f42  Family=0x10  Model=0x4  Stepping=2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802009<SSE3,MON,CX16,POPCNT>
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
  SVM: NP,NRIP,NAsids=64
  TSC: P-state invariant
However bhyve wiki page says that Barcelona or later processors support bhyve, and both processors above came after Barcelona.

Does it mean that my processor doesn't support bhyve or that there is an error in the documentation and it should rather read:

The easiest way to tell if a processor will support bhyve is to run dmesg or look in /var/run/dmesg.boot for the [FONT=Courier New]POPCNT[/FONT] processor feature flag on the [FONT=Courier New]Features2[/FONT] (AMD) line or [FONT=Courier New]EPT[/FONT] and [FONT=Courier New]UG[/FONT] on the [FONT=Courier New]VT-x[/FONT] (Intel) line.
 

wblock@

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 3,644
Messages: 13,850

Yes, the wording is ambiguous. Updated in r48526. Thanks!
 
OP
OP
amiramix

amiramix

Member

Reaction score: 3
Messages: 89

I wasn't pretending that I don't know the answer ;-) So, am I to understand that either of those needs to be present, not both, and my processor indeed supports bhyve?

What's r48526? An update to the document? If yes, then may be worth mentioning what's already stated in the bhyve wiki, or adding a link to the wiki, namely, that some, notably the "Kuma" core processors include [FONT=Courier New]POPCNT[/FONT] but lack the required [FONT=Courier New]"NRIPS"[/FONT] (Next RIP Save) feature.
 

wblock@

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 3,644
Messages: 13,850

Top