@@ -786,7 +786,7 @@ static int vmgexit_psc(struct snp_psc_desc *desc)
786
786
ghcb_set_sw_scratch (ghcb , (u64 )__pa (data ));
787
787
788
788
/* This will advance the shared buffer data points to. */
789
- ret = sev_es_ghcb_hv_call (ghcb , true, & ctxt , SVM_VMGEXIT_PSC , 0 , 0 );
789
+ ret = sev_es_ghcb_hv_call (ghcb , & ctxt , SVM_VMGEXIT_PSC , 0 , 0 );
790
790
791
791
/*
792
792
* Page State Change VMGEXIT can pass error code through
@@ -1212,8 +1212,7 @@ static enum es_result vc_handle_msr(struct ghcb *ghcb, struct es_em_ctxt *ctxt)
1212
1212
ghcb_set_rdx (ghcb , regs -> dx );
1213
1213
}
1214
1214
1215
- ret = sev_es_ghcb_hv_call (ghcb , true, ctxt , SVM_EXIT_MSR ,
1216
- exit_info_1 , 0 );
1215
+ ret = sev_es_ghcb_hv_call (ghcb , ctxt , SVM_EXIT_MSR , exit_info_1 , 0 );
1217
1216
1218
1217
if ((ret == ES_OK ) && (!exit_info_1 )) {
1219
1218
regs -> ax = ghcb -> save .rax ;
@@ -1452,7 +1451,7 @@ static enum es_result vc_do_mmio(struct ghcb *ghcb, struct es_em_ctxt *ctxt,
1452
1451
1453
1452
ghcb_set_sw_scratch (ghcb , ghcb_pa + offsetof(struct ghcb , shared_buffer ));
1454
1453
1455
- return sev_es_ghcb_hv_call (ghcb , true, ctxt , exit_code , exit_info_1 , exit_info_2 );
1454
+ return sev_es_ghcb_hv_call (ghcb , ctxt , exit_code , exit_info_1 , exit_info_2 );
1456
1455
}
1457
1456
1458
1457
/*
@@ -1628,7 +1627,7 @@ static enum es_result vc_handle_dr7_write(struct ghcb *ghcb,
1628
1627
1629
1628
/* Using a value of 0 for ExitInfo1 means RAX holds the value */
1630
1629
ghcb_set_rax (ghcb , val );
1631
- ret = sev_es_ghcb_hv_call (ghcb , true, ctxt , SVM_EXIT_WRITE_DR7 , 0 , 0 );
1630
+ ret = sev_es_ghcb_hv_call (ghcb , ctxt , SVM_EXIT_WRITE_DR7 , 0 , 0 );
1632
1631
if (ret != ES_OK )
1633
1632
return ret ;
1634
1633
@@ -1658,7 +1657,7 @@ static enum es_result vc_handle_dr7_read(struct ghcb *ghcb,
1658
1657
static enum es_result vc_handle_wbinvd (struct ghcb * ghcb ,
1659
1658
struct es_em_ctxt * ctxt )
1660
1659
{
1661
- return sev_es_ghcb_hv_call (ghcb , true, ctxt , SVM_EXIT_WBINVD , 0 , 0 );
1660
+ return sev_es_ghcb_hv_call (ghcb , ctxt , SVM_EXIT_WBINVD , 0 , 0 );
1662
1661
}
1663
1662
1664
1663
static enum es_result vc_handle_rdpmc (struct ghcb * ghcb , struct es_em_ctxt * ctxt )
@@ -1667,7 +1666,7 @@ static enum es_result vc_handle_rdpmc(struct ghcb *ghcb, struct es_em_ctxt *ctxt
1667
1666
1668
1667
ghcb_set_rcx (ghcb , ctxt -> regs -> cx );
1669
1668
1670
- ret = sev_es_ghcb_hv_call (ghcb , true, ctxt , SVM_EXIT_RDPMC , 0 , 0 );
1669
+ ret = sev_es_ghcb_hv_call (ghcb , ctxt , SVM_EXIT_RDPMC , 0 , 0 );
1671
1670
if (ret != ES_OK )
1672
1671
return ret ;
1673
1672
@@ -1708,7 +1707,7 @@ static enum es_result vc_handle_vmmcall(struct ghcb *ghcb,
1708
1707
if (x86_platform .hyper .sev_es_hcall_prepare )
1709
1708
x86_platform .hyper .sev_es_hcall_prepare (ghcb , ctxt -> regs );
1710
1709
1711
- ret = sev_es_ghcb_hv_call (ghcb , true, ctxt , SVM_EXIT_VMMCALL , 0 , 0 );
1710
+ ret = sev_es_ghcb_hv_call (ghcb , ctxt , SVM_EXIT_VMMCALL , 0 , 0 );
1712
1711
if (ret != ES_OK )
1713
1712
return ret ;
1714
1713
@@ -2197,7 +2196,7 @@ int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, unsigned
2197
2196
ghcb_set_rbx (ghcb , input -> data_npages );
2198
2197
}
2199
2198
2200
- ret = sev_es_ghcb_hv_call (ghcb , true, & ctxt , exit_code , input -> req_gpa , input -> resp_gpa );
2199
+ ret = sev_es_ghcb_hv_call (ghcb , & ctxt , exit_code , input -> req_gpa , input -> resp_gpa );
2201
2200
if (ret )
2202
2201
goto e_put ;
2203
2202
0 commit comments