17-19 October 2023
Palexco
Europe/Madrid timezone

Xen based GPU virtualization - VirtIO/Passthrough

18 Oct 2023, 16:00
20m
Palexco

Palexco

Muelle de Trasatlánticos, s/n, 15003 A Coruña, A Coruña, Spain
Talk (half slot) Main Track

Speaker

Ray Huang (AMD)

Description

Xen is one of the most popular hypervisors in the world, however, the GPU virtualization on Xen is currently lacking in quite a few areas. VirtIO GPU is widely used on KVM, but less so on Xen and a number of features, including vulkan, are not currently functional in a guest VM.
To address this, we are working to have more complete graphics and multimedia support on Xen. Earlier this year, we started pushing out the first patches[1] to support venus, passthrough gpu, and virgl video on Xen + QEMU, and were invited to present it at the Xen summit [2][3] in June. We have continued improving Xen support for GPUs, adding new functionality like dGPU PRIME (Passthrough GPU rendering + VirtIO GPU display in one guest VM), and introducing virtio native context which is a more straightforward and performant way to use native drivers instead of virgl/venus in a guest VM.
This talk will provide an overview of AMDs experiences enabling GPU virtualization on Xen based platforms.

Reference:
[1] https://www.phoronix.com/news/AMD-GPU-Better-Xen
[2] https://xen2023.sched.com/event/1LKln
[3] https://www.phoronix.com/news/AMD-Xen-GPU-For-Cars
[4] https://www.phoronix.com/news/AMD-GPU-Xen-Hypervisor-S3
[5] https://lore.kernel.org/lkml/20230312120157.452859-1-ray.huang@amd.com/
[6] https://lore.kernel.org/xen-devel/20230312075455.450187-1-ray.huang@amd.com/
[7] https://lore.kernel.org/qemu-devel/20230312092244.451465-1-ray.huang@amd.com/
[8] https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1068
[9] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22108
[10] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23680

Code of Conduct Yes
In-person or virtual presentation In-person

Primary author

Presentation Materials

2023 Platinum Sponsor
Igalia
2023 Gold Sponsors
Google
Collabora
Arm
Microsoft
2023 Silver Sponsors
FEX-Emu
The Linux Foundation
AMD
Qualcomm
2023 Bronze Sponsors
Khronos Group
CodeWeavers
2023 Supporters
A Coruña Turismo
GPUL
Raspberry Pi