From a564201776676d39eb2a432f25fc4b3ce463b864 Mon Sep 17 00:00:00 2001 From: Matthew Mckenzie Date: Fri, 20 Mar 2026 13:37:00 +1000 Subject: [PATCH] Support AMD SVM flag in vGPU precheck Check for both "vmx" (Intel VT) and "svm" (AMD-V) flags in lscpu output so vGPU precheck passes on AMD systems with virtualization enabled. --- core/src/vgpu/precheck.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/vgpu/precheck.cpp b/core/src/vgpu/precheck.cpp index 27383e323..bc5a6693d 100644 --- a/core/src/vgpu/precheck.cpp +++ b/core/src/vgpu/precheck.cpp @@ -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); }