aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <[email protected]>2025-06-11 04:08:41 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-06-18 20:55:53 +0000
commit7ffeb2fc26707f613685ce7711c26a9de5890ab1 (patch)
tree8e1477460058619a4c0e9d6cd7ba16591b80a56a /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentx86/sev: Allocate request in TSC_INFO_REQ on stack (diff)
downloadkernel-7ffeb2fc26707f613685ce7711c26a9de5890ab1.tar.gz
kernel-7ffeb2fc26707f613685ce7711c26a9de5890ab1.zip
x86/sev: Document requirement for linear mapping of guest request buffers
The Guest Request supports 3 types of messages now, the largest is the extended variant of MSG_REPORT_REQ: sizeof(snp_ext_report_req)==112. These used to be allocated on stack and then moved to the SNP guest platform device (snp_guest_dev) for the reason explained in db10cb9b5746 ("virt: sevguest: Fix passing a stack buffer as a scatterlist target"): aesgcm_encrypt() and aesgcm_decrypt() are used for guest messages and might potentially use a crypto accelerator which requires DMA buffers to be in the linear mapping. Add a comment, warn and return an error when the buffers are not in linear mapping. Signed-off-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Tom Lendacky <[email protected]> Reviewed-by: Dionna Glaze <[email protected]> Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions