qemu-server/PVE
Dominik Csapak c60cad61a0 fix #3271: USB: allow usb hotplugging for modern guests
same as with the extended support for more usb devices, allow
hotplugging for guests that can use the qemu-xhci controller which
require a machine type >= 7.1 and a ostype l26 or windows > 7

if no usb device was passed through on startup, dynamically add
the xhci controller (and remove if the last usb device is unplugged)
so that live migration is still possible

much of the usb hotplug code was already there, but it still needed
a few adaptions, for example we have to add a chardev when adding
a spice redir port (that gets automatically removed when the
usb-redir device gets removed)

since the spice devices use the id 'usbredirdevX' instead of 'usbX', we
have to manually map that a bit around

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-10 17:02:34 +01:00
..
API2 move 'windows_version' to Helpers 2022-11-10 17:02:34 +01:00
CLI api2: add cloudinit_update 2022-11-08 17:31:59 +01:00
QemuServer USB: increase max usb devices to 14 for newer machine version and ostype 2022-11-10 17:02:34 +01:00
VZDump vzdump : skip special:cloudinit section 2022-11-08 17:23:30 +01:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm qemuconfig: load_current_config : delete cloudinit value 2022-11-08 17:23:30 +01:00
QemuMigrate.pm migration: test targetnode min version for cloudinit section 2022-11-08 17:23:30 +01:00
QemuServer.pm fix #3271: USB: allow usb hotplugging for modern guests 2022-11-10 17:02:34 +01:00
QMPClient.pm qmp client: increase default fallback timeout to 5s 2022-09-16 13:01:45 +02:00