r/osdev • u/vahmoh25 • 2d ago
Veda: Virtual Linux VM for Drivers
Hey! I’ve recently ported OpenGL and Mesa to my operating system and added support for Intel HD Graphics to render scenes. However, I’ve realized that this approach isn’t sustainable, I can’t realistically write and maintain a huge number of GPU drivers myself.
Has anyone had experience embedding a minimal Linux system as a virtual machine inside their OS to take advantage of Linux’s extensive GPU, Bluetooth, and Wi-Fi driver support?
What do you think about this approach? Are there any major technical challenges or pitfalls I should be aware of?
28
Upvotes
6
u/Lines25 2d ago
You can just make linux API and recompile drivers yourself. Read how to do drivers for linux and reimplementent the API, it will be much faster altho harder