mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 02:48:12 +00:00
vga=none if x-vga passthrough is enabled
we need to disable virtual vga card if we passthrough a physical gpu Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
c4722d9641
commit
137483c053
@ -2485,8 +2485,10 @@ sub config_to_command {
|
||||
my $rombar = $d->{rombar} && $d->{rombar} eq 'off' ? ",rombar=0" : "";
|
||||
my $driver = $d->{driver} && $d->{driver} eq 'vfio' ? "vfio-pci" : "pci-assign";
|
||||
my $xvga = $d->{'x-vga'} && $d->{'x-vga'} eq 'on' ? ",x-vga=on" : "";
|
||||
push @$cpuFlags, 'kvm=off' if $xvga && $xvga ne '';
|
||||
|
||||
if ($xvga && $xvga ne '') {
|
||||
push @$cpuFlags, 'kvm=off';
|
||||
$vga = 'none';
|
||||
}
|
||||
$driver = "vfio-pci" if $xvga ne '';
|
||||
my $pcidevices = $d->{pciid};
|
||||
my $multifunction = 1 if @$pcidevices > 1;
|
||||
|
Loading…
Reference in New Issue
Block a user