[pve-devel] [PATCH] ovmf : don't pass x-vga to vfio-pci

Alexandre Derumier aderumier at odiso.com
Sat Jan 9 07:27:35 CET 2016


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 at odiso.com>
---
 PVE/QemuServer.pm | 3 +++
 1 file changed, 3 insertions(+)

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




More information about the pve-devel mailing list