diff options
| author | Alexey Kardashevskiy <[email protected]> | 2025-06-11 04:08:42 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2025-06-18 20:55:58 +0000 |
| commit | 040ed574ee823a2ce5da36a8d385d3133787c9c5 (patch) | |
| tree | 605da984b7a07ca45a4bcc1438d37922b21814a0 | |
| parent | x86/sev: Document requirement for linear mapping of guest request buffers (diff) | |
| download | kernel-040ed574ee823a2ce5da36a8d385d3133787c9c5.tar.gz kernel-040ed574ee823a2ce5da36a8d385d3133787c9c5.zip | |
x86/sev: Drop unnecessary parameter in snp_issue_guest_request()
Commit
3e385c0d6ce8 ("virt: sev-guest: Move SNP Guest Request data pages handling under snp_cmd_mutex")
moved @input from snp_msg_desc to snp_guest_req which is passed to
snp_issue_guest_request().
Drop the extra parameter.
No functional change intended.
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]
| -rw-r--r-- | arch/x86/coco/sev/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/coco/sev/core.c b/arch/x86/coco/sev/core.c index b0d423a353ab..8375ca7fbd8a 100644 --- a/arch/x86/coco/sev/core.c +++ b/arch/x86/coco/sev/core.c @@ -1389,8 +1389,9 @@ int snp_issue_svsm_attest_req(u64 call_id, struct svsm_call *call, } EXPORT_SYMBOL_GPL(snp_issue_svsm_attest_req); -static int snp_issue_guest_request(struct snp_guest_req *req, struct snp_req_data *input) +static int snp_issue_guest_request(struct snp_guest_req *req) { + struct snp_req_data *input = &req->input; struct ghcb_state state; struct es_em_ctxt ctxt; unsigned long flags; @@ -1932,7 +1933,7 @@ retry_request: * sequence number must be incremented or the VMPCK must be deleted to * prevent reuse of the IV. */ - rc = snp_issue_guest_request(req, &req->input); + rc = snp_issue_guest_request(req); switch (rc) { case -ENOSPC: /* |
