From: Stefan Berger <stefanb@linux.ibm.com>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>,
"P J P" <ppandit@redhat.com>
Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>,
QEMU <qemu-devel@nongnu.org>,
Prasad J Pandit <pjp@fedoraproject.org>
Subject: Re: [Qemu-devel] [PATCH 2/2] tpm: use loop iterator to set sts data field
Date: Tue, 6 Nov 2018 09:28:27 -0500 [thread overview]
Message-ID: <2c3e5be5-c01e-5c04-b978-069eb55ca83c@linux.ibm.com> (raw)
In-Reply-To: <CAJ+F1C+EdebPX5jo0k7hh4nw1vL2hT9TOec3_b6AvizNQyfZ0g@mail.gmail.com>
On 11/6/18 3:13 AM, Marc-André Lureau wrote:
> Hi
>
> On Tue, Nov 6, 2018 at 9:24 AM P J P <ppandit@redhat.com> wrote:
>> From: Prasad J Pandit <pjp@fedoraproject.org>
>>
>> When TIS request is done, set 'sts' data field across all localities.
> The code certainly meant to set the field across all localities.
> However I don't see in the "TCG PC Client Specific TPM Interface
> Specification (TIS)" where it states that the field should be set
> across all localities. Could you quote the relevant part?
I don't see it explicitly mentioned but would interpret it as being a
flag across all localities.
Stefan
>
> thanks
>
>> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
>> ---
>> hw/tpm/tpm_tis.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
>> index 20126dd838..58d90645bc 100644
>> --- a/hw/tpm/tpm_tis.c
>> +++ b/hw/tpm/tpm_tis.c
>> @@ -299,7 +299,7 @@ static void tpm_tis_request_completed(TPMIf *ti, int ret)
>>
>> if (s->cmd.selftest_done) {
>> for (l = 0; l < TPM_TIS_NUM_LOCALITIES; l++) {
>> - s->loc[locty].sts |= TPM_TIS_STS_SELFTEST_DONE;
>> + s->loc[l].sts |= TPM_TIS_STS_SELFTEST_DONE;
>> }
>> }
>>
>> --
>> 2.17.2
>>
>>
>
next prev parent reply other threads:[~2018-11-06 14:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 5:21 [Qemu-devel] [PATCH 1/2] tpm: check localities index P J P
2018-11-06 5:21 ` [Qemu-devel] [PATCH 2/2] tpm: use loop iterator to set sts data field P J P
2018-11-06 8:13 ` Marc-André Lureau
2018-11-06 14:28 ` Stefan Berger [this message]
2018-11-06 14:26 ` Stefan Berger
2018-11-06 8:07 ` [Qemu-devel] [PATCH 1/2] tpm: check localities index Marc-André Lureau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2c3e5be5-c01e-5c04-b978-069eb55ca83c@linux.ibm.com \
--to=stefanb@linux.ibm.com \
--cc=marcandre.lureau@gmail.com \
--cc=pjp@fedoraproject.org \
--cc=ppandit@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanb@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).