[libvirt] [PATCH 0/7] extend node_device for CCW and fc_remote_port

Bjoern Walk bwalk at linux.vnet.ibm.com
Mon May 22 06:38:19 UTC 2017


Let's introduce two new capabilities to the node_device driver and fix two
smaller issues on the way.

The first is for CCW devices, most common on the S390 architecture. We expose
the relevant cssid, ssid and devno values.

The second is for fibre channel-backed SCSI devices, where we introduce the
fc_remote_port subcapability for SCSI targets. Here we expose the relevant
rport name as well as the port_name (WWPN).

Bjoern Walk (5):
  node_device: detect CCW devices
  virsh: nodedev: ability to filter CCW capabilities
  util: helper functions for fibre channel devices
  node_device: introduce new capability FC_RPORT
  docs: update news.xml

Marc Hartmayer (2):
  node_device: Use the iterator variable
  node_device: Unlock obj in case of an error too

 docs/formatnode.html.in                           |  12 ++
 docs/news.xml                                     |  11 ++
 docs/schemas/basictypes.rng                       |  31 +++++
 docs/schemas/domaincommon.rng                     |  30 -----
 docs/schemas/nodedev.rng                          |  36 ++++++
 include/libvirt/libvirt-nodedev.h                 |   1 +
 po/POTFILES.in                                    |   1 +
 src/Makefile.am                                   |   1 +
 src/conf/node_device_conf.c                       | 150 +++++++++++++++++++++-
 src/conf/node_device_conf.h                       |  21 ++-
 src/conf/virnodedeviceobj.c                       |   3 +-
 src/libvirt-nodedev.c                             |   1 +
 src/libvirt_private.syms                          |   5 +
 src/node_device/node_device_driver.c              |  16 ++-
 src/node_device/node_device_linux_sysfs.c         |  56 ++++++++
 src/node_device/node_device_linux_sysfs.h         |   2 +
 src/node_device/node_device_udev.c                |  39 +++++-
 src/util/virfcp.c                                 |  96 ++++++++++++++
 src/util/virfcp.h                                 |  32 +++++
 tests/nodedevschemadata/ccw_0_0_10000-invalid.xml |  10 ++
 tests/nodedevschemadata/ccw_0_0_ffff.xml          |  10 ++
 tests/nodedevschemadata/scsi_target1_0_0.xml      |  12 ++
 tests/nodedevxml2xmltest.c                        |   2 +
 tools/virsh-nodedev.c                             |   3 +
 tools/virsh.pod                                   |   2 +-
 25 files changed, 539 insertions(+), 44 deletions(-)
 create mode 100644 src/util/virfcp.c
 create mode 100644 src/util/virfcp.h
 create mode 100644 tests/nodedevschemadata/ccw_0_0_10000-invalid.xml
 create mode 100644 tests/nodedevschemadata/ccw_0_0_ffff.xml
 create mode 100644 tests/nodedevschemadata/scsi_target1_0_0.xml

-- 
2.11.2




More information about the libvir-list mailing list