mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 20:25:37 +00:00
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:
parent
202a2a0bee
commit
f8ea1b30ce
@ -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');
|
||||
|
||||
|
@ -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++){
|
||||
|
Loading…
Reference in New Issue
Block a user