From f8ea1b30ceb21e9c04e369289cb91960cb0d17c2 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 28 Apr 2022 17:46:57 +0200 Subject: [PATCH] enable spice also for virtio-gpu display same spirit as commit 3591b62b859d940c143085510aa9b0005f42c479 Signed-off-by: Thomas Lamprecht --- PVE/API2/Qemu.pm | 2 +- PVE/QemuServer.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 54955ee2..6a936f85 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2444,7 +2444,7 @@ __PACKAGE__->register_method({ if ($conf->{vga}) { my $vga = PVE::QemuServer::parse_vga($conf->{vga}); $status->{spice} = 1 - if $vga->{type} eq 'virtio-gl' || PVE::QemuServer::vga_conf_has_spice($conf->{vga}); + if $vga->{type} =~ /^virtio/ || PVE::QemuServer::vga_conf_has_spice($conf->{vga}); } $status->{agent} = 1 if PVE::QemuServer::get_qga_key($conf, 'enabled'); diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 7f983904..5183ab23 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3844,7 +3844,7 @@ sub config_to_command { my $spice_port; - if ($qxlnum || $vga->{type} eq 'virtio-gl') { + if ($qxlnum || $vga->{type} =~ /^virtio/) { if ($qxlnum > 1) { if ($winversion){ for (my $i = 1; $i < $qxlnum; $i++){