]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: driver: Create a generic mdevctl command translator
authorErik Skultety <eskultet@redhat.com>
Wed, 31 Mar 2021 13:24:47 +0000 (15:24 +0200)
committerJonathon Jongsma <jjongsma@redhat.com>
Mon, 19 Apr 2021 15:24:13 +0000 (10:24 -0500)
commit87b31fe8a2875fd6fd33ecd9eca1c5ca8767ce72
tree870c146f9fb136ef7be8a5437dec3c940353ed59
parent92fdc1f0cbf6a4a27d780f739c21f39a808660ad
nodedev: driver: Create a generic mdevctl command translator

Currently there are dedicated wrappers to construct mdevctl command.
These are mostly fine except for the one that translates both "start"
and "define" commands, only because mdevctl takes the same set of
arguments. Instead, keep the wrappers, but let them call a single
global translator that handles all the mdevctl command differences and
commonalities.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/node_device/node_device_driver.c
src/node_device/node_device_driver.h
tests/nodedevmdevctltest.c