pve-manager/www/manager6/qemu
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
..
AgentIPView.js ui: eslint: State equalities more precisely 2021-05-18 15:22:05 +02:00
AudioEdit.js ui: eslint: fix various spacing related issues 2021-01-19 17:39:15 +01:00
BootOrderEdit.js ui: vm boot order: move init logic into controller 2022-03-14 08:40:46 +01:00
CDEdit.js ui: BusTypeSelector: change noVirtIO to withVirtIO 2022-04-07 15:35:17 +02:00
CIDriveEdit.js ui: BusTypeSelector: change noVirtIO to withVirtIO 2022-04-07 15:35:17 +02:00
CloudInit.js ui: eslint: Remove useless escapes 2021-05-18 15:22:05 +02:00
CmdMenu.js fix #3470: ui: qemu/CmdMenu: fix confirm message for 'pause' cmd 2021-06-18 17:21:52 +02:00
Config.js ui: adapt task-history icon, use same as in PBS 2021-07-03 02:41:02 +02:00
CreateWizard.js ui: add qemu/MultiHDEdit and use it in the wizard 2021-11-05 09:50:36 +01:00
DisplayEdit.js ui: utils: drop some useles _array helpers, just use Object.entries 2022-04-26 09:07:14 +02:00
HardwareView.js ui: qemu: increase available usb ports depending on machine and ostype 2022-11-10 17:06:41 +01:00
HDEdit.js GUI: HDEdit: check iothread by default and move it from advanced section 2022-11-08 17:50:38 +01:00
HDEfi.js ui: clarify labels for EFI/TPM storage 2021-10-21 13:41:06 +02:00
HDMove.js fix # 4044: ui: hd move: avoid bogus progress bar, show task viewer 2022-05-11 16:23:11 +02:00
HDResize.js ui: eslint: Miscellaneous eslint fixes 2021-05-18 15:22:05 +02:00
HDTPM.js ui: clarify labels for EFI/TPM storage 2021-10-21 13:41:06 +02:00
IPConfigEdit.js js: readd SLAAC option to IPConfig 2021-03-31 15:35:59 +02:00
KeyboardEdit.js ui: eslint: fix various spacing related issues 2021-01-19 17:39:15 +01:00
MachineEdit.js Utils: add is_windows and use in MachineEdit 2021-03-08 11:05:13 +01:00
MemoryEdit.js ui: vm create wizard: default to 4 GiB memory for win11 os type 2021-12-09 17:41:45 +01:00
Monitor.js ui: eslint: fix various spacing related issues 2021-01-19 17:39:15 +01:00
MultiHDEdit.js ui: add qemu/MultiHDEdit and use it in the wizard 2021-11-05 09:50:36 +01:00
NetworkEdit.js ui: eslint: enforce "no-extra-parens" rule 2021-01-19 17:42:36 +01:00
Options.js gui: add help button to qm guest agent window 2022-03-16 15:32:34 +01:00
OSDefaults.js GUI: OS defaults: use SCSI single as default controller 2022-11-08 17:50:38 +01:00
OSTypeEdit.js ui: qemu/OSTypeEdit: set ostype in viewmodel 2021-10-04 08:55:05 +02:00
PCIEdit.js ui: fix adding hostpci > 5 2022-04-25 18:22:24 +02:00
ProcessorEdit.js Merge branch 'taskset' into taskset-merged 2022-11-10 09:43:32 +01:00
QemuBiosEdit.js ui: refactor pveQemuBiosEdit widget 2019-10-10 17:25:12 +02:00
RNGEdit.js ui: eslint: State equalities more precisely 2021-05-18 15:22:05 +02:00
ScsiHwEdit.js ui: eslint: fix various spacing related issues 2021-01-19 17:39:15 +01:00
SerialEdit.js ui: eslint: fix usage of 'me' 2021-05-18 15:22:05 +02:00
Smbios1Edit.js ui: eslint: No unused or duplicate variables 2021-05-18 15:22:05 +02:00
SSHKey.js ui: eslint: fix usage of 'me' 2021-05-18 15:22:05 +02:00
SystemEdit.js ui: utils: drop some useles _array helpers, just use Object.entries 2022-04-26 09:07:14 +02:00
USBEdit.js ui: qemu: increase available usb ports depending on machine and ostype 2022-11-10 17:06:41 +01:00