]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: add PostParse callback for nodedev parsing
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 16 Jul 2021 21:33:43 +0000 (16:33 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Fri, 6 Aug 2021 20:02:36 +0000 (15:02 -0500)
commit08d29eb3b1d2361b7c70eaf0e269165387cf2756
treea50b721fd2331d5df919600262d165ef88a48e3b
parentd5ae634ba284fcb1aa40634ad3c0a9e820ec916a
nodedev: add PostParse callback for nodedev parsing

This can be used similarly to other postparse callbacks in libvirt --
filling in additional information that can be determined by using the
information provided in the XML. In this case, we determine the address
of the parent device and cache it in the mdev caps so that we can use it
for generating a unique name and interacting with mdevctl.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/node_device_conf.c
src/node_device/node_device_driver.c
src/node_device/node_device_driver.h
src/node_device/node_device_udev.c
tests/nodedevmdevctltest.c