[libvirt] [PATCH v2 0/3] Add callback mech for qemu and nodedev

John Ferlan posted 3 patches 7 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1486741950-21363-1-git-send-email-jferlan@redhat.com
src/check-aclrules.pl              |   3 +-
src/check-driverimpls.pl           |   1 +
src/conf/node_device_conf.c        | 115 ++++++++++++++++++++++++++++++++++++-
src/conf/node_device_conf.h        |  18 ++++++
src/libvirt_private.syms           |   3 +
src/node_device/node_device_udev.c |  29 ++++++++++
src/qemu/libvirtd_qemu.aug         |   1 +
src/qemu/qemu.conf                 |  19 ++++++
src/qemu/qemu_conf.c               |  53 +++++++++++++++++
src/qemu/qemu_conf.h               |  17 ++++++
src/qemu/qemu_driver.c             |  46 +++++++++++++++
src/qemu/test_libvirtd_qemu.aug.in |   1 +
12 files changed, 304 insertions(+), 2 deletions(-)
[libvirt] [PATCH v2 0/3] Add callback mech for qemu and nodedev
Posted by John Ferlan 7 years, 1 month ago
v1: http://www.redhat.com/archives/libvir-list/2017-February/msg00354.html

Changes since v1:

 - Rather than calling the enumeration API from node_device_conf, return
   the address of the enumeration API to the calling driver and let it
   make the callback.

 - If the enumeration callback doesn't exist add a failure to the registration
   function

 - Rather than fail when the registration add callback fails, just splat
   a VIR_WARN message.  Changed the remove code to use VIR_WARN instead
   of VIR_DEBUG too

John Ferlan (3):
  nodedev: Add driver callback mechanism to add/remove devices
  qemu: Use nodedev callback mechanism to to get a nodedev data
  qemu: Add configuration variable to control nodedev enumeration

 src/check-aclrules.pl              |   3 +-
 src/check-driverimpls.pl           |   1 +
 src/conf/node_device_conf.c        | 115 ++++++++++++++++++++++++++++++++++++-
 src/conf/node_device_conf.h        |  18 ++++++
 src/libvirt_private.syms           |   3 +
 src/node_device/node_device_udev.c |  29 ++++++++++
 src/qemu/libvirtd_qemu.aug         |   1 +
 src/qemu/qemu.conf                 |  19 ++++++
 src/qemu/qemu_conf.c               |  53 +++++++++++++++++
 src/qemu/qemu_conf.h               |  17 ++++++
 src/qemu/qemu_driver.c             |  46 +++++++++++++++
 src/qemu/test_libvirtd_qemu.aug.in |   1 +
 12 files changed, 304 insertions(+), 2 deletions(-)

-- 
2.7.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list