crypto: ccp: Use the stack and common buffer for INIT command
authorSean Christopherson <seanjc@google.com>
Tue, 6 Apr 2021 22:49:51 +0000 (15:49 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Apr 2021 16:20:07 +0000 (12:20 -0400)
commita402e35177797d736dd3dc2d8537c1c9ac90d54a
tree93362057bf4bae64a5c9c5dcda84993c7eacefa6
parent38103671aad38e888743dd26c767869cfc15adca
crypto: ccp: Use the stack and common buffer for INIT command

Drop the dedicated init_cmd_buf and instead use a local variable.  Now
that the low level helper uses an internal buffer for all commands,
using the stack for the upper layers is safe even when running with
CONFIG_VMAP_STACK=y.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210406224952.4177376-8-seanjc@google.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
drivers/crypto/ccp/sev-dev.c
drivers/crypto/ccp/sev-dev.h