Searched refs:ghcb (Results 1 – 5 of 5) sorted by relevance
| /linux/arch/x86/hyperv/ |
| H A D | ivm.c | 36 struct ghcb ghcb; member 92 hv_ghcb->ghcb.protocol_version = GHCB_PROTOCOL_MAX; in hv_ghcb_hypercall() 93 hv_ghcb->ghcb.ghcb_usage = GHCB_USAGE_HYPERV_CALL; in hv_ghcb_hypercall() 104 hv_ghcb->ghcb.ghcb_usage = 0xffffffff; in hv_ghcb_hypercall() 105 memset(hv_ghcb->ghcb.save.valid_bitmap, 0, in hv_ghcb_hypercall() 106 sizeof(hv_ghcb->ghcb.save.valid_bitmap)); in hv_ghcb_hypercall() 125 static enum es_result hv_ghcb_hv_call(struct ghcb *ghcb, u64 exit_code, in hv_ghcb_hv_call() argument 129 ghcb->protocol_version = hv_ghcb_version; in hv_ghcb_hv_call() 130 ghcb->ghcb_usage = GHCB_DEFAULT_USAGE; in hv_ghcb_hv_call() 132 ghcb_set_sw_exit_code(ghcb, exit_code); in hv_ghcb_hv_call() [all …]
|
| /linux/arch/x86/boot/compressed/ |
| H A D | sev.c | 30 static struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); 31 struct ghcb *boot_ghcb __section(".data"); 146 static void __noreturn sev_es_ghcb_terminate(struct ghcb *ghcb, unsigned int set, in sev_es_ghcb_terminate() argument 151 vc_ghcb_invalidate(ghcb); in sev_es_ghcb_terminate() 152 ghcb_set_sw_exit_code(ghcb, SVM_VMGEXIT_TERM_REQUEST); in sev_es_ghcb_terminate() 153 ghcb_set_sw_exit_info_1(ghcb, exit_info_1); in sev_es_ghcb_terminate() 154 ghcb_set_sw_exit_info_2(ghcb, exit_info_2); in sev_es_ghcb_terminate() 156 sev_es_wr_ghcb_msr(__pa(ghcb)); in sev_es_ghcb_terminate()
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | mshyperv.c | 797 static void hv_sev_es_hcall_prepare(struct ghcb *ghcb, struct pt_regs *regs) in hv_sev_es_hcall_prepare() argument 800 ghcb_set_rcx(ghcb, regs->cx); in hv_sev_es_hcall_prepare() 801 ghcb_set_rdx(ghcb, regs->dx); in hv_sev_es_hcall_prepare() 802 ghcb_set_r8(ghcb, regs->r8); in hv_sev_es_hcall_prepare() 805 static bool hv_sev_es_hcall_finish(struct ghcb *ghcb, struct pt_regs *regs) in hv_sev_es_hcall_finish() argument
|
| /linux/arch/x86/kvm/ |
| H A D | trace.h | 1845 TP_PROTO(unsigned int vcpu_id, struct ghcb *ghcb), 1846 TP_ARGS(vcpu_id, ghcb), 1857 __entry->exit_reason = ghcb->save.sw_exit_code; 1858 __entry->info1 = ghcb->save.sw_exit_info_1; 1859 __entry->info2 = ghcb->save.sw_exit_info_2; 1871 TP_PROTO(unsigned int vcpu_id, struct ghcb *ghcb), 1872 TP_ARGS(vcpu_id, ghcb), 1883 __entry->exit_reason = ghcb->save.sw_exit_code; 1884 __entry->info1 = ghcb->save.sw_exit_info_1; 1885 __entry->info2 = ghcb->save.sw_exit_info_2;
|
| /linux/arch/x86/kvm/svm/ |
| H A D | svm.c | 2948 if (!err || !is_sev_es_guest(vcpu) || WARN_ON_ONCE(!svm->sev_es.ghcb)) in svm_get_msr() 3466 pr_err("%-20s%016llx\n", "ghcb:", control->ghcb_gpa); in dump_vmcb()
|