-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VirGL + Virtio GPU support for GPU accel #144
Comments
I think it would be better to invest into a |
would that work on windows OS host as well as unix* hosts ? hmm https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24223 |
ok i managed to get https://gitlab.freedesktop.org/virgl/virglrenderer compiling for the ndk (api 28) in cmake with meson |
https://github.com/ZLangJIT/riscv-kernel/actions/runs/11163610342/job/31030971191
|
specifically, to clarify the above
but i do not know how to make |
apparently the vm must support a virtio gpu |
@LekKit how might i go about beginning to port this from qemu over to rvvm ? |
https://gitlab.com/qemu-project/qemu/-/tree/master/hw/virtio oof, lots of files |
hmm https://docs.oasis-open.org/virtio/virtio/v1.2/virtio-v1.2.html appears to be the reference for the HOST implementation of virtio (vm/hyperv/kvm/ect side) and for the CLIENT implementation of virtio (guest/kernel side) |
the only implementation of virt-gpu i can find is qemu's hw/display/virtio*.c not even the kernel has a virt-gpu implementation, just seems to have a guest implementation even though the kernel has a KVM hypervisor implementation |
hmm sysprog21/semu#34 - implement virtio-gpu + utilize kernel virgl + host virglrenderer |
I hope they won't be mad if we look at their implementation and reuse it somewhat :) @X547 Could you please look at this whenever you have free time? It seems that GUI backends don't need any changes for this. |
imma move to a new issue |
Nah it's fine here |
how might i go about implementing GPU acceleration support via rvvm and a custom riscv kernel, specifically
GL INSTANCE - RENDERER - PID 284 - HOST
SHELL - RVVM - KERNEL - PID 382 = GUEST
as im thinking of something like https://github.com/dmaivel/sharedgl for api remoting from the guest to the host (android EGL host context) tho im not sure how to go about such
most implementations (using qemu) seem to expose shared memory (eg
/dev/shm/foo
or/dev/ashmem/foo
(not sure what win32 equivilant would be) ) from host to guest which can be used for the custom guest driver to communicate with the host remoting server among other purposesThe text was updated successfully, but these errors were encountered: