]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: add DEFINED/UNDEFINED lifecycle events
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 9 Jul 2020 15:56:51 +0000 (10:56 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 7 Apr 2021 20:07:45 +0000 (15:07 -0500)
commit94187b800472595db9c15c1843b572f327b99ca6
treeb359763ad08e689e3dad87386f2a4f78839d7e4f
parentd4375403ff80f64eeace3f6b57a50f1f6914a31a
nodedev: add DEFINED/UNDEFINED lifecycle events

Since a mediated device can be persistently defined by the mdevctl
backend, we need additional lifecycle events beyond CREATED/DELETED to
indicate that e.g. the device has been stopped but the device definition
still exists.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
examples/c/misc/event-test.c
include/libvirt/libvirt-nodedev.h
tools/virsh-nodedev.c