[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y9yVyOQrtcAlsMVg@gondor.apana.org.au>
Date: Fri, 3 Feb 2023 13:04:08 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Tom Lendacky <thomas.lendacky@....com>
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
David Miller <davem@...emloft.net>,
John Allen <john.allen@....com>
Subject: Re: [PATCH] crypto: ccp - Flush the SEV-ES TMR memory before giving
it to firmware
On Mon, Jan 23, 2023 at 04:53:08PM -0600, Tom Lendacky wrote:
> Perform a cache flush on the SEV-ES TMR memory after allocation to prevent
> any possibility of the firmware encountering an error should dirty cache
> lines be present. Use clflush_cache_range() to flush the SEV-ES TMR memory.
>
> Fixes: 97f9ac3db661 ("crypto: ccp - Add support for SEV-ES to the PSP driver")
> Signed-off-by: Tom Lendacky <thomas.lendacky@....com>
> ---
> drivers/crypto/ccp/sev-dev.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists