]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: driver: Introduce internal mdevctl commands enum
authorErik Skultety <eskultet@redhat.com>
Wed, 31 Mar 2021 13:20:50 +0000 (15:20 +0200)
committerJonathon Jongsma <jjongsma@redhat.com>
Mon, 19 Apr 2021 15:24:13 +0000 (10:24 -0500)
commit92fdc1f0cbf6a4a27d780f739c21f39a808660ad
treed598cb913cb2eeabe7683551994a5708f015d337
parent123ea7d51c9ef9c242c0ddc5ca0ff87f8687bb42
nodedev: driver: Introduce internal mdevctl commands enum

This is not a 1:1 mapping to mdevctl commands because mdevctl doesn't
support a separate 'create' command. mdevctl uses 'start' for both
starting a pre-defined device as well as for creating and starting a new
transient device. The libvirt code will be more readable if we treat
these as separate commands. When we need to actually execute mdevctl,
the 'create' command will be translated into the appropriate 'mdevctl
start' command.

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