[libvirt PATCH 0/7] Enable autostarting mediated devices

Jonathon Jongsma posted 7 patches 2 years, 10 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210603201156.3571972-1-jjongsma@redhat.com
There is a newer version of this series
docs/manpages/virsh.rst                       |  27 +++
include/libvirt/libvirt-nodedev.h             |  10 ++
src/conf/virnodedeviceobj.c                   |  16 ++
src/conf/virnodedeviceobj.h                   |   6 +
src/driver-nodedev.h                          |  18 ++
src/libvirt-nodedev.c                         | 141 +++++++++++++++
src/libvirt_private.syms                      |   2 +
src/libvirt_public.syms                       |   6 +
src/node_device/node_device_driver.c          | 166 ++++++++++++++++++
src/node_device/node_device_driver.h          |  19 ++
src/node_device/node_device_udev.c            |  30 +++-
src/remote/remote_driver.c                    |   6 +-
src/remote/remote_protocol.x                  |  59 ++++++-
src/remote_protocol-structs                   |  26 +++
.../nodedevmdevctldata/mdevctl-autostart.argv |   8 +
tests/nodedevmdevctltest.c                    |  54 ++++++
tools/virsh-nodedev.c                         | 139 +++++++++++++++
17 files changed, 727 insertions(+), 6 deletions(-)
create mode 100644 tests/nodedevmdevctldata/mdevctl-autostart.argv
[libvirt PATCH 0/7] Enable autostarting mediated devices
Posted by Jonathon Jongsma 2 years, 10 months ago
This series replaces the initial patch that was recently reverted. It
implements the autostart feature using a new virNodeDeviceGet/SetAutostart()
API that is consistent with how other libvirt objects handle autostart. It also
adds a counterpart virsh command nodedev-autostart.

In order to easily check the 'autostart' status of the device (since it is no
longer part of the device xml), a new virsh command is introduced:
nodedev-info. This also presents a few more basic bits of information about the
device, including 'active' and 'persistent' status, which requires exposing new
APIs on the node device: IsActive() and IsPersistent(). These APIs are
consistent with existing libvirt objects.

Jonathon Jongsma (7):
  api: add virNodeDevice(Get|Set)Autostart()
  nodedev: implement virNodeDevice(Get|Set)Autostart()
  nodedev: Add tests for mdevctl autostart command
  virsh: add nodedev-autostart
  api: add virNodeDeviceIsPersistent()/IsActive()
  nodedev: Implement virNodeDeviceIsPersistent()/IsActive()
  virsh: add nodedev-info

 docs/manpages/virsh.rst                       |  27 +++
 include/libvirt/libvirt-nodedev.h             |  10 ++
 src/conf/virnodedeviceobj.c                   |  16 ++
 src/conf/virnodedeviceobj.h                   |   6 +
 src/driver-nodedev.h                          |  18 ++
 src/libvirt-nodedev.c                         | 141 +++++++++++++++
 src/libvirt_private.syms                      |   2 +
 src/libvirt_public.syms                       |   6 +
 src/node_device/node_device_driver.c          | 166 ++++++++++++++++++
 src/node_device/node_device_driver.h          |  19 ++
 src/node_device/node_device_udev.c            |  30 +++-
 src/remote/remote_driver.c                    |   6 +-
 src/remote/remote_protocol.x                  |  59 ++++++-
 src/remote_protocol-structs                   |  26 +++
 .../nodedevmdevctldata/mdevctl-autostart.argv |   8 +
 tests/nodedevmdevctltest.c                    |  54 ++++++
 tools/virsh-nodedev.c                         | 139 +++++++++++++++
 17 files changed, 727 insertions(+), 6 deletions(-)
 create mode 100644 tests/nodedevmdevctldata/mdevctl-autostart.argv

-- 
2.31.1