]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: Add parser validation for node devices
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 16 Jul 2021 18:46:52 +0000 (13:46 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Fri, 6 Aug 2021 20:02:32 +0000 (15:02 -0500)
commitd5ae634ba284fcb1aa40634ad3c0a9e820ec916a
tree488669223d3f4ee37fd0939104e7c3059489fd13
parente44408dd9c45cb4f5e41caef4a9d2b7d2b8eb528
nodedev: Add parser validation for node devices

At the moment, this is only for mediated devices. When a new mediated
device is created or defined, the xml is expected specify the nodedev
name of an existing device as its parent. We were not previously
validating this and were simply accepting any string here.

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