On 03/02/2018 04:26 AM, Marc-André Lureau wrote:

+    return 0;
+}
+
+static const VMStateDescription vmstate_tpm_emulator = {
+    .name = "tpm-emulator",
+    .version_id = 1,
+    .minimum_version_id = 0,
version_id = 1 & minimum_version_id = 0 ?

It's the first version, let's have version_id = 0 (and you could
remove minimum_version).

It doesn't work... I cannot use version_id 0 in tpm_tis or in tpm_emulator. For tpm_tis I get the error 'Missing section footer' upon VM resume and for some weird reason it doesn't allocate the blob buffers when reading them in tpm_emulator. I get a NULL pointer instead. So, we are better off with version_id 1 here... The CRB seems to work as is.

   Stefan



Reply via email to