Lines Matching refs:ghcb
481 static void vmware_sev_es_hcall_prepare(struct ghcb *ghcb, in vmware_sev_es_hcall_prepare() argument
485 ghcb_set_rip(ghcb, regs->ip); in vmware_sev_es_hcall_prepare()
486 ghcb_set_rbx(ghcb, regs->bx); in vmware_sev_es_hcall_prepare()
487 ghcb_set_rcx(ghcb, regs->cx); in vmware_sev_es_hcall_prepare()
488 ghcb_set_rdx(ghcb, regs->dx); in vmware_sev_es_hcall_prepare()
489 ghcb_set_rsi(ghcb, regs->si); in vmware_sev_es_hcall_prepare()
490 ghcb_set_rdi(ghcb, regs->di); in vmware_sev_es_hcall_prepare()
491 ghcb_set_rbp(ghcb, regs->bp); in vmware_sev_es_hcall_prepare()
494 static bool vmware_sev_es_hcall_finish(struct ghcb *ghcb, struct pt_regs *regs) in vmware_sev_es_hcall_finish() argument
496 if (!(ghcb_rbx_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
497 ghcb_rcx_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
498 ghcb_rdx_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
499 ghcb_rsi_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
500 ghcb_rdi_is_valid(ghcb) && in vmware_sev_es_hcall_finish()
501 ghcb_rbp_is_valid(ghcb))) in vmware_sev_es_hcall_finish()
504 regs->bx = ghcb->save.rbx; in vmware_sev_es_hcall_finish()
505 regs->cx = ghcb->save.rcx; in vmware_sev_es_hcall_finish()
506 regs->dx = ghcb->save.rdx; in vmware_sev_es_hcall_finish()
507 regs->si = ghcb->save.rsi; in vmware_sev_es_hcall_finish()
508 regs->di = ghcb->save.rdi; in vmware_sev_es_hcall_finish()
509 regs->bp = ghcb->save.rbp; in vmware_sev_es_hcall_finish()