enable spice also for virtio-gpu display

same spirit as commit 3591b62b85

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-28 17:46:57 +02:00
parent 202a2a0bee
commit f8ea1b30ce
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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++){