[libvirt PATCH v2 04/12] nodedev: driver: Swap virMdevctlStart and virMdevctlCreate
Laine Stump
laine at redhat.com
Fri Apr 16 16:12:47 UTC 2021
On 4/13/21 4:39 PM, Jonathon Jongsma wrote:
> From: Erik Skultety <eskultet at redhat.com>
>
> "start" in libvirt means - "take this object and create an
> instance out of it"
>
> "create" in libvirt most of the time means - "take and XML description,
> make an object out of it and use it to create an instance"
>
> This gets confusing with mdevctl which uses "start" for both. So, this
> patch proposes to use virMdevctlStart in cases where from libvirt's POV
> we're starting a defined device (unlike mdevctl). Analogically,
"similarly" sounds less awkward to me, but this is also a word, so... :-)
> use
> virMdevctlCreate in scenarios where XML description is passed to
> libvirt and a transient device is supposed to be created.
>
> Signed-off-by: Erik Skultety <eskultet at redhat.com>
> Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
Reviewed-by: Laine Stump <laine at redhat.com>
More information about the libvir-list
mailing list