- Thread Starter
- #51
Whether there's an SVM setting in the BIOS or not is immaterial. All the setting does is enable a bit in the MSR, which can be enabled by FreeBSD in svm_modinit(), by calling svm_enable(), anyway.
But this is not the only feature bhyve requires. It requires the popcnt instruction. Older Intel and AMD processors don't support it. AMD started supporting the popcnt instruction in Phenom II. You can tell if your processor supports bhyve by checking dmesg | egrep 'VT-x|SVM|POPCNT'. For Intel you should see VT-x and POPCNT. For AMD you should see SVM and POPCNT.
dmesg | egrep 'VT-x|SVM|POPCNT'Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE.POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
AMD Features2=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX>
SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
SVM: disabled by BIOS.
The processor's features2 include SVM and POPCNT, says SVM is disabled in BIOS, there is no information about the status of POPCNT, though it shows POPCNT. Please tell me the exact command to enable SVM and (POPCNT ?) by svm_modinit() and how to call svm_enable() and where I should say that.
Thank you cy@