]> git.proxmox.com Git - qemu-server.git/commitdiff
ovmf : don't pass x-vga to vfio-pci
authorAlexandre Derumier <aderumier@odiso.com>
Sat, 9 Jan 2016 06:27:35 +0000 (07:27 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sun, 10 Jan 2016 14:10:26 +0000 (15:10 +0100)
x-vga vfio-pci flag is to enable seabios quirks only.

This patch keep using x-vga=on from proxmox config, to disable hyperv,kvm=off,vga=none by default
but don't pass x-vga to vfio-pci when ovmf is enabled.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index 7991f10ea1c811361d7ccaa664ac537a2f3eff0a..30924214a1135543e4517e4d80946c264bb87ec4 100644 (file)
@@ -2778,6 +2778,9 @@ sub config_to_command {
            push @$cpuFlags, 'kvm=off';
            $vga = 'none';
            $nohyperv = 1;
+           if ($conf->{bios} && $conf->{bios} eq 'ovmf') {
+               $xvga = "";
+           }
        }
        my $pcidevices = $d->{pciid};
        my $multifunction = 1 if @$pcidevices > 1;