[Suggestion] Let VirtIO-GPU support max_outputs.

kikoko

New Member
Apr 2, 2025
22
0
1
Tldr need virtiogpu multi monitor support and a new option for displays called unset.


1) According to the qemu display driver source code, virtio gpu supports max_outputs as well as qxl.
Extends https://lists.proxmox.com/pipermail/pve-devel/2019-November/040462.html
1743816351479.png

This would've required simply adding extra options (or maybe a field, but seems like that goes against proxmox policy of simplifying things) such as VirtIO-GPU Dual monitor, 3 and 4 monitors. The source code of drivers (neither qxl nor virtio-gpu) does not really restrict us on the number of display we can attach.

1743816781921.png
1743816909734.png
1743816933348.png


2) Right now we've gotten an option vga: none, but what it does is setting nographic and some other properties, can we have one more, called unset? Which won't expose id=vga at all and no extra flags so we could've overrode it with default options such as:
1743817053278.png
Code:
-device 'virtio-vga,id=vga,max_hostmem=268435456,bus=pci.0,addr=0x2,max_outputs=4'
using the same id = vga, instead of going nuts and having to work with different ids such as:
Code:
-device 'virtio-vga,id=vga2,max_hostmem=268435456,bus=pci.0,addr=0x9,max_outputs=4'
?

P.s I tried doing the trick I've achieved with dummy driver on virtio-vga driver (modesetting) on xorg, but for some reason unlike xorg's dummy driver it didn't let me enabled/connect the second display even thought its recognized by xrandr.

Then I tried
```

-device 'virtio-vga,id=vga,max_hostmem=268435456,bus=pci.0,addr=0x2,max_outputs=4'
-device 'virtio-vga,id=vga2,max_hostmem=268435456,bus=pci.0,addr=0x9,max_outputs=4'
```
and X -configure to see what it generates, seems like it does recognize the second device, but it makes the list Such as Virtual-1,2,3,4,5,6,7,8 (everything besides 1 is disabled obviously lol).


Proxmox really needs a new access flag called edit configuration so we could've let the users edit the conf, files, so they could've run what they needed. We already have show configuration in backups, nothing stops from making a similar window for PVE admin/other new group's members.
1743818196486.png
 
Last edited:
1743816781921.png

Also max outputs on 1692 most likely should be just qxlnum, it doesn't matter whether you pick dual monitor or 3, you always get 4 spawned on linux.