[pve-devel] [PATCH qemu-server 0/7] refactors and usb hotplug

Dominik Csapak d.csapak at proxmox.com
Tue Jun 14 10:50:34 CEST 2016


this series does 3 things:

it refactors some functions from QemuServer.pm
in its own modules, namely the print_pci(e) functions
and the usb configuration functions, mainly to reduce
the monolithic qemuserver.pm but also to avoid cyclic use clauses
in the perl modules

then i implemented usb hotplug for usb passthrough
(no spice ports yet, since they require an additional device)

also fixes a small syntax error in pve-q35.cfg

in future patches i would like to further refactor
some functionality out from qemuserver.pm since
it is still about 6000 lines long
(really bad if you want get an overview of how it works)
and since alexandre began with refactoring memory functions,
it continued with refactoring by type of hardware (pci, usb)

Dominik Csapak (7):
  refactor PCI into own file
  refactor usb functions out of QemuServer.pm
  use the refactored usb functions
  get usbdevices in vm_devices_list
  add qemu_usb_hotplug
  implement usb hotplug
  fix syntax in pve-q35.cfg

 PVE/QemuServer.pm       | 274 +++++++++++-------------------------------------
 PVE/QemuServer/Makefile |   2 +
 PVE/QemuServer/PCI.pm   | 146 ++++++++++++++++++++++++++
 PVE/QemuServer/USB.pm   | 124 ++++++++++++++++++++++
 pve-q35.cfg             |   2 +-
 5 files changed, 332 insertions(+), 216 deletions(-)
 create mode 100644 PVE/QemuServer/PCI.pm
 create mode 100644 PVE/QemuServer/USB.pm

-- 
2.1.4





More information about the pve-devel mailing list