From 549d1e8126f96b3515d37037ae22e0dce430c20b Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Mon, 5 Oct 2026 12:25:05 -0400 Subject: vgsp: per-mdev emulated VRAM size (1.0 multiple mediate sizes) - nv_vgpu_type_info/ioctl gain vram_mb; nv_vgpu_device gains fb_emul_size bound from the mdev type at create (default 512 MiB). - New nvidia-vgpu-turing-1g type (1024 MiB); turing max_instances 1 -> 2; show_description reports the per-type framebuffer and max_instance. - Thread fb_emul_size through GSCI fb_length/region/frtsOffset, WPR2, NV_PFB_PRI_MMU_LOCAL_MEMORY_RANGE, the vidmem allocator bound and the BAR1 shadow; bar_info callback uses the per-device size. - UNTESTED at commit time: builds clean; validation blocked by the Xid 140 incident (reboot pending). See Handoff-vGPU-IO.md ADDENDUM 48. --- kernel/include/ioctl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/include/ioctl.h') diff --git a/kernel/include/ioctl.h b/kernel/include/ioctl.h index 36d28ac..58fea37 100644 --- a/kernel/include/ioctl.h +++ b/kernel/include/ioctl.h @@ -42,6 +42,7 @@ struct nv_vgpu_type_info { u64 vdev_id; u64 pdev_id; u32 max_instances; + u32 vram_mb; /* emulated framebuffer size; 0 = 512 MiB default */ }; struct nv_vgpu_ioctl_get_info { @@ -111,6 +112,7 @@ struct nv_vgpu_ioctl_register_vgpu_type { u64 vdev_id; u64 pdev_id; u32 max_instances; + u32 vram_mb; }; int nv_vgpu_ioctl_get_info(struct nv_vgpu_device *vgpu, void __user *arg); -- cgit v1.2.3