From 7adef330df18691acabda9f5c988742f23a2917d Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Sun, 13 Sep 2026 19:18:21 -0400 Subject: Phase 3: RPC Handler Completion - Enhanced gsp_rpc_client.c with proper emulation implementations: - ALLOC/FREE: VRAM allocation tracking with host page allocation and DMA mapping - MAP/UNMAP: GPU VA mapping management - PIN/UNPIN: DMA address retrieval for pinned pages - SCHEDULE/YIELD: Local workqueue-based scheduling - NOTIFY: Callback registration for async events - Added emulation function declarations to gsp_rpc_client.h - Exported nv_vgpu_simple_mapping struct in memory.h for cross-file use - Updated RPC handlers to use gsp_rpc_emulation_is_enabled() accessor - All 12 RPC types now have functional emulation fallbacks --- kernel/include/memory.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'kernel/include/memory.h') diff --git a/kernel/include/memory.h b/kernel/include/memory.h index 14a35e9..07e57f2 100644 --- a/kernel/include/memory.h +++ b/kernel/include/memory.h @@ -16,6 +16,17 @@ struct nv_vgpu_mapping { struct list_head list; }; +struct nv_vgpu_simple_mapping { + u64 gpa; + u64 size; + u64 iova; + struct page **pages; + int page_count; + bool pinned; + bool mapped; + struct list_head list; +}; + struct nv_vgpu_mm_ctx { struct nv_vgpu_device *vgpu; struct mutex lock; -- cgit v1.2.3