Skip to content

Commit 24934bb

Browse files
feat: Integrate vendor VFIO vGPUs into the instance lifecycle
Stainless-Generated-From: 5c23aa338b3131721f25174807fe8ae9270f7851
1 parent f40e63d commit 24934bb

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/hypeman/types/gpu_profile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ class GPUProfile(BaseModel):
99
"""Available vGPU profile"""
1010

1111
available: int
12-
"""Number of instances that can be created with this profile"""
12+
"""Number of virtual functions currently able to create this profile.
13+
14+
Best-effort: creating an instance may reduce availability on sibling functions
15+
sharing GPU framebuffer.
16+
"""
1317

1418
framebuffer_mb: int
1519
"""Frame buffer size in MB"""

src/hypeman/types/instance.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
class GPU(BaseModel):
2020
"""GPU information attached to the instance"""
2121

22+
device_path: Optional[str] = None
23+
"""sysfs path of the assigned vGPU device"""
24+
2225
mdev_uuid: Optional[str] = None
23-
"""mdev device UUID"""
26+
"""mdev device UUID (mdev hosts only)"""
2427

2528
profile: Optional[str] = None
2629
"""vGPU profile name"""

0 commit comments

Comments
 (0)