[pve-devel] [PATCH common/qemu-server/manager v2] add mdev support and passthrough gui

Dominik Csapak d.csapak at proxmox.com
Tue Nov 20 17:13:36 CET 2018


this series add support for mediated devices, such as Nvidias vGPUs and
Intels KVMgt (aka GVT-g), as well as gui support for PCI passthrough
in general

this needs my 'cleanup and refactor mania series'[1] and supersedes my
previous 'scan cleanup/gui pci passthrough' series [2] and my
'add mediated devices/vgpu support' v2 series [3]

i integrated wolfgangs remarks from [2]

changes from v1:

* improved lspci further so that only one filter parameter exists
* moved the default filtered classes to the api and documented them there
* check sysfs path before cleaning up mdev
* renaming/reordering of variable names and reducing hash access in lspci
* changed 'filter-unusable' parameter to 'pci-class-blacklist', where
  users can now generically filter the device classes
* changed rombar to default 1 (because it is in the api)
* changed field names to more sensible ones (eg vendorid -> vendor,
  vendor -> vendor_name) in the api

depency/breaks notes:

manager patches depends on qemu-server and common
qemu-server depends on the common

1: https://pve.proxmox.com/pipermail/pve-devel/2018-November/034551.html
2: https://pve.proxmox.com/pipermail/pve-devel/2018-November/034525.html
3: https://pve.proxmox.com/pipermail/pve-devel/2018-November/034458.html

pve-common:

Dominik Csapak (2):
  SysFSTools.pm: add mediated devices subs
  SysFSTools.pm: improve and extend lspci

 src/PVE/SysFSTools.pm | 192 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 180 insertions(+), 12 deletions(-)

qemu-server:

Dominik Csapak (2):
  add mediated devices support
  use improved lspci

 PVE/QemuServer.pm | 74 +++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 56 insertions(+), 18 deletions(-)

pve-manager:

Dominik Csapak (6):
  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/Scan.pm                  | 172 +++++++++++++++++++++++++++++
 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      | 227 ++++++++++++++++++++++++++++++++++++++
 6 files changed, 615 insertions(+), 3 deletions(-)
 create mode 100644 www/manager6/form/MDevSelector.js
 create mode 100644 www/manager6/form/PCISelector.js
 create mode 100644 www/manager6/qemu/PCIEdit.js

-- 
2.11.0





More information about the pve-devel mailing list