Searched refs:ghcb (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | sev-es.c | 37 static struct ghcb boot_ghcb_page __bss_decrypted __aligned(PAGE_SIZE); 43 static struct ghcb __initdata *boot_ghcb; 47 struct ghcb ghcb_page; 56 struct ghcb backup_ghcb; 83 struct ghcb *ghcb; member 157 static noinstr struct ghcb *__sev_get_ghcb(struct ghcb_state *state) in __sev_get_ghcb() 160 struct ghcb *ghcb; in __sev_get_ghcb() local 165 ghcb = &data->ghcb_page; in __sev_get_ghcb() 188 state->ghcb = &data->backup_ghcb; in __sev_get_ghcb() 191 *state->ghcb = *ghcb; in __sev_get_ghcb() [all …]
|
D | sev-es-shared.c | 64 static __always_inline void vc_ghcb_invalidate(struct ghcb *ghcb) in vc_ghcb_invalidate() argument 66 ghcb->save.sw_exit_code = 0; in vc_ghcb_invalidate() 67 memset(ghcb->save.valid_bitmap, 0, sizeof(ghcb->save.valid_bitmap)); in vc_ghcb_invalidate() 97 static enum es_result sev_es_ghcb_hv_call(struct ghcb *ghcb, in sev_es_ghcb_hv_call() argument 105 ghcb->protocol_version = GHCB_PROTOCOL_MAX; in sev_es_ghcb_hv_call() 106 ghcb->ghcb_usage = GHCB_DEFAULT_USAGE; in sev_es_ghcb_hv_call() 108 ghcb_set_sw_exit_code(ghcb, exit_code); in sev_es_ghcb_hv_call() 109 ghcb_set_sw_exit_info_1(ghcb, exit_info_1); in sev_es_ghcb_hv_call() 110 ghcb_set_sw_exit_info_2(ghcb, exit_info_2); in sev_es_ghcb_hv_call() 112 sev_es_wr_ghcb_msr(__pa(ghcb)); in sev_es_ghcb_hv_call() [all …]
|
D | kvm.c | 796 static void kvm_sev_es_hcall_prepare(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_prepare() argument 799 ghcb_set_rbx(ghcb, regs->bx); in kvm_sev_es_hcall_prepare() 800 ghcb_set_rcx(ghcb, regs->cx); in kvm_sev_es_hcall_prepare() 801 ghcb_set_rdx(ghcb, regs->dx); in kvm_sev_es_hcall_prepare() 802 ghcb_set_rsi(ghcb, regs->si); in kvm_sev_es_hcall_prepare() 805 static bool kvm_sev_es_hcall_finish(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_finish() argument
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
D | vmware.c | 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() [all …]
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | x86_init.h | 7 struct ghcb; 248 void (*sev_es_hcall_prepare)(struct ghcb *ghcb, struct pt_regs *regs); 249 bool (*sev_es_hcall_finish)(struct ghcb *ghcb, struct pt_regs *regs);
|
D | svm.h | 286 struct ghcb { struct 306 BUILD_BUG_ON(sizeof(struct ghcb) != EXPECTED_GHCB_SIZE); in __unused_size_checks() argument 378 static inline bool ghcb_##field##_is_valid(const struct ghcb *ghcb) \ 381 (unsigned long *)&ghcb->save.valid_bitmap); \ 384 static inline void ghcb_set_##field(struct ghcb *ghcb, u64 value) \ 387 (unsigned long *)&ghcb->save.valid_bitmap); \ 388 ghcb->save.field = value; \
|
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
D | sev-es.c | 26 struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); 27 struct ghcb *boot_ghcb;
|