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

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Jun 23 09:46:14 CEST 2016


applied series

On Tue, Jun 14, 2016 at 10:50:34AM +0200, Dominik Csapak wrote:
> 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
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 



More information about the pve-devel mailing list