]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer.pm
allow explicit set vga with gpu passthrough
[qemu-server.git] / PVE / QemuServer.pm
index c85876fd320719a96d5d320909952cae3e2c996b..bc3bb1d34781d91c23bb35337342261042064e89 100644 (file)
@@ -3553,7 +3553,7 @@ sub config_to_command {
        if ($d->{'x-vga'}) {
            $xvga = ',x-vga=on';
            $kvm_off = 1;
-           $vga->{type} = 'none';
+           $vga->{type} = 'none' if !defined($conf->{vga});
            $gpu_passthrough = 1;
 
            if ($conf->{bios} && $conf->{bios} eq 'ovmf') {