5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-03-10 12:58:25 +03:00

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 <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2016-01-09 07:27:35 +01:00 committed by Dietmar Maurer
parent 98cbd0f47e
commit 230a438200

View 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;