libxl: replace 'enabled' with 'unknown' in libxl_passthrough enumeration
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 1 Oct 2019 14:57:13 +0000 (15:57 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 2 Oct 2019 15:54:32 +0000 (16:54 +0100)
commit4284b4163bb7338d3b75969f85a27d9380c75f38
treeee8fab291ea57b6dee2fa4b176ac4da8bf0a3cdf
parentb183e180bce93037d3ef385a8c2338bbfb7f23d9
libxl: replace 'enabled' with 'unknown' in libxl_passthrough enumeration

This is mostly a cosmetic patch to avoid the default enumeration value
being 'enabled'. The only non-cosmetic parts are in xl_parse.c where it now
becomes necessary to explicitly parse the 'enabled' value for xl.cfg
'passthrough' option, and error on the value 'unknown', because there is no
longer a direct mapping between valid xl.cfg values and the enumeration.

Suggested-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_types.idl
tools/xl/xl_parse.c