Go to file
Dominik Csapak 17dcba38dd ui: qemu: increase available usb ports depending on machine and ostype
in the backend, we allow up to 14 usb ports, but only if the vm can
use the qemu-xhci controller which is only possible since machine
version 7.1 and if the ostype is l26 or windows > 7

for this we introduce two helpers:
* qemu_min_version: modeled after the signature of 'min_version' from
  qemu-server, expects two arrays of versions and returns true if
  the first parameter is equal or greater than the second version
* get_max_usb_count looks at the given ostype and machine string
  and returns the proper maximum number

since we don't currently have the actual running version of the vm in
the gui, this is only a heuristic for running vms. but since the actual
running version could only be lower if none is set (e.g. for
migrated/long-running vms) we allow more in the gui and the backend will
do the proper thing (either hotplug it, or make it a pending change)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-10 17:06:41 +01:00
aplinfo apl info: update index to current repository state 2022-11-09 17:57:16 +01:00
bin remove pvemailforward binary 2022-11-10 11:56:47 +01:00
configs vzdump: handle new 'performance' property string 2022-10-10 13:04:17 +02:00
debian d/control: drop ${shlibs:Depends} for pve-manager 2022-11-10 11:56:52 +01:00
network-hooks ifupdown1: bridgevlan: add bridge-vids list support 2020-01-11 17:22:46 +01:00
PVE Jobs/Plugin: remove 'vzdump' from id description 2022-11-07 17:14:11 +01:00
services ceph-after-pve-cluster: enable for ceph-volume, disable for ceph-disk 2022-07-19 17:21:18 +02:00
test fix replication fail count tests & bump libpve-guest-common-perl b-d 2022-04-27 18:53:27 +02:00
www ui: qemu: increase available usb ports depending on machine and ostype 2022-11-10 17:06:41 +01:00
.gitignore Extend the .gitignore(s) 2018-05-04 14:50:04 +02:00
defines.mk fix #844: allow to pre-delay start-all-marked guests on boot 2019-11-20 20:20:58 +01:00
Makefile avoid installing unused var/lib/vz/template/qemu directory 2022-01-11 14:13:45 +01:00
spice-example-sh doc: spice-example-sh: support special characters in passwords 2017-10-05 13:57:27 +02:00
vzdump-hook-script.pl close #3476: vzdump: add job-init hook 2022-01-18 12:20:26 +01:00