Lines Matching refs:ghcb
484 static void vmware_sev_es_hcall_prepare(struct ghcb *ghcb, in vmware_sev_es_hcall_prepare() argument
488 ghcb_set_rip(ghcb, regs->ip); in vmware_sev_es_hcall_prepare()
489 ghcb_set_rbx(ghcb, regs->bx); in vmware_sev_es_hcall_prepare()
490 ghcb_set_rcx(ghcb, regs->cx); in vmware_sev_es_hcall_prepare()
491 ghcb_set_rdx(ghcb, regs->dx); in vmware_sev_es_hcall_prepare()
492 ghcb_set_rsi(ghcb, regs->si); in vmware_sev_es_hcall_prepare()
493 ghcb_set_rdi(ghcb, regs->di); in vmware_sev_es_hcall_prepare()
494 ghcb_set_rbp(ghcb, regs->bp); in vmware_sev_es_hcall_prepare()
497 static bool vmware_sev_es_hcall_finish(struct ghcb *ghcb, struct pt_regs *regs) in vmware_sev_es_hcall_finish() argument
499 if (!(ghcb_rbx_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
500 ghcb_rcx_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
501 ghcb_rdx_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
502 ghcb_rsi_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
503 ghcb_rdi_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
504 ghcb_rbp_is_valid(ghcb))) in vmware_sev_es_hcall_finish()
507 regs->bx = ghcb_get_rbx(ghcb); in vmware_sev_es_hcall_finish()
508 regs->cx = ghcb_get_rcx(ghcb); in vmware_sev_es_hcall_finish()
509 regs->dx = ghcb_get_rdx(ghcb); in vmware_sev_es_hcall_finish()
510 regs->si = ghcb_get_rsi(ghcb); in vmware_sev_es_hcall_finish()
511 regs->di = ghcb_get_rdi(ghcb); in vmware_sev_es_hcall_finish()
512 regs->bp = ghcb_get_rbp(ghcb); in vmware_sev_es_hcall_finish()