Skip to content

Commit 040ed57

Browse files
aikbp3tk0v
authored andcommitted
x86/sev: Drop unnecessary parameter in snp_issue_guest_request()
Commit 3e385c0 ("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]
1 parent 7ffeb2f commit 040ed57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/x86/coco/sev/core.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,9 @@ int snp_issue_svsm_attest_req(u64 call_id, struct svsm_call *call,
13891389
}
13901390
EXPORT_SYMBOL_GPL(snp_issue_svsm_attest_req);
13911391

1392-
static int snp_issue_guest_request(struct snp_guest_req *req, struct snp_req_data *input)
1392+
static int snp_issue_guest_request(struct snp_guest_req *req)
13931393
{
1394+
struct snp_req_data *input = &req->input;
13941395
struct ghcb_state state;
13951396
struct es_em_ctxt ctxt;
13961397
unsigned long flags;
@@ -1932,7 +1933,7 @@ static int __handle_guest_request(struct snp_msg_desc *mdesc, struct snp_guest_r
19321933
* sequence number must be incremented or the VMPCK must be deleted to
19331934
* prevent reuse of the IV.
19341935
*/
1935-
rc = snp_issue_guest_request(req, &req->input);
1936+
rc = snp_issue_guest_request(req);
19361937
switch (rc) {
19371938
case -ENOSPC:
19381939
/*

0 commit comments

Comments
 (0)