From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C49D81FF13C for ; Thu, 05 Mar 2026 10:17:46 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0FE7F1EF61; Thu, 5 Mar 2026 10:18:17 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Subject: [PATCH debcargo-conf 6/8] nvml-wrapper: add patch for vgpu ids Date: Thu, 5 Mar 2026 10:16:50 +0100 Message-ID: <20260305091711.1221589-7-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260305091711.1221589-1-d.csapak@proxmox.com> References: <20260305091711.1221589-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.037 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: STR64BJYPCMBUEKYLSXMFQ2RADSZDFBI X-Message-ID-Hash: STR64BJYPCMBUEKYLSXMFQ2RADSZDFBI X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: it's not yet included in an upstream release, but we need it. Signed-off-by: Dominik Csapak --- ...-method-for-getting-the-vGPU-type-id.patch | 32 +++++++++++++++++++ src/nvml-wrapper/debian/patches/series | 1 + 2 files changed, 33 insertions(+) create mode 100644 src/nvml-wrapper/debian/patches/add-method-for-getting-the-vGPU-type-id.patch diff --git a/src/nvml-wrapper/debian/patches/add-method-for-getting-the-vGPU-type-id.patch b/src/nvml-wrapper/debian/patches/add-method-for-getting-the-vGPU-type-id.patch new file mode 100644 index 0000000000..9c0d192c7f --- /dev/null +++ b/src/nvml-wrapper/debian/patches/add-method-for-getting-the-vGPU-type-id.patch @@ -0,0 +1,32 @@ +From 09ce7912eb233dd9f577a858250e95e5f95eac16 Mon Sep 17 00:00:00 2001 +From: flumm +Date: Thu, 5 Mar 2026 00:31:43 +0100 +Subject: [PATCH] add method for getting the vGPU type id (#124) + +This is useful for example on linux, where this id is the same as the +one that needs to be written into sysfs for creating a vGPU instance. + +Signed-off-by: Dominik Csapak +--- + nvml-wrapper/src/vgpu.rs | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/nvml-wrapper/src/vgpu.rs b/nvml-wrapper/src/vgpu.rs +index 548e7eb..25d1624 100644 +--- a/src/vgpu.rs ++++ b/src/vgpu.rs +@@ -33,6 +33,11 @@ impl<'dev> VgpuType<'dev> { + self.device + } + ++ /// Get the underlying vGPU type id. ++ pub fn id(&self) -> nvmlVgpuTypeId_t { ++ self.id ++ } ++ + /// Retrieve the class of the vGPU type. + /// + /// # Errors +-- +2.47.3 + diff --git a/src/nvml-wrapper/debian/patches/series b/src/nvml-wrapper/debian/patches/series index fa7eaac47a..bc012a32ec 100644 --- a/src/nvml-wrapper/debian/patches/series +++ b/src/nvml-wrapper/debian/patches/series @@ -1 +1,2 @@ relax-deps.diff +add-method-for-getting-the-vGPU-type-id.patch -- 2.47.3