From 9de0191b937375dcbef080989e9d9d10b7f20003 Mon Sep 17 00:00:00 2001 From: Benjamin Huth <24203680+musicderp@users.noreply.github.com> Date: Thu, 6 Nov 2025 01:31:29 -0700 Subject: [PATCH] Fix unspecific error message It is possible for SR-IOV to be enabled but the sriov_totalvfs to be 0, sending a user on a wild goose chase. This new error message indicates that it is also possible that the driver did not load correctly or the non out-of-tree driver loaded instead, hopefully directing users to look other places if they are certain SR-IOV is working. Signed-off-by: Benjamin Huth --- core/src/vgpu/precheck.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/vgpu/precheck.cpp b/core/src/vgpu/precheck.cpp index d2e37050..2021407c 100644 --- a/core/src/vgpu/precheck.cpp +++ b/core/src/vgpu/precheck.cpp @@ -111,7 +111,7 @@ xpum_result_t vgpuPrecheck(xpum_vgpu_precheck_result_t* result) { result->sriovStatus = true; } else { result->sriovStatus = false; - std::string msg = "SR-IOV is disabled. Please set the related BIOS settings and kernel command line parameters."; + std::string msg = "SR-IOV is disabled or the gpu driver has not loaded properly. Please check the related BIOS settings and kernel command line parameters."; strncpy(result->sriovMessage, msg.c_str(), msg.size() + 1); break; } @@ -120,4 +120,4 @@ xpum_result_t vgpuPrecheck(xpum_vgpu_precheck_result_t* result) { } -} \ No newline at end of file +}