mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-04-29 13:36:22 +00:00
fix #4553: nvidia vgpu: reuse smbios uuid for '-uuid' parameter
instead of using the mdev uuid. The nvidia driver does not actually care that it's the same as the mdev, and in qemu the uuid parameter overwrites the smbios1 uuid internally, so we should have been reusing that in the first place. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
79f5ca393a
commit
c8bd54e9a8
@ -5851,9 +5851,14 @@ sub vm_start_nolock {
|
||||
for my $dev ($d->{pciid}->@*) {
|
||||
my $info = PVE::QemuServer::PCI::prepare_pci_device($vmid, $dev->{id}, $id, $d->{mdev});
|
||||
|
||||
# nvidia grid needs the uuid of the mdev as qemu parameter
|
||||
# nvidia grid needs the qemu parameter '-uuid' set
|
||||
# use smbios uuid or mdev uuid as fallback for that
|
||||
if ($d->{mdev} && !defined($uuid) && $info->{vendor} eq '10de') {
|
||||
$uuid = PVE::QemuServer::PCI::generate_mdev_uuid($vmid, $id);
|
||||
if (defined($conf->{smbios1})) {
|
||||
my $smbios_conf = parse_smbios1($conf->{smbios1});
|
||||
$uuid = $smbios_conf->{uuid} if defined($smbios_conf->{uuid});
|
||||
}
|
||||
$uuid = PVE::QemuServer::PCI::generate_mdev_uuid($vmid, $id) if !defined($uuid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user