qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 for-2.11 1/3] tpm_emulator: Add a caching lay


From: Stefan Berger
Subject: Re: [Qemu-devel] [PATCH v3 for-2.11 1/3] tpm_emulator: Add a caching layer for the TPM Established flag
Date: Tue, 5 Dec 2017 15:56:46 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 11/15/2017 04:05 AM, Valluri, Amarnath wrote:
On Wed, 2017-11-15 at 04:47 +0100, Marc-André Lureau wrote:
Hi

On Wed, Nov 15, 2017 at 2:16 AM, Stefan Berger
<address@hidden> wrote:
On 11/14/2017 06:40 PM, Marc-André Lureau wrote:

Hi

On Tue, Nov 14, 2017 at 10:52 PM, Stefan Berger
<address@hidden> wrote:

Add a caching layer for the TPM established flag so that we
don't
need to go to the emulator every time the flag is read by
accessing
the REG_ACCESS register.
What's the impact? Isn't this just a "small" optimization? Iotw,
why
is this for-2.11?
The TIS has a register that contains this flag and that's being
polled quite
frequently. So it generates a lot of traffic to the emulator. This
caching
layer gets rid of most of the traffic.
I didn't notice any problem when doing my tests, I guess Amarnath
niether. perhaps it's best to delay for after 2.11.
Yes, I could see there is little frequent(21 calls to backend) to get
establish flag, and this patch will help to avoid them. But i still
agree with Marc and tag this as "small" optimization.

Can you review it so we have it ready for 2.12?

  Thanks,
      Stefan


- Amarnath





reply via email to

[Prev in Thread] Current Thread [Next in Thread]