When running a qemu-user chroot (say, a riscv64 chroot inside an amd64 host), is it possible to share the gpu and/or its drivers?
1
vote
1
answer
125
views
I'm curious to see if I can, say, somehow reroute the riscv64 mesa drivers to the host's gpu. I've already got X11 and OpenGL applications working from the riscv64 chroot, but they end up using softpipe.
So, could it be possible to shim a riscv64 chroot's libGL.so or something while the host amd64 pc's libGL.so does all the work, so that the riscv64 chroot uses the actual gpu the amd64 host is using (in my case, an RTX 3060)?
EDIT: Originally, this question also asked about sharing the gpu itself and its actual drivers, instead of just shimming riscv64 mesa for the amd64 host. However, I discovered that NVIDIA doesn't have support (at least in their "official" drivers) for riscv64; only amd64 and arm64 (but now I'm curious if the gpu sharing thing can work in an arm64 chroot, but that's besides the point).
Asked by ChrisNonyminus
(11 rep)
Apr 7, 2023, 03:45 AM
Last activity: Apr 7, 2023, 01:20 PM
Last activity: Apr 7, 2023, 01:20 PM