]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer/PCI.pm
automatically add 'uuid' parameter when passing through NVIDIA vGPU
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 12 Aug 2022 09:29:49 +0000 (11:29 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 12 Aug 2022 11:42:33 +0000 (13:42 +0200)
commitbbf96e0f1ea0977c1b37e1ae3bbd9a9aed900c26
treeb0547cfa8f2390e911fbddd09bf0f65fe3dfe7ee
parentbd49ecb4356485c6b7ad54b896246274ae6d8d18
automatically add 'uuid' parameter when passing through NVIDIA vGPU

When passing through an NVIDIA vGPU via mediated devices, their
software needs the qemu process to have the 'uuid' parameter set to the
one of the vGPU. Since it's currently not possible to pass through multiple
vGPUs to one VM (seems to be an NVIDIA driver limitation at the moment),
we don't have to take care about that.

Sadly, the place we do this, it does not show up in 'qm showcmd' as we
don't (want to) query the pci devices in that case, and then we don't
have a way of knowing if it's an NVIDIA card or not. But since this
is informational with QEMU anyway, i'd say we can ignore that.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm
PVE/QemuServer/PCI.pm