<feed xmlns='http://www.w3.org/2005/Atom'>
<title>open-iov.git/kernel/gsp_rpc_client.h, branch archive/pre-squash</title>
<subtitle>Open-IOV vGPU-IO: host-side GSP emulation for unmodified NVIDIA guest drivers
</subtitle>
<id>https://git.vgpu.io/open-iov.git/atom?h=archive%2Fpre-squash</id>
<link rel='self' href='https://git.vgpu.io/open-iov.git/atom?h=archive%2Fpre-squash'/>
<link rel='alternate' type='text/html' href='https://git.vgpu.io/open-iov.git/'/>
<updated>2026-09-14T10:43:11+00:00</updated>
<entry>
<title>VFIO device registration fix + IOMMUFD callbacks + VFIO ioctl handlers</title>
<updated>2026-09-14T10:43:11+00:00</updated>
<author>
<name>Arthur Hanson Rasmusson</name>
<email>arthur@vgpu.io</email>
</author>
<published>2026-09-14T10:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vgpu.io/open-iov.git/commit/?id=5dd8165f1754e156a0f9fb16c7a6bfa90e99ed60'/>
<id>urn:sha1:5dd8165f1754e156a0f9fb16c7a6bfa90e99ed60</id>
<content type='text'>
- Removed IOMMU group addition before vfio_register_emulated_iommu_dev() in nv_vgpu_mdev_create()
- Added IOMMUFD callbacks (bind_iommufd, unbind_iommufd, attach_ioas, detach_ioas) using kernel's vfio_iommufd_emulated_* functions
- Implemented VFIO ioctl handlers: GET_INFO, GET_REGION_INFO, GET_IRQ_INFO, SET_IRQS, MMAP
- Added config space read/write handlers at offset 0x70000000000
- Mmap handler for config space, BAR0 (emulation shadow), BAR1-5 (physical VRAM/registers)
- Interrupt handler for VFIO_DEVICE_SET_IRQS (DATA_EVENTFD, DATA_NONE, DATA_BOOL)
- Added udev rules for vfio group permissions
- Created stack_manager.sh unified tool
- Fixed mdev remove crash with deferred cleanup in vfio_device_release callback
- Kernel 6.8+ IOMMUFD compatibility
- QEMU launches successfully with vGPU passthrough
</content>
</entry>
<entry>
<title>Phase 3: RPC Handler Completion</title>
<updated>2026-09-13T23:18:21+00:00</updated>
<author>
<name>Arthur Hanson Rasmusson</name>
<email>arthur@vgpu.io</email>
</author>
<published>2026-09-13T23:18:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vgpu.io/open-iov.git/commit/?id=7adef330df18691acabda9f5c988742f23a2917d'/>
<id>urn:sha1:7adef330df18691acabda9f5c988742f23a2917d</id>
<content type='text'>
- 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
</content>
</entry>
<entry>
<title>Phase 1: Add GSP Emulation Engine (host-side)</title>
<updated>2026-09-13T23:07:41+00:00</updated>
<author>
<name>Arthur Hanson Rasmusson</name>
<email>arthur@vgpu.io</email>
</author>
<published>2026-09-13T23:07:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vgpu.io/open-iov.git/commit/?id=4b745a1c2c0534a1850b6efe6710536b2225c3f4'/>
<id>urn:sha1:4b745a1c2c0534a1850b6efe6710536b2225c3f4</id>
<content type='text'>
- New kernel/gsp_emulation.h: GSP emulation context and API
- New kernel/gsp_emulation.c: Per-mdev emulation thread with:
  - Adaptive polling of doorbell at BAR0+0x110C00
  - Shared memory RPC processing (4KB at BAR0+0x1000)
  - Dispatch for all 12 RPC types via firmware-decompiled handlers
  - MSI-X completion interrupt injection via eventfd
  - Statistics tracking (processed/failed RPCs, latency)
- Modified kernel/main.c: Integrate gsp_emu_init/cleanup in device lifecycle
- Modified kernel/Makefile: Add gsp_emulation.o to build
- Modified kernel/gsp_rpc_client.h: Export gsp_rpc_emulation_set/is_enabled
</content>
</entry>
<entry>
<title>Initial commit: Open-IOV vGPU-IO complete stack</title>
<updated>2026-09-13T22:36:21+00:00</updated>
<author>
<name>Arthur Hanson Rasmusson</name>
<email>arthur@vgpu.io</email>
</author>
<published>2026-09-13T22:36:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vgpu.io/open-iov.git/commit/?id=00e54c13c7c9030c4d5f7151467f2d85a3730e29'/>
<id>urn:sha1:00e54c13c7c9030c4d5f7151467f2d85a3730e29</id>
<content type='text'>
- Firmware decompilation: GSP 570.144W (28.5MB ELF, RV64IMAC), 132 decompiled C files
- Kernel modules: nvidia.ko (34MB, OpenRM), open-iov-vfio.ko (2.8MB, VFIO mdev), gsp-vgpu.ko (1.8MB, guest driver)
- Userspace: libiov.so/libvgpu.so (76KB), example_vgpu (28KB), rpc_emulator.c
- PCI config space emulation (256B with PM, MSI, MSI-X, PCIe caps)
- 12 RPC types fully mapped from firmware decompilation
- BAR trap, WPR, scheduling, notification, migration emulation
- Helper scripts: load_vgpu_stack, create_mdev, launch_qemu_vgpu, test_vgpu_stack, setup_guest_driver, unload_vgpu_stack
- Architecture documentation
- Wiki: 10 technical documents
- Git LFS for large binaries (.ko, .bin, .iso, .img, .o, ghidra repos)
- nvidia-open-gpu-kernel-modules as submodule
</content>
</entry>
</feed>
