qemu-patch-raspberry4/hw/tpm
Stefan Berger 38ab74e7ca tpm: extend TPM emulator with state migration support
Extend the TPM emulator backend device with state migration support.

The external TPM emulator 'swtpm' provides a protocol over
its control channel to retrieve its state blobs. We implement
functions for getting and setting the different state blobs.
In case the setting of the state blobs fails, we return a
negative errno code to fail the start of the VM.

Since we have an external TPM emulator, we need to make sure
that we do not migrate the state for as long as it is busy
processing a request. We need to wait for notification that
the request has completed processing.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2018-05-24 12:07:04 -04:00
..
Makefile.objs tpm: add CRB device 2018-01-29 14:22:50 -05:00
tpm_crb.c tpm: CRB: Enforce locality is requested before processing buffer 2018-03-29 17:41:02 -04:00
tpm_emulator.c tpm: extend TPM emulator with state migration support 2018-05-24 12:07:04 -04:00
tpm_int.h Clean up includes 2018-02-09 05:05:11 +01:00
tpm_ioctl.h Clean up includes 2018-02-09 05:05:11 +01:00
tpm_passthrough.c Merge tpm 2018/03/07 2018-03-08 12:56:39 +00:00
tpm_tis.c tpm: convert tpm_tis.c to use trace-events 2018-03-06 13:00:41 -05:00
tpm_util.c tpm: convert tpm_util.c to use trace-events 2018-03-06 13:00:41 -05:00
tpm_util.h tpm: wrap stX_be_p in tpm_cmd_set_XYZ functions 2018-02-03 09:01:55 -05:00
trace-events tpm: extend TPM emulator with state migration support 2018-05-24 12:07:04 -04:00