Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/src/vgpu/precheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ xpum_result_t vgpuPrecheck(xpum_device_id_t deviceId,
result->vmxFlag = false;
std::string msg = "Command lscpu failed.";
strncpy(result->vmxMessage, msg.c_str(), msg.size() + 1);
} else if (cmdRes.output().find("vmx") != std::string::npos) {
} else if (cmdRes.output().find("vmx") != std::string::npos ||
cmdRes.output().find("svm") != std::string::npos) {
/*
* VMX flag detected by lscpu
* VMX/SVM flag detected by lscpu
*/
result->vmxFlag = true;
} else {
result->vmxFlag = false;
std::string msg = "No VMX flag, Please ensure Intel VT enabled in BIOS";
std::string msg = "No VMX/SVM flag, Please ensure Intel VT or AMD-V enabled in BIOS";
strncpy(result->vmxMessage, msg.c_str(), msg.size() + 1);
}

Expand Down