Re: [PATCH v2 7/8] crypto: ccp: Use the stack and common buffer for INIT command

From: Paolo Bonzini
Date: Sat Apr 17 2021 - 08:42:56 EST


On 07/04/21 07:20, Christophe Leroy wrote:

+    struct sev_data_init data;

struct sev_data_init data = {0, 0, 0, 0};

Having to count the number of items is suboptimal. The alternative could be {} (which however is technically not standard C), {0} (a bit mysterious, but it works) and memset. I kept the latter to avoid touching the submitter's patch too much.

Paolo