Re:LibVF.IO: Add support for GPU Virtual Machine (GVM)
by amelius on Wednesday August 24, 2022 @06:52PM
(#32586905)
How secure is that? Are users of a GPU completely isolated from eachother? Will there be side-channel attacks possible?
[ Parent
| on HN ]
Re:LibVF.IO: Add support for GPU Virtual Machine (GVM)
by ArcVRArthur on Wednesday August 24, 2022 @07:04PM
(#32587028)
GVM uses IOMMU for compartmentalization:
This page has a comparison of the various IO assistance modes GVM can make use of (see comparison of assistance modes, the Mdev Mode section, and the SR-IOV Mode section):
https://openmdev.io/index.php/Virtual_IO_Internals
This will probably also play a role in future developments like SIOV (Scalable IO Virtualization):
https://lwn.net/ml/linux-kernel/20190222021927.13132-1-baolu...
Re:LibVF.IO: Add support for GPU Virtual Machine (GVM)
by amarshall on Wednesday August 24, 2022 @06:58PM
(#32586974)
It’s mostly up to the specific hardware and its host-side drivers. I’d say that GPU compute security is a very under-studied area compared with CPU compute.
Re:LibVF.IO: Add support for GPU Virtual Machine (GVM)
by ArcVRArthur on Wednesday August 24, 2022 @07:10PM
(#32587103)
Ya, that's accurate. The precise driver implementation matters a lot. Having said that there are some good 'best practices' that seem to make a difference. In my opinion 'IOMMU Aware Mediated Device' could also make some much needed improvements here as it would allow for more granular IOMMU allocations - perhaps this mode could help further support the 'App VMs' use-case using shared work queues without breaking IO virtual address translation:
https://lwn.net/ml/linux-kernel/20190222021927.13132-1-baolu...