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/memory.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'kernel/memory.c') diff --git a/kernel/memory.c b/kernel/memory.c index 710799d..cd81496 100644 --- a/kernel/memory.c +++ b/kernel/memory.c @@ -12,17 +12,6 @@ #include "nvidia-vgpu-vfio.h" #include "memory.h" -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; -}; - static LIST_HEAD(simple_mappings); static DEFINE_MUTEX(simple_lock); -- cgit v1.2.3