public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
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	[thread overview]
Message-ID: <20260305091711.1221589-7-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260305091711.1221589-1-d.csapak@proxmox.com>

it's not yet included in an upstream release, but we need it.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 ...-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 <dominik.csapak@gmail.com>
+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 <d.csapak@proxmox.com>
+---
+ 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





  parent reply	other threads:[~2026-03-05  9:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-05  9:16 [PATCH common/debcargo-conf/manager/proxmox-perl-rs/qemu-server 00/13] use NVML for vGPU info querying Dominik Csapak
2026-03-05  9:16 ` [PATCH debcargo-conf 1/8] nvml-wrapper-sys: Update to 0.9.0 Dominik Csapak
2026-03-05  9:16 ` [PATCH debcargo-conf 2/8] nvml-wrapper-sys: release 0.9.0-1 Dominik Csapak
2026-03-05  9:16 ` [PATCH debcargo-conf 3/8] nvml-wrapper: Update to 0.11.0 Dominik Csapak
2026-03-05  9:16 ` [PATCH debcargo-conf 4/8] nvml-wrapper: release 0.11.0-1 Dominik Csapak
2026-03-05  9:16 ` [PATCH debcargo-conf 5/8] nvml-wrapper: Update to 0.12.0 Dominik Csapak
2026-03-05  9:16 ` Dominik Csapak [this message]
2026-03-05  9:16 ` [PATCH debcargo-conf 7/8] backport nvml-wrapper-sys 0.9.0-1 Dominik Csapak
2026-03-05  9:16 ` [PATCH debcargo-conf 8/8] backport nvml-wrapper 0.12.0-1 Dominik Csapak
2026-03-05  9:16 ` [PATCH proxmox-perl-rs 1/1] pve: add binding for accessing vgpu info Dominik Csapak
2026-03-05  9:16 ` [PATCH qemu-server 1/2] pci: move mdev related code to own module Dominik Csapak
2026-03-05  9:16 ` [PATCH qemu-server 2/2] pci: mdev: use PVE::RS::NVML for nvidia mdev information Dominik Csapak
2026-03-05  9:16 ` [PATCH manager 1/1] api: hardware: pci: use NVML for querying " Dominik Csapak
2026-03-05  9:16 ` [PATCH common 1/1] sysfs tools: remove moved code Dominik Csapak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260305091711.1221589-7-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal