blob: 3e5fd9a76452412ce36a11065b5fa9b9b33367f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From bb613be50acbf1479ba32bd79a55705645754b3d Mon Sep 17 00:00:00 2001
From: Coia Prant <coiaprant@gmail.com>
Date: Tue, 3 Jun 2025 00:12:13 +0800
Subject: [PATCH 5/7] nvidia(ctrl0000vgpu): sync vGPU 18.x (R570) fields
Synchronizing fields for vGPU 18.x (R570)
Signed-off-by: Coia Prant <coiaprant@gmail.com>
---
src/nvidia/ctrl0000vgpu.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/nvidia/ctrl0000vgpu.rs b/src/nvidia/ctrl0000vgpu.rs
index 6e477b4..3eb820c 100644
--- a/src/nvidia/ctrl0000vgpu.rs
+++ b/src/nvidia/ctrl0000vgpu.rs
@@ -40,6 +40,11 @@ pub struct Nv0000CtrlVgpuCreateDeviceParams {
pub gpu_pci_bdf: u32,
pub vgpu_type_id: u32,
pub vgpu_id: u16,
+ // R570 adds additional fields, leave them out for now for backwards compat with 16.x and 17.x
+ // https://github.com/NVIDIA/open-gpu-kernel-modules/blob/570/src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000vgpu.h#L94-L95
+ //
+ // pub gpuInstanceId: u32,
+ // pub placementId: u32,
}
impl fmt::Debug for Nv0000CtrlVgpuCreateDeviceParams {
--
2.50.1
|