[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface
From: |
Andreas Niederl |
Subject: |
Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface |
Date: |
Mon, 21 Feb 2011 18:13:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101112 Lightning/1.0b3pre Thunderbird/3.1.6 |
On 02/18/2011 10:03 PM, Stefan Berger wrote:
> On 02/18/2011 10:33 AM, Andreas Niederl wrote:
[...]
>> +static ISADeviceInfo tpm_info = {
>> + .init = tpm_init,
>> + .qdev.name = "tpm",
>> + .qdev.desc = "TPM TIS Interface",
>> + .qdev.size = sizeof (TPMState),
>> + .qdev.vmsd =&vmstate_tpm,
> ... and here you're pointing to vmstate_tpm, which was also registered
> above using
>
> +
> + vmstate_register(&dev->qdev, 1,&vmstate_tpm, s);
>
>
> Are you sure this is necessary? In my implementation I only have the
> qdev.vmsd set and need not explicitly use vmstate_register(). Aren't you
> writing the state two times if you do that?
You're right, apparently I've missed that vmstate_save_state operates
recursively on fields of type VMS_STRUCT.
Also, manual registration of vmstate_tpm is not necessary.
Andreas
smime.p7s
Description: S/MIME Cryptographic Signature
Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface, Stefan Berger, 2011/02/18
- Re: [Qemu-devel] [PATCH 1/5] Add TPM 1.2 device interface,
Andreas Niederl <=
[Qemu-devel] [PATCH 5/5] Adapt TPM host backend to use threadlets, Andreas Niederl, 2011/02/18