From: Alexandre Derumier Date: Sat, 9 Jan 2016 06:27:35 +0000 (+0100) Subject: ovmf : don't pass x-vga to vfio-pci X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=230a4382006afd29435eccfcdd79003870f49e9f ovmf : don't pass x-vga to vfio-pci 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 --- diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 7991f10..3092421 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -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;