[pve-devel] [PATCH qemu-server 11/13] arm: always use virtio-gpu for arm
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Oct 24 10:56:47 CEST 2018
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
PVE/QemuServer.pm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index cf48857..ceba4b2 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3534,7 +3534,13 @@ sub config_to_command {
push @$cmd, '-no-reboot' if defined($conf->{reboot}) && $conf->{reboot} == 0;
- push @$cmd, '-vga', $vga if $vga && $vga !~ m/^serial\d+$/; # for kvm 77 and later
+ if ($arch eq 'arm64') {
+ push @$cmd, '-vga', 'none';
+ my $addr = print_pci_addr('vga', $bridges, $arch, $base_machine);
+ push @$cmd, '-device', "virtio-gpu$addr";
+ } else {
+ push @$cmd, '-vga', $vga if $vga && $vga !~ m/^serial\d+$/; # for kvm 77 and later
+ }
if ($vga && $vga !~ m/^serial\d+$/ && $vga ne 'none'){
my $socket = vnc_socket($vmid);
--
2.11.0
More information about the pve-devel
mailing list