[pve-devel] [PATCH qemu-server/manager/storage] scan cleanup/gui pci passthrough

Dominik Csapak d.csapak at proxmox.com
Thu Nov 15 15:30:43 CET 2018


first, sorry for the monster patch series, i really want to
move forward with pci passthrough on the gui, but for this the cleanup
is necessary.

namely, we had the scan endpoints in pve-storage (incl. usb) where they did not
belong. instead move the api definitions for the api server to
pve-manager, where we can use all other perl modules necessary for
storage/usb/pci scan
additionally we have the api endpoint for the storage scans
defined for pvesm in pvesm.pm

package dependencies/breakage:

* the qemu server patches require my 'mediated devices' patches applied
* the pve-manager patches depend on the qemu-server patches
* the pve-storage patches do not depend on the other, but breaks
  pve-manager without its patched applied

qemu-server:

Dominik Csapak (3):
  copy scan_usb from PVE::Storage
  PCI.pm: improve and extend lspci
  PCI.pm: implement get_mdev_types

 PVE/QemuServer.pm     |  19 ++++----
 PVE/QemuServer/PCI.pm | 122 +++++++++++++++++++++++++++++++++++++++++++++-----
 PVE/QemuServer/USB.pm |  58 ++++++++++++++++++++++++
 3 files changed, 178 insertions(+), 21 deletions(-)

pve-manager:

Dominik Csapak (11):
  copy Scan.pm from pve-storage
  Scan.pm: whitespace fixes
  Scan.pm: remove unused HTTP::Status module
  use scan_usb from qemu-server rather than pve-storage
  rename PVE::API2::Storage::Scan to PVE::API2:Scan
  Scan.pm: add pci scan api call
  Scan.pm: add mdev scan api call
  gui: add form/PCISelector
  gui: add MDevSelector
  gui: add qemu/PCIEdit.js
  gui: let users add PCI devices 
 PVE/API2/Makefile                 |   1 +
 PVE/API2/Nodes.pm                 |   4 +-
 PVE/API2/Scan.pm                  | 570 ++++++++++++++++++++++++++++++++++++++
 www/manager6/Makefile             |   3 +
 www/manager6/form/MDevSelector.js | 102 +++++++
 www/manager6/form/PCISelector.js  |  89 ++++++
 www/manager6/qemu/HardwareView.js |  25 +-
 www/manager6/qemu/PCIEdit.js      | 221 +++++++++++++++
 8 files changed, 1010 insertions(+), 5 deletions(-)
 create mode 100644 PVE/API2/Scan.pm
 create mode 100644 www/manager6/form/MDevSelector.js
 create mode 100644 www/manager6/form/PCISelector.js
 create mode 100644 www/manager6/qemu/PCIEdit.js

pve-storage:

Dominik Csapak (3):
  move Scan API calls from PVE/API2/Storage/Scan.pm to pvesm.pm
  remove PVE/API2/Storage/Scan.pm
  remove usb scan code

 PVE/API2/Storage/Makefile |   2 +-
 PVE/API2/Storage/Scan.pm  | 425 ----------------------------------------------
 PVE/CLI/pvesm.pm          | 343 ++++++++++++++++++++++++++++++++++++-
 PVE/Storage.pm            |  56 ------
 4 files changed, 336 insertions(+), 490 deletions(-)
 delete mode 100644 PVE/API2/Storage/Scan.pm

-- 
2.11.0





More information about the pve-devel mailing list