diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-07-21 19:53:37 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-07-23 09:30:29 -0700 |
| commit | d1e2c82ced23c46f9eef1fc0f7f0a05f97aa8e9b (patch) | |
| tree | 828818f3faff350eef82f9d057ecbeaa62f76288 | |
| parent | 8d88e4b91611a1f7c4954db606aab9f515c0a1e0 (diff) | |
| download | linux-next-d1e2c82ced23c46f9eef1fc0f7f0a05f97aa8e9b.tar.gz linux-next-d1e2c82ced23c46f9eef1fc0f7f0a05f97aa8e9b.zip | |
x86/sev: Remove obsolete virtual address check
Virtual addresses used with the AES-GCM library don't have to be in the
linear mapping. Remove the virt_addr_valid() checks from
snp_send_guest_request(), which were a workaround left over from when
this code used crypto_aead, which required scatterlists.
Link: https://lore.kernel.org/all/20251010151036.42241-2-ardb+git@google.com/
Reviewed-by: Alexey Kardashevskiy <aik@amd.com>
Tested-by: Alexey Kardashevskiy <aik@amd.com>
Tested-by: Nikunj A Dadhania <nikunj@amd.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/20260722025338.33354-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
| -rw-r--r-- | arch/x86/coco/sev/core.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c index 54b122f6ef96..cc292d7c6fd1 100644 --- a/arch/x86/coco/sev/core.c +++ b/arch/x86/coco/sev/core.c @@ -1867,15 +1867,6 @@ int snp_send_guest_request(struct snp_msg_desc *mdesc, struct snp_guest_req *req u64 seqno; int rc; - /* - * enc_payload() calls aesgcm_encrypt(), which can potentially offload to HW. - * The offload's DMA SG list of data to encrypt has to be in linear mapping. - */ - if (!virt_addr_valid(req->req_buf) || !virt_addr_valid(req->resp_buf)) { - pr_warn("AES-GSM buffers must be in linear mapping"); - return -EINVAL; - } - guard(mutex)(&snp_cmd_mutex); /* Check if the VMPCK is not empty */ |
