[libvirt] [PATCH v3 0/3] nodedev: update caps before quering nodedev infos

Wu Zongyong cordius.wu at huawei.com
Wed Jan 10 12:14:48 UTC 2018

Some capabilities of node devices rely on what driver they bound to, 
and therefore, these capabilities may change when the driver change.
In current implemention, it is not consistent between real status and
the status we get by invoking nodedev interfaces.
So, this series of patches try to manually update devices' capabilities
each time before nodedev driver interfaces invoked.

Wu Zongyong (3):

    1. split a single patch to three part
    2. fix memory leak and lock problems
    3. update caps before invoking nodedev driver interfaces (refer to patch 3/3)

  nodedev: add macro guard to node_device_udev header file
  nodedev: update mdev_types caps before dumpxml
  nodedev: update caps before invoking nodedev driver interfaces

 src/node_device/node_device_driver.c      | 55 +++++++++++++++++++++++++++++++
 src/node_device/node_device_linux_sysfs.c | 22 +++++++++++++
 src/node_device/node_device_udev.c        | 37 +++++++++++++++++----
 src/node_device/node_device_udev.h        | 18 +++++++---
 4 files changed, 121 insertions(+), 11 deletions(-)


More information about the libvir-list mailing list