crypto: ccp: Use the stack and common buffer for status commands
authorSean Christopherson <seanjc@google.com>
Tue, 6 Apr 2021 22:49:50 +0000 (15:49 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Apr 2021 16:20:07 +0000 (12:20 -0400)
commit38103671aad38e888743dd26c767869cfc15adca
tree0361e4060ce8ffe82291d57ff0e88abebf7f0340
parente4a9af799e5539b0feb99571f0aaed5a3c81dc5a
crypto: ccp: Use the stack and common buffer for status commands

Drop the dedicated status_cmd_buf and instead use a local variable for
PLATFORM_STATUS.  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-7-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