Home
last modified time | relevance | path

Searched defs:ctxt (Results 1 – 23 of 23) sorted by relevance

/arch/arm64/kvm/hyp/include/hyp/
Dsysreg-sr.h19 static inline void __sysreg_save_common_state(struct kvm_cpu_context *ctxt) in __sysreg_save_common_state()
24 static inline void __sysreg_save_user_state(struct kvm_cpu_context *ctxt) in __sysreg_save_user_state()
30 static inline bool ctxt_has_mte(struct kvm_cpu_context *ctxt) in ctxt_has_mte()
40 static inline void __sysreg_save_el1_state(struct kvm_cpu_context *ctxt) in __sysreg_save_el1_state()
75 static inline void __sysreg_save_el2_return_state(struct kvm_cpu_context *ctxt) in __sysreg_save_el2_return_state()
89 static inline void __sysreg_restore_common_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_common_state()
94 static inline void __sysreg_restore_user_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_user_state()
100 static inline void __sysreg_restore_el1_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_el1_state()
170 static inline u64 to_hw_pstate(const struct kvm_cpu_context *ctxt) in to_hw_pstate()
186 static inline void __sysreg_restore_el2_return_state(struct kvm_cpu_context *ctxt) in __sysreg_restore_el2_return_state()
Ddebug-sr.h92 struct kvm_cpu_context *ctxt) in __debug_save_state()
110 struct kvm_cpu_context *ctxt) in __debug_restore_state()
Dswitch.h438 #define __ptrauth_save_key(ctxt, key) \ argument
451 struct kvm_cpu_context *ctxt; in kvm_hyp_handle_ptrauth() local
475 struct arch_timer_context *ctxt; in kvm_hyp_handle_cntpct() local
/arch/x86/kvm/
Demulate.c246 static void writeback_registers(struct x86_emulate_ctxt *ctxt) in writeback_registers()
255 static void invalidate_registers(struct x86_emulate_ctxt *ctxt) in invalidate_registers()
466 static int emulator_check_intercept(struct x86_emulate_ctxt *ctxt, in emulator_check_intercept()
511 static inline unsigned long ad_mask(struct x86_emulate_ctxt *ctxt) in ad_mask()
516 static ulong stack_mask(struct x86_emulate_ctxt *ctxt) in stack_mask()
527 static int stack_size(struct x86_emulate_ctxt *ctxt) in stack_size()
534 address_mask(struct x86_emulate_ctxt *ctxt, unsigned long reg) in address_mask()
543 register_address(struct x86_emulate_ctxt *ctxt, int reg) in register_address()
554 register_address_increment(struct x86_emulate_ctxt *ctxt, int reg, int inc) in register_address_increment()
561 static void rsp_increment(struct x86_emulate_ctxt *ctxt, int inc) in rsp_increment()
[all …]
Dsmm.c467 static int rsm_load_state_32(struct x86_emulate_ctxt *ctxt, in rsm_load_state_32()
519 static int rsm_load_state_64(struct x86_emulate_ctxt *ctxt, in rsm_load_state_64()
572 int emulator_leave_smm(struct x86_emulate_ctxt *ctxt) in emulator_leave_smm()
Dx86.c102 #define emul_to_vcpu(ctxt) \ argument
7377 static int kvm_fetch_guest_virt(struct x86_emulate_ctxt *ctxt, in kvm_fetch_guest_virt()
7422 static int emulator_read_std(struct x86_emulate_ctxt *ctxt, in emulator_read_std()
7467 static int emulator_write_std(struct x86_emulate_ctxt *ctxt, gva_t addr, void *val, in emulator_write_std()
7665 struct x86_emulate_ctxt *ctxt = vcpu->arch.emulate_ctxt; in emulator_read_write_onepage() local
7706 static int emulator_read_write(struct x86_emulate_ctxt *ctxt, in emulator_read_write()
7760 static int emulator_read_emulated(struct x86_emulate_ctxt *ctxt, in emulator_read_emulated()
7770 static int emulator_write_emulated(struct x86_emulate_ctxt *ctxt, in emulator_write_emulated()
7783 static int emulator_cmpxchg_emulated(struct x86_emulate_ctxt *ctxt, in emulator_cmpxchg_emulated()
7936 static int emulator_pio_in_emulated(struct x86_emulate_ctxt *ctxt, in emulator_pio_in_emulated()
[all …]
Dkvm_emulate.h368 #define KVM_EMULATOR_BUG_ON(cond, ctxt) \ argument
510 static inline ulong reg_read(struct x86_emulate_ctxt *ctxt, unsigned nr) in reg_read()
522 static inline ulong *reg_write(struct x86_emulate_ctxt *ctxt, unsigned nr) in reg_write()
535 static inline ulong *reg_rmw(struct x86_emulate_ctxt *ctxt, unsigned nr) in reg_rmw()
/arch/arm64/kvm/hyp/vhe/
Dsysreg-sr.c28 void sysreg_save_host_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_save_host_state_vhe()
34 void sysreg_save_guest_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_save_guest_state_vhe()
41 void sysreg_restore_host_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_restore_host_state_vhe()
47 void sysreg_restore_guest_state_vhe(struct kvm_cpu_context *ctxt) in sysreg_restore_guest_state_vhe()
/arch/arm64/kvm/hyp/nvhe/
Dsysreg-sr.c21 void __sysreg_save_state_nvhe(struct kvm_cpu_context *ctxt) in __sysreg_save_state_nvhe()
29 void __sysreg_restore_state_nvhe(struct kvm_cpu_context *ctxt) in __sysreg_restore_state_nvhe()
Dffa.c97 static void ffa_set_retval(struct kvm_cpu_context *ctxt, in ffa_set_retval()
192 struct kvm_cpu_context *ctxt) in do_ffa_rxtx_map()
271 struct kvm_cpu_context *ctxt) in do_ffa_rxtx_unmap()
372 struct kvm_cpu_context *ctxt) in do_ffa_mem_frag_tx()
431 struct kvm_cpu_context *ctxt) in do_ffa_mem_xfer()
516 struct kvm_cpu_context *ctxt) in do_ffa_mem_reclaim()
629 struct kvm_cpu_context *ctxt) in do_ffa_features()
695 struct kvm_cpu_context *ctxt) in do_ffa_version()
735 struct kvm_cpu_context *ctxt) in do_ffa_part_get()
783 bool kvm_host_ffa_handler(struct kvm_cpu_context *ctxt, u32 func_id) in kvm_host_ffa_handler()
Dswitch.c124 struct kvm_cpu_context *ctxt = &vcpu->arch.ctxt; in __activate_traps() local
Dhyp-main.c915 #define get_host_hyp_vcpus(ctxt, regnr, hyp_vcpup) \ argument
921 #define get_host_hyp_vcpus_from_vgic_v3_cpu_if(ctxt, regnr, hyp_vcpup) \ argument
/arch/arm64/kvm/hyp/include/nvhe/
Dtrap_handler.h14 #define cpu_reg(ctxt, r) (ctxt)->regs.regs[r] argument
15 #define DECLARE_REG(type, name, ctxt, reg) \ argument
/arch/x86/kernel/
Dsev-shared.c178 static enum es_result vc_init_em_ctxt(struct es_em_ctxt *ctxt, in vc_init_em_ctxt()
193 static void vc_finish_insn(struct es_em_ctxt *ctxt) in vc_finish_insn()
198 static enum es_result verify_exception_info(struct ghcb *ghcb, struct es_em_ctxt *ctxt) in verify_exception_info()
227 struct es_em_ctxt *ctxt, in sev_es_ghcb_hv_call()
283 static int __sev_cpuid_hv_ghcb(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in __sev_cpuid_hv_ghcb()
316 static int sev_cpuid_hv(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in sev_cpuid_hv()
425 static void snp_cpuid_hv(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in snp_cpuid_hv()
431 static int snp_cpuid_postprocess(struct ghcb *ghcb, struct es_em_ctxt *ctxt, in snp_cpuid_postprocess()
527 snp_cpuid(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) in snp_cpuid()
631 static enum es_result vc_insn_string_check(struct es_em_ctxt *ctxt, in vc_insn_string_check()
[all …]
Dsev.c274 static int vc_fetch_insn_kernel(struct es_em_ctxt *ctxt, in vc_fetch_insn_kernel()
280 static enum es_result __vc_decode_user_insn(struct es_em_ctxt *ctxt) in __vc_decode_user_insn()
309 static enum es_result __vc_decode_kern_insn(struct es_em_ctxt *ctxt) in __vc_decode_kern_insn()
329 static enum es_result vc_decode_insn(struct es_em_ctxt *ctxt) in vc_decode_insn()
337 static enum es_result vc_write_mem(struct es_em_ctxt *ctxt, in vc_write_mem()
416 static enum es_result vc_read_mem(struct es_em_ctxt *ctxt, in vc_read_mem()
494 static enum es_result vc_slow_virt_to_phys(struct ghcb *ghcb, struct es_em_ctxt *ctxt, in vc_slow_virt_to_phys()
529 static enum es_result vc_ioio_check(struct es_em_ctxt *ctxt, u16 port, size_t size) in vc_ioio_check()
1184 static enum es_result vc_handle_msr(struct ghcb *ghcb, struct es_em_ctxt *ctxt) in vc_handle_msr()
1385 static void __init vc_early_forward_exception(struct es_em_ctxt *ctxt) in vc_early_forward_exception()
[all …]
/arch/x86/power/
Dcpu.c39 static void msr_save_context(struct saved_context *ctxt) in msr_save_context()
51 static void msr_restore_context(struct saved_context *ctxt) in msr_restore_context()
79 static void __save_processor_state(struct saved_context *ctxt) in __save_processor_state()
195 static void notrace __restore_processor_state(struct saved_context *ctxt) in __restore_processor_state()
/arch/x86/boot/compressed/
Dsev.c76 static enum es_result vc_decode_insn(struct es_em_ctxt *ctxt) in vc_decode_insn()
90 static enum es_result vc_write_mem(struct es_em_ctxt *ctxt, in vc_write_mem()
98 static enum es_result vc_read_mem(struct es_em_ctxt *ctxt, in vc_read_mem()
106 static enum es_result vc_ioio_check(struct es_em_ctxt *ctxt, u16 port, size_t size) in vc_ioio_check()
299 struct es_em_ctxt ctxt; in do_boot_stage2_vc() local
/arch/x86/xen/
Dpmu.c30 #define field_offset(ctxt, field) ((void *)((uintptr_t)ctxt + \ argument
202 struct xen_pmu_intel_ctxt *ctxt; in xen_intel_pmu_emulate() local
265 struct xen_pmu_amd_ctxt *ctxt; in xen_amd_pmu_emulate() local
352 struct xen_pmu_amd_ctxt *ctxt; in xen_amd_read_pmc() local
372 struct xen_pmu_intel_ctxt *ctxt; in xen_intel_read_pmc() local
Dsmp_pv.c255 struct vcpu_guest_context *ctxt; in cpu_initialize_context() local
/arch/arm64/include/asm/
Dkvm_emulate.h199 static inline bool vcpu_is_el2_ctxt(const struct kvm_cpu_context *ctxt) in vcpu_is_el2_ctxt()
215 static inline bool __vcpu_el2_e2h_is_set(const struct kvm_cpu_context *ctxt) in __vcpu_el2_e2h_is_set()
225 static inline bool __vcpu_el2_tge_is_set(const struct kvm_cpu_context *ctxt) in __vcpu_el2_tge_is_set()
235 static inline bool __is_hyp_ctxt(const struct kvm_cpu_context *ctxt) in __is_hyp_ctxt()
Dkvm_host.h565 struct kvm_cpu_context ctxt; member
/arch/arm64/kvm/
Darch_timer.c66 u32 timer_get_ctl(struct arch_timer_context *ctxt) in timer_get_ctl()
85 u64 timer_get_cval(struct arch_timer_context *ctxt) in timer_get_cval()
104 static u64 timer_get_offset(struct arch_timer_context *ctxt) in timer_get_offset()
119 static void timer_set_ctl(struct arch_timer_context *ctxt, u32 ctl) in timer_set_ctl()
141 static void timer_set_cval(struct arch_timer_context *ctxt, u64 cval) in timer_set_cval()
163 static void timer_set_offset(struct arch_timer_context *ctxt, u64 offset) in timer_set_offset()
990 struct arch_timer_context *ctxt = vcpu_get_timer(vcpu, timerid); in timer_context_init() local
/arch/x86/kvm/svm/
Dsvm.c2339 struct x86_emulate_ctxt *ctxt = vcpu->arch.emulate_ctxt; in svm_instr_opcode() local