[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a75c54d5-d4af-5d67-ef35-025d3e4a3f51@redhat.com>
Date: Sat, 17 Apr 2021 14:42:48 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Christophe Leroy <christophe.leroy@...roup.eu>,
Sean Christopherson <seanjc@...gle.com>,
Brijesh Singh <brijesh.singh@....com>,
Tom Lendacky <thomas.lendacky@....com>,
John Allen <john.allen@....com>
Cc: Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>, kvm@...r.kernel.org,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
Borislav Petkov <bp@...e.de>
Subject: Re: [PATCH v2 7/8] crypto: ccp: Use the stack and common buffer for
INIT command
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
Powered by blists - more mailing lists