Lines Matching refs:ctxt

140 static enum es_result verify_exception_info(struct ghcb *ghcb, struct es_em_ctxt *ctxt)  in verify_exception_info()  argument
156 ctxt->fi.vector = v; in verify_exception_info()
159 ctxt->fi.error_code = info >> 32; in verify_exception_info()
252 struct es_em_ctxt ctxt; in svsm_perform_ghcb_protocol() local
275 switch (verify_exception_info(ghcb, &ctxt)) { in svsm_perform_ghcb_protocol()
279 vc_forward_exception(&ctxt); in svsm_perform_ghcb_protocol()
289 struct es_em_ctxt *ctxt, in sev_es_ghcb_hv_call() argument
304 return verify_exception_info(ghcb, ctxt); in sev_es_ghcb_hv_call()
345 static int __sev_cpuid_hv_ghcb(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in __sev_cpuid_hv_ghcb() argument
360 ret = sev_es_ghcb_hv_call(ghcb, ctxt, SVM_EXIT_CPUID, 0, 0); in __sev_cpuid_hv_ghcb()
378 static int sev_cpuid_hv(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in sev_cpuid_hv() argument
380 return ghcb ? __sev_cpuid_hv_ghcb(ghcb, ctxt, leaf) in sev_cpuid_hv()
487 static void snp_cpuid_hv(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in snp_cpuid_hv() argument
489 if (sev_cpuid_hv(ghcb, ctxt, leaf)) in snp_cpuid_hv()
494 snp_cpuid_postprocess(struct ghcb *ghcb, struct es_em_ctxt *ctxt, in snp_cpuid_postprocess() argument
501 snp_cpuid_hv(ghcb, ctxt, &leaf_hv); in snp_cpuid_postprocess()
520 snp_cpuid_hv(ghcb, ctxt, &leaf_hv); in snp_cpuid_postprocess()
568 snp_cpuid_hv(ghcb, ctxt, &leaf_hv); in snp_cpuid_postprocess()
590 snp_cpuid(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in snp_cpuid() argument
624 return snp_cpuid_postprocess(ghcb, ctxt, leaf); in snp_cpuid()