[QEMU] Using VirGL with vhost-user-gpu in a Guest/VM?

manggood

New Member
Jul 24, 2024
1
0
1
Hi,

I have been reading about vhost-user and specifically vhost-user-gpu, which is used alongside VirGL/Venus on QEMU to provide "pieces"/"slices" of a GPU from the host to Guests/VMs.

The problem with this is that using `dpdk`, this is running in user-space instead of kernel space, which is a problem for security.

My idea is:

1. Pass through host GPU to guest VM with VFIO.
2. Install dpdk, vhost utilities and VirGL/Venus on Guest.
3. Use RPC (QEMUGuestAgent) to let other guests use "slices" of the GPU (passed through to the original guest).

I have a theoretical (but incomplete) understanding of the first two steps, but the third step is where I'm completely stumped: I have not being able to find any tutorials on how do something like this over RPC.

If anyone has done this, please comment! I would greatly appreciate any leads on this. Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!