Home
last modified time | relevance | path

Searched refs:ghcb (Results 1 – 25 of 37) sorted by relevance

12

/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/x86/kernel/
H A Dsev.c94 struct ghcb *ghcb; member
198 struct ghcb *ghcb; in sev_es_get_ghcb() local
215 *state->ghcb = *ghcb; in sev_es_get_ghcb()
221 return ghcb; in sev_es_get_ghcb()
227 struct ghcb *ghcb; in sev_es_put_ghcb() local
234 *ghcb = *state->ghcb; in sev_es_put_ghcb()
467 struct ghcb *ghcb; in __sev_es_nmi_complete() local
486 struct ghcb *ghcb; in get_jump_table_addr() local
628 struct ghcb *ghcb; in sev_es_ap_hlt_loop() local
1184 struct ghcb *ghcb, in vc_handle_exitcode() argument
[all …]
H A Dsev-shared.c64 static __always_inline void vc_ghcb_invalidate(struct ghcb *ghcb) in vc_ghcb_invalidate() argument
66 memset(ghcb->save.valid_bitmap, 0, sizeof(ghcb->save.valid_bitmap)); in vc_ghcb_invalidate()
96 static enum es_result sev_es_ghcb_hv_call(struct ghcb *ghcb, in sev_es_ghcb_hv_call() argument
361 static enum es_result vc_handle_ioio(struct ghcb *ghcb, struct es_em_ctxt *ctxt) in vc_handle_ioio() argument
411 sw_scratch = __pa(ghcb) + offsetof(struct ghcb, shared_buffer); in vc_handle_ioio()
453 ghcb_set_rax(ghcb, rax); in vc_handle_ioio()
469 static enum es_result vc_handle_cpuid(struct ghcb *ghcb, in vc_handle_cpuid() argument
484 ghcb_set_xcr0(ghcb, 1); in vc_handle_cpuid()
496 regs->ax = ghcb->save.rax; in vc_handle_cpuid()
504 static enum es_result vc_handle_rdtsc(struct ghcb *ghcb, in vc_handle_rdtsc() argument
[all …]
H A Dkvm.c815 static void kvm_sev_es_hcall_prepare(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_prepare() argument
818 ghcb_set_rbx(ghcb, regs->bx); in kvm_sev_es_hcall_prepare()
819 ghcb_set_rcx(ghcb, regs->cx); in kvm_sev_es_hcall_prepare()
820 ghcb_set_rdx(ghcb, regs->dx); in kvm_sev_es_hcall_prepare()
821 ghcb_set_rsi(ghcb, regs->si); in kvm_sev_es_hcall_prepare()
824 static bool kvm_sev_es_hcall_finish(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_finish() argument
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/x86/kernel/
H A Dsev.c94 struct ghcb *ghcb; member
198 struct ghcb *ghcb; in sev_es_get_ghcb() local
215 *state->ghcb = *ghcb; in sev_es_get_ghcb()
221 return ghcb; in sev_es_get_ghcb()
227 struct ghcb *ghcb; in sev_es_put_ghcb() local
234 *ghcb = *state->ghcb; in sev_es_put_ghcb()
467 struct ghcb *ghcb; in __sev_es_nmi_complete() local
486 struct ghcb *ghcb; in get_jump_table_addr() local
628 struct ghcb *ghcb; in sev_es_ap_hlt_loop() local
1184 struct ghcb *ghcb, in vc_handle_exitcode() argument
[all …]
H A Dsev-shared.c64 static __always_inline void vc_ghcb_invalidate(struct ghcb *ghcb) in vc_ghcb_invalidate() argument
66 memset(ghcb->save.valid_bitmap, 0, sizeof(ghcb->save.valid_bitmap)); in vc_ghcb_invalidate()
96 static enum es_result sev_es_ghcb_hv_call(struct ghcb *ghcb, in sev_es_ghcb_hv_call() argument
361 static enum es_result vc_handle_ioio(struct ghcb *ghcb, struct es_em_ctxt *ctxt) in vc_handle_ioio() argument
411 sw_scratch = __pa(ghcb) + offsetof(struct ghcb, shared_buffer); in vc_handle_ioio()
453 ghcb_set_rax(ghcb, rax); in vc_handle_ioio()
469 static enum es_result vc_handle_cpuid(struct ghcb *ghcb, in vc_handle_cpuid() argument
484 ghcb_set_xcr0(ghcb, 1); in vc_handle_cpuid()
496 regs->ax = ghcb->save.rax; in vc_handle_cpuid()
504 static enum es_result vc_handle_rdtsc(struct ghcb *ghcb, in vc_handle_rdtsc() argument
[all …]
H A Dkvm.c815 static void kvm_sev_es_hcall_prepare(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_prepare() argument
818 ghcb_set_rbx(ghcb, regs->bx); in kvm_sev_es_hcall_prepare()
819 ghcb_set_rcx(ghcb, regs->cx); in kvm_sev_es_hcall_prepare()
820 ghcb_set_rdx(ghcb, regs->dx); in kvm_sev_es_hcall_prepare()
821 ghcb_set_rsi(ghcb, regs->si); in kvm_sev_es_hcall_prepare()
824 static bool kvm_sev_es_hcall_finish(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_finish() argument
/dports/multimedia/libv4l/linux-5.13-rc2/arch/x86/kernel/
H A Dsev.c94 struct ghcb *ghcb; member
198 struct ghcb *ghcb; in sev_es_get_ghcb() local
215 *state->ghcb = *ghcb; in sev_es_get_ghcb()
221 return ghcb; in sev_es_get_ghcb()
227 struct ghcb *ghcb; in sev_es_put_ghcb() local
234 *ghcb = *state->ghcb; in sev_es_put_ghcb()
467 struct ghcb *ghcb; in __sev_es_nmi_complete() local
486 struct ghcb *ghcb; in get_jump_table_addr() local
628 struct ghcb *ghcb; in sev_es_ap_hlt_loop() local
1184 struct ghcb *ghcb, in vc_handle_exitcode() argument
[all …]
H A Dsev-shared.c64 static __always_inline void vc_ghcb_invalidate(struct ghcb *ghcb) in vc_ghcb_invalidate() argument
66 memset(ghcb->save.valid_bitmap, 0, sizeof(ghcb->save.valid_bitmap)); in vc_ghcb_invalidate()
96 static enum es_result sev_es_ghcb_hv_call(struct ghcb *ghcb, in sev_es_ghcb_hv_call() argument
361 static enum es_result vc_handle_ioio(struct ghcb *ghcb, struct es_em_ctxt *ctxt) in vc_handle_ioio() argument
411 sw_scratch = __pa(ghcb) + offsetof(struct ghcb, shared_buffer); in vc_handle_ioio()
453 ghcb_set_rax(ghcb, rax); in vc_handle_ioio()
469 static enum es_result vc_handle_cpuid(struct ghcb *ghcb, in vc_handle_cpuid() argument
484 ghcb_set_xcr0(ghcb, 1); in vc_handle_cpuid()
496 regs->ax = ghcb->save.rax; in vc_handle_cpuid()
504 static enum es_result vc_handle_rdtsc(struct ghcb *ghcb, in vc_handle_rdtsc() argument
[all …]
H A Dkvm.c815 static void kvm_sev_es_hcall_prepare(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_prepare() argument
818 ghcb_set_rbx(ghcb, regs->bx); in kvm_sev_es_hcall_prepare()
819 ghcb_set_rcx(ghcb, regs->cx); in kvm_sev_es_hcall_prepare()
820 ghcb_set_rdx(ghcb, regs->dx); in kvm_sev_es_hcall_prepare()
821 ghcb_set_rsi(ghcb, regs->si); in kvm_sev_es_hcall_prepare()
824 static bool kvm_sev_es_hcall_finish(struct ghcb *ghcb, struct pt_regs *regs) in kvm_sev_es_hcall_finish() argument
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/x86/kernel/cpu/
H A Dvmware.c484 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
507 regs->bx = ghcb_get_rbx(ghcb); in vmware_sev_es_hcall_finish()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/x86/kernel/cpu/
H A Dvmware.c484 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
507 regs->bx = ghcb_get_rbx(ghcb); in vmware_sev_es_hcall_finish()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/arch/x86/kernel/cpu/
H A Dvmware.c484 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
507 regs->bx = ghcb_get_rbx(ghcb); in vmware_sev_es_hcall_finish()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/x86/kvm/svm/
H A Dsev.c1991 struct ghcb *ghcb = svm->ghcb; in dump_ghcb() local
2010 ghcb->save.sw_scratch, ghcb_sw_scratch_is_valid(ghcb)); in dump_ghcb()
2017 struct ghcb *ghcb = svm->ghcb; in sev_es_sync_to_ghcb() local
2037 struct ghcb *ghcb = svm->ghcb; in sev_es_sync_from_ghcb() local
2081 struct ghcb *ghcb; in sev_es_validate_vmgexit() local
2084 ghcb = svm->ghcb; in sev_es_validate_vmgexit()
2202 if (!svm->ghcb) in sev_es_unmap_ghcb()
2228 svm->ghcb = NULL; in sev_es_unmap_ghcb()
2258 struct ghcb *ghcb = svm->ghcb; in setup_vmgexit_scratch() local
2435 struct ghcb *ghcb; in sev_handle_vmgexit() local
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/x86/kvm/svm/
H A Dsev.c1991 struct ghcb *ghcb = svm->ghcb; in dump_ghcb() local
2010 ghcb->save.sw_scratch, ghcb_sw_scratch_is_valid(ghcb)); in dump_ghcb()
2017 struct ghcb *ghcb = svm->ghcb; in sev_es_sync_to_ghcb() local
2037 struct ghcb *ghcb = svm->ghcb; in sev_es_sync_from_ghcb() local
2081 struct ghcb *ghcb; in sev_es_validate_vmgexit() local
2084 ghcb = svm->ghcb; in sev_es_validate_vmgexit()
2202 if (!svm->ghcb) in sev_es_unmap_ghcb()
2228 svm->ghcb = NULL; in sev_es_unmap_ghcb()
2258 struct ghcb *ghcb = svm->ghcb; in setup_vmgexit_scratch() local
2435 struct ghcb *ghcb; in sev_handle_vmgexit() local
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/arch/x86/kvm/svm/
H A Dsev.c1991 struct ghcb *ghcb = svm->ghcb; in dump_ghcb() local
2010 ghcb->save.sw_scratch, ghcb_sw_scratch_is_valid(ghcb)); in dump_ghcb()
2017 struct ghcb *ghcb = svm->ghcb; in sev_es_sync_to_ghcb() local
2037 struct ghcb *ghcb = svm->ghcb; in sev_es_sync_from_ghcb() local
2081 struct ghcb *ghcb; in sev_es_validate_vmgexit() local
2084 ghcb = svm->ghcb; in sev_es_validate_vmgexit()
2202 if (!svm->ghcb) in sev_es_unmap_ghcb()
2228 svm->ghcb = NULL; in sev_es_unmap_ghcb()
2258 struct ghcb *ghcb = svm->ghcb; in setup_vmgexit_scratch() local
2435 struct ghcb *ghcb; in sev_handle_vmgexit() local
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/x86/include/asm/
H A Dsvm.h304 struct ghcb { struct
324 BUILD_BUG_ON(sizeof(struct ghcb) != EXPECTED_GHCB_SIZE); in __unused_size_checks() argument
396 static inline bool ghcb_##field##_is_valid(const struct ghcb *ghcb) \
399 (unsigned long *)&ghcb->save.valid_bitmap); \
402 static inline u64 ghcb_get_##field(struct ghcb *ghcb) \
404 return ghcb->save.field; \
407 static inline u64 ghcb_get_##field##_if_valid(struct ghcb *ghcb) \
409 return ghcb_##field##_is_valid(ghcb) ? ghcb->save.field : 0; \
412 static inline void ghcb_set_##field(struct ghcb *ghcb, u64 value) \
415 (unsigned long *)&ghcb->save.valid_bitmap); \
[all …]
H A Dx86_init.h7 struct ghcb;
250 void (*sev_es_hcall_prepare)(struct ghcb *ghcb, struct pt_regs *regs);
251 bool (*sev_es_hcall_finish)(struct ghcb *ghcb, struct pt_regs *regs);
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/x86/include/asm/
H A Dsvm.h304 struct ghcb { struct
324 BUILD_BUG_ON(sizeof(struct ghcb) != EXPECTED_GHCB_SIZE); in __unused_size_checks() argument
396 static inline bool ghcb_##field##_is_valid(const struct ghcb *ghcb) \
399 (unsigned long *)&ghcb->save.valid_bitmap); \
402 static inline u64 ghcb_get_##field(struct ghcb *ghcb) \
404 return ghcb->save.field; \
407 static inline u64 ghcb_get_##field##_if_valid(struct ghcb *ghcb) \
409 return ghcb_##field##_is_valid(ghcb) ? ghcb->save.field : 0; \
412 static inline void ghcb_set_##field(struct ghcb *ghcb, u64 value) \
415 (unsigned long *)&ghcb->save.valid_bitmap); \
[all …]
H A Dx86_init.h7 struct ghcb;
250 void (*sev_es_hcall_prepare)(struct ghcb *ghcb, struct pt_regs *regs);
251 bool (*sev_es_hcall_finish)(struct ghcb *ghcb, struct pt_regs *regs);
/dports/multimedia/libv4l/linux-5.13-rc2/arch/x86/include/asm/
H A Dsvm.h304 struct ghcb { struct
324 BUILD_BUG_ON(sizeof(struct ghcb) != EXPECTED_GHCB_SIZE); in __unused_size_checks() argument
396 static inline bool ghcb_##field##_is_valid(const struct ghcb *ghcb) \
399 (unsigned long *)&ghcb->save.valid_bitmap); \
402 static inline u64 ghcb_get_##field(struct ghcb *ghcb) \
404 return ghcb->save.field; \
407 static inline u64 ghcb_get_##field##_if_valid(struct ghcb *ghcb) \
409 return ghcb_##field##_is_valid(ghcb) ? ghcb->save.field : 0; \
412 static inline void ghcb_set_##field(struct ghcb *ghcb, u64 value) \
415 (unsigned long *)&ghcb->save.valid_bitmap); \
[all …]
H A Dx86_init.h7 struct ghcb;
250 void (*sev_es_hcall_prepare)(struct ghcb *ghcb, struct pt_regs *regs);
251 bool (*sev_es_hcall_finish)(struct ghcb *ghcb, struct pt_regs *regs);
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/x86/boot/compressed/
H A Dsev.c26 struct ghcb boot_ghcb_page __aligned(PAGE_SIZE);
27 struct ghcb *boot_ghcb;
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/x86/boot/compressed/
H A Dsev.c26 struct ghcb boot_ghcb_page __aligned(PAGE_SIZE);
27 struct ghcb *boot_ghcb;
/dports/multimedia/libv4l/linux-5.13-rc2/arch/x86/boot/compressed/
H A Dsev.c26 struct ghcb boot_ghcb_page __aligned(PAGE_SIZE);
27 struct ghcb *boot_ghcb;
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/x86/kvm/
H A Dtrace.h1622 TP_PROTO(unsigned int vcpu_id, struct ghcb *ghcb),
1623 TP_ARGS(vcpu_id, ghcb),
1634 __entry->exit_reason = ghcb->save.sw_exit_code;
1635 __entry->info1 = ghcb->save.sw_exit_info_1;
1636 __entry->info2 = ghcb->save.sw_exit_info_2;
1648 TP_PROTO(unsigned int vcpu_id, struct ghcb *ghcb),
1649 TP_ARGS(vcpu_id, ghcb),
1660 __entry->exit_reason = ghcb->save.sw_exit_code;
1661 __entry->info1 = ghcb->save.sw_exit_info_1;
1662 __entry->info2 = ghcb->save.sw_exit_info_2;

12