[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 00/25] xl / libxl: named PCI pass-through devices


  • To: Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Christian Lindig <christian.lindig@xxxxxxxxxx>
  • Date: Mon, 26 Oct 2020 09:10:39 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c/atUr40ri/lRe6qjuIsDEbw5SZZA1YqUtnpWhxjBcY=; b=L2e0gDfPY/ki4ghwWZkfSApjB7Lj9o5hhEqQK7ullEANTk5UDPXOH4WKVLjX2R9SE2IKm6wQq9CeEFRtLAFuz8XAsGUS3cNxSH/XNcnTzX23XAwSJBk1GxkEfx1ffo83eHAxrgdDveRI/vqpbI8Fiyo7qSHM0eE0uTUFggbgZXG306EvMNQie0F8rp+ZWPbEZevLMVESSdy2CI0sDAeNHLZEYF6Xaw0M4SQ3pC04nBzFclpXyymQuWKOjupPXEN/fI/OxKYuNLPa+WSqseHIywT6pjVy9RLC+qutkIph8CZjm8PkvmVIrqGZUzjsXywIXf/dmz4a4ARku81zWQa6TA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q4TX4h+JTKpQhsbQiTn+ukW7g3bIu1hwRVXW9YGm/5VdZeTSZeNB0x4wlpp1PpBCasSzaNeNB2KEalXIjLfoNhw/JYpsrIJ9ID5HvUsG1aesUv29j7+uLGSRs9MkvwuJWuwLdTTQzHBBYwiitiP3RklhJU1vCMu6i15cxLmsWGlBCCtDO6/XCXKqwdQB37tVU8mYqPaBsEaPd33pLeudb6ZIvNGGxbgNluKlJBh3WFrPTLZajvmG1UJbwD8g+ue9U9JVEmOXbmGNG05iyVL3I3k2bZ1UXFjoWMyXUo6IwtP0rZSHA9C9x/pw5PfDSlfErzSfxoGnq+K7CznTqdG3VQ==
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Paul Durrant <pdurrant@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 26 Oct 2020 09:11:07 +0000
  • Ironport-sdr: vqMUyCHM7t8wSMwvlHwbADC6KYBn9TFQlQl/MlwqyGA+ZM+vynPP059l1XNlSluWDwOFHUrmaW FxebGTlfjIOy93nw60hd1nMB7LD0279QZlJjpCUuuEU78xSncF0ucloS9oxtSe+l5wtjIbM2hx wRoH6noqyxMrLJb0tM3ddQIcFgGut4Qyh+oW9FsrT9TZjikeZv/I6LHDEit7V+OdhHrxtqwdCh 5gEPiMifAFz5Xu8Id1DVROfsyi6QU4DUo20L+6zx0LkJGUn0FEKLNgjOT98lqglwQIVYtHS0cK VDQ=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHWqVjZZk7XivGQQ0yHJO5ww7Ae8ampnK5M
  • Thread-topic: [PATCH 00/25] xl / libxl: named PCI pass-through devices

> NOTE: The OCaml bindings are adjusted to contain the interface change. It
> should therefore not affect compatibility with OCaml-based utilities.

Acked-by: Christian Lindig <christian.lindig@xxxxxxxxxx>

________________________________________
From: Paul Durrant <paul@xxxxxxx>
Sent: 23 October 2020 17:22
To: xen-devel@xxxxxxxxxxxxxxxxxxxx
Cc: Paul Durrant; Anthony Perard; Christian Lindig; David Scott; George Dunlap; 
Ian Jackson; Nick Rosbrook; Wei Liu
Subject: [PATCH 00/25] xl / libxl: named PCI pass-through devices

From: Paul Durrant <pdurrant@xxxxxxxxxx>

This series adds support for naming devices added to the assignable list
and then using a name (instead of a BDF) for convenience when attaching
a device to a domain.

The first 15 patches are cleanup. The remaining 10 modify documentation
and add the new functionality.

Paul Durrant (25):
  xl / libxl: s/pcidev/pci and remove DEFINE_DEVICE_TYPE_STRUCT_X
  libxl: use LIBXL_DEFINE_DEVICE_LIST for pci devices
  libxl: use LIBXL_DEFINE_DEVICE_LIST for nic devices
  libxl: s/domainid/domid/g in libxl_pci.c
  libxl: s/detatched/detached in libxl_pci.c
  libxl: remove extraneous arguments to do_pci_remove() in libxl_pci.c
  libxl: stop using aodev->device_config in libxl__device_pci_add()...
  libxl: generalise 'driver_path' xenstore access functions in
    libxl_pci.c
  libxl: remove unnecessary check from libxl__device_pci_add()
  libxl: remove get_all_assigned_devices() from libxl_pci.c
  libxl: make sure callers of libxl_device_pci_list() free the list
    after use
  libxl: add libxl_device_pci_assignable_list_free()...
  libxl: use COMPARE_PCI() macro is_pci_in_array()...
  libxl: add/recover 'rdm_policy' to/from PCI backend in xenstore
  libxl: Make sure devices added by pci-attach are reflected in the
    config
  docs/man: extract documentation of PCI_SPEC_STRING from the xl.cfg
    manpage...
  docs/man: improve documentation of PCI_SPEC_STRING...
  docs/man: fix xl(1) documentation for 'pci' operations
  libxl: introduce 'libxl_pci_bdf' in the idl...
  libxlu: introduce xlu_pci_parse_spec_string()
  libxl: modify
    libxl_device_pci_assignable_add/remove/list/list_free()...
  docs/man: modify xl(1) in preparation for naming of assignable devices
  xl / libxl: support naming of assignable devices
  docs/man: modify xl-pci-configuration(5) to add 'name' field to
    PCI_SPEC_STRING
  xl / libxl: support 'xl pci-attach/detach' by name

 docs/man/xl-pci-configuration.5.pod  |  218 +++++++
 docs/man/xl.1.pod.in                 |   39 +-
 docs/man/xl.cfg.5.pod.in             |   68 +--
 tools/golang/xenlight/helpers.gen.go |   77 ++-
 tools/golang/xenlight/types.gen.go   |    8 +-
 tools/include/libxl.h                |   67 ++-
 tools/include/libxlutil.h            |    8 +-
 tools/libs/light/libxl_create.c      |    6 +-
 tools/libs/light/libxl_dm.c          |   18 +-
 tools/libs/light/libxl_internal.h    |   53 +-
 tools/libs/light/libxl_nic.c         |   19 +-
 tools/libs/light/libxl_pci.c         | 1072 ++++++++++++++++++----------------
 tools/libs/light/libxl_types.idl     |   19 +-
 tools/libs/util/libxlu_pci.c         |  359 ++++++------
 tools/ocaml/libs/xl/xenlight_stubs.c |   19 +-
 tools/xl/xl_cmdtable.c               |   16 +-
 tools/xl/xl_parse.c                  |   30 +-
 tools/xl/xl_pci.c                    |  164 +++---
 tools/xl/xl_sxp.c                    |   12 +-
 19 files changed, 1337 insertions(+), 935 deletions(-)
 create mode 100644 docs/man/xl-pci-configuration.5.pod
---
Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Cc: Christian Lindig <christian.lindig@xxxxxxxxxx>
Cc: David Scott <dave@xxxxxxxxxx>
Cc: George Dunlap <george.dunlap@xxxxxxxxxx>
Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>
Cc: Nick Rosbrook <rosbrookn@xxxxxxxxxxxx>
Cc: Wei Liu <wl@xxxxxxx>
--
2.11.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.