On Wed, Oct 06, 2021 at 05:18:45 -0500, Or Ozeri wrote:
> This commit extends libvirt XML configuration to support a custom encryption 
> engine.
> This means that <encryption format="luks" engine="qemu">  becomes valid.
> The only engine for now is qemu. However, a new engine (librbd) will be added 
> in an upcoming commit.
> If no engine is specified, qemu will be used (assuming qemu driver is used).
> 
> Signed-off-by: Or Ozeri <o...@il.ibm.com>
> ---


[...]

Same note as with previous patch. this will need code in qemu_validate.c
rejecting non-qemu backend for stuff which doesn't support it.

Use a switch statement, with a correct type so that the complier forces
any new additions to the enum to be included in the validation code.

Reply via email to