I am curious if anyone has a comment about the security level of a SR-IOV Virtual Function graphics device and if it’s better than directly attaching the entire device.
As I understand the issue is related to:
vfio for graphics being substantially more complex.
Graphics device are complex and most don’t support FLR.
Firmware re-write attacks on the graphics device and secondary processors related to power control.
I know many of the hyperscalers use this and it is considered fine but it’s a very niche topic.
The lack of video acceleration means that I must use another computer to watch movies or use an image editor.
Well, it can’t be better that attaching the entire device
It is exist because you simply can’t have as many real GPU as it would needed for attaching to a VM.
And because this technology needs special devices and drivers it’s simply not available for everyone out there. Means security experts might not even seen such hardware to check it’s real ‘security’. So we all are depending on the actual hardware vendors implementing the standards correctly.
So if you lucky to have a system with working GPU SR-IOV support, you must accept the ‘risk’ - whatever it s in the current state - in exchange you get multiple VM’s with GPU support. - if it’s worth it? - you have to decide.
At least I would be happy to have a working vGPU capable system before I even start thinking about how it might breaks my current threat model
I have to agree with @Zrubi here. My biggest issue with QubesOS at the beginning was missing GPU in VMs. I suffered from it a lot while browsing or watching movies. The SRIOV approach works for me on a Novacustom v54 machine, providing 7 independent vGPUs that I have assigned to different VMs. It is still a hazzle during updates, especially kernel switches. Also because the current SRIOV implementation is prone to bugs causing lags and similar, but if you find a working combination of host and slave SRIOV module versions, it is a big benefit.
I also thought about security at some point, but as my threat model does not really involve GPU drivers I am not concerned about it that much an enjoy the benefits it brings.