xemu/backends/tpm
Markus Armbruster 39dc3e4a4e qapi: Convert simple union TpmTypeOptions to flat one
Simple unions predate flat unions.  Having both complicates the QAPI
schema language and the QAPI generator.  We haven't been using simple
unions in new code for a long time, because they are less flexible and
somewhat awkward on the wire.

To prepare for their removal, convert simple union TpmTypeOptions to
an equivalent flat one, with existing enum TpmType replacing implicit
enum TpmTypeOptionsKind.  Adds some boilerplate to the schema, which
is a bit ugly, but a lot easier to maintain than the simple union
feature.

Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210917143134.412106-6-armbru@redhat.com>
[Indentation tidied up]
2021-09-27 08:22:25 +02:00
..
Kconfig tpm: Move backend code under the 'backends/' directory 2020-06-19 07:25:55 -04:00
meson.build meson: convert backends directory to Meson 2020-08-21 06:30:23 -04:00
tpm_backend.c backends: Add TPM files into their own directory 2020-06-19 07:24:42 -04:00
tpm_emulator.c qapi: Convert simple union TpmTypeOptions to flat one 2021-09-27 08:22:25 +02:00
tpm_int.h tpm: Move backend code under the 'backends/' directory 2020-06-19 07:25:55 -04:00
tpm_ioctl.h configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h 2020-11-17 09:45:24 +01:00
tpm_passthrough.c qapi: Convert simple union TpmTypeOptions to flat one 2021-09-27 08:22:25 +02:00
tpm_util.c qdev: Rename qdev_get_prop_ptr() to object_field_prop_ptr() 2020-12-18 15:20:18 -05:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00