/arch/arm64/include/asm/ |
D | kvm_emulate.h | 64 static __always_inline bool vcpu_el1_is_32bit(struct kvm_vcpu *vcpu) in vcpu_el1_is_32bit() 69 static __always_inline bool vcpu_el1_is_32bit(struct kvm_vcpu *vcpu) in vcpu_el1_is_32bit() 75 static inline void vcpu_reset_hcr(struct kvm_vcpu *vcpu) in vcpu_reset_hcr() 112 static inline unsigned long *vcpu_hcr(struct kvm_vcpu *vcpu) in vcpu_hcr() 117 static inline void vcpu_clear_wfx_traps(struct kvm_vcpu *vcpu) in vcpu_clear_wfx_traps() 127 static inline void vcpu_set_wfx_traps(struct kvm_vcpu *vcpu) in vcpu_set_wfx_traps() 133 static inline void vcpu_ptrauth_enable(struct kvm_vcpu *vcpu) in vcpu_ptrauth_enable() 138 static inline void vcpu_ptrauth_disable(struct kvm_vcpu *vcpu) in vcpu_ptrauth_disable() 143 static inline unsigned long vcpu_get_vsesr(struct kvm_vcpu *vcpu) in vcpu_get_vsesr() 148 static inline void vcpu_set_vsesr(struct kvm_vcpu *vcpu, u64 vsesr) in vcpu_set_vsesr() [all …]
|
/arch/powerpc/include/asm/ |
D | kvm_booke.h | 26 static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val) in kvmppc_set_gpr() 31 static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) in kvmppc_get_gpr() 36 static inline void kvmppc_set_cr(struct kvm_vcpu *vcpu, u32 val) in kvmppc_set_cr() 41 static inline u32 kvmppc_get_cr(struct kvm_vcpu *vcpu) in kvmppc_get_cr() 46 static inline void kvmppc_set_xer(struct kvm_vcpu *vcpu, ulong val) in kvmppc_set_xer() 51 static inline ulong kvmppc_get_xer(struct kvm_vcpu *vcpu) in kvmppc_get_xer() 56 static inline bool kvmppc_need_byteswap(struct kvm_vcpu *vcpu) in kvmppc_need_byteswap() 62 static inline void kvmppc_set_ctr(struct kvm_vcpu *vcpu, ulong val) in kvmppc_set_ctr() 67 static inline ulong kvmppc_get_ctr(struct kvm_vcpu *vcpu) in kvmppc_get_ctr() 72 static inline void kvmppc_set_lr(struct kvm_vcpu *vcpu, ulong val) in kvmppc_set_lr() [all …]
|
/arch/riscv/kvm/ |
D | vcpu.c | 45 static void kvm_riscv_reset_vcpu(struct kvm_vcpu *vcpu) in kvm_riscv_reset_vcpu() 97 int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_create() 150 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_postcreate() 161 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_destroy() 178 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) in kvm_cpu_has_pending_timer() 183 void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_blocking() 188 void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_unblocking() 193 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_runnable() 199 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_should_kick() 204 bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_in_kernel() [all …]
|
D | vcpu_timer.c | 46 struct kvm_vcpu *vcpu = container_of(t, struct kvm_vcpu, arch.timer); in kvm_riscv_vcpu_hrtimer_expired() local 72 static int kvm_riscv_vcpu_update_vstimecmp(struct kvm_vcpu *vcpu, u64 ncycles) in kvm_riscv_vcpu_update_vstimecmp() 83 static int kvm_riscv_vcpu_update_hrtimer(struct kvm_vcpu *vcpu, u64 ncycles) in kvm_riscv_vcpu_update_hrtimer() 102 int kvm_riscv_vcpu_timer_next_event(struct kvm_vcpu *vcpu, u64 ncycles) in kvm_riscv_vcpu_timer_next_event() 113 struct kvm_vcpu *vcpu = container_of(t, struct kvm_vcpu, arch.timer); in kvm_riscv_vcpu_vstimer_expired() local 128 bool kvm_riscv_vcpu_timer_pending(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_timer_pending() 140 static void kvm_riscv_vcpu_timer_blocking(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_timer_blocking() 154 static void kvm_riscv_vcpu_timer_unblocking(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_timer_unblocking() 159 int kvm_riscv_vcpu_get_reg_timer(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_get_reg_timer() 199 int kvm_riscv_vcpu_set_reg_timer(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_set_reg_timer() [all …]
|
/arch/x86/kvm/ |
D | kvm_cache_regs.h | 59 static inline bool kvm_register_is_dirty(struct kvm_vcpu *vcpu, in kvm_register_is_dirty() 65 static inline void kvm_register_mark_available(struct kvm_vcpu *vcpu, in kvm_register_mark_available() 71 static inline void kvm_register_mark_dirty(struct kvm_vcpu *vcpu, in kvm_register_mark_dirty() 84 static __always_inline bool kvm_register_test_and_mark_available(struct kvm_vcpu *vcpu, in kvm_register_test_and_mark_available() 95 static inline unsigned long kvm_register_read_raw(struct kvm_vcpu *vcpu, int reg) in kvm_register_read_raw() 106 static inline void kvm_register_write_raw(struct kvm_vcpu *vcpu, int reg, in kvm_register_write_raw() 116 static inline unsigned long kvm_rip_read(struct kvm_vcpu *vcpu) in kvm_rip_read() 121 static inline void kvm_rip_write(struct kvm_vcpu *vcpu, unsigned long val) in kvm_rip_write() 126 static inline unsigned long kvm_rsp_read(struct kvm_vcpu *vcpu) in kvm_rsp_read() 131 static inline void kvm_rsp_write(struct kvm_vcpu *vcpu, unsigned long val) in kvm_rsp_write() [all …]
|
D | cpuid.h | 40 static inline int cpuid_maxphyaddr(struct kvm_vcpu *vcpu) in cpuid_maxphyaddr() 45 static inline bool kvm_vcpu_is_legal_gpa(struct kvm_vcpu *vcpu, gpa_t gpa) in kvm_vcpu_is_legal_gpa() 50 static inline bool kvm_vcpu_is_illegal_gpa(struct kvm_vcpu *vcpu, gpa_t gpa) in kvm_vcpu_is_illegal_gpa() 55 static inline bool kvm_vcpu_is_legal_aligned_gpa(struct kvm_vcpu *vcpu, in kvm_vcpu_is_legal_aligned_gpa() 61 static inline bool page_address_valid(struct kvm_vcpu *vcpu, gpa_t gpa) in page_address_valid() 75 static __always_inline u32 *guest_cpuid_get_register(struct kvm_vcpu *vcpu, in guest_cpuid_get_register() 88 static __always_inline bool guest_cpuid_has(struct kvm_vcpu *vcpu, in guest_cpuid_has() 100 static __always_inline void guest_cpuid_clear(struct kvm_vcpu *vcpu, in guest_cpuid_clear() 110 static inline bool guest_cpuid_is_amd_or_hygon(struct kvm_vcpu *vcpu) in guest_cpuid_is_amd_or_hygon() 120 static inline bool guest_cpuid_is_intel(struct kvm_vcpu *vcpu) in guest_cpuid_is_intel() [all …]
|
D | hyperv.h | 62 static inline struct kvm_vcpu_hv *to_hv_vcpu(struct kvm_vcpu *vcpu) in to_hv_vcpu() 67 static inline struct kvm_vcpu_hv_synic *to_hv_synic(struct kvm_vcpu *vcpu) in to_hv_synic() 81 static inline struct kvm_hv_syndbg *to_hv_syndbg(struct kvm_vcpu *vcpu) in to_hv_syndbg() 86 static inline u32 kvm_hv_get_vpindex(struct kvm_vcpu *vcpu) in kvm_hv_get_vpindex() 96 static inline bool kvm_hv_hypercall_enabled(struct kvm_vcpu *vcpu) in kvm_hv_hypercall_enabled() 113 static inline struct kvm_vcpu_hv_stimer *to_hv_stimer(struct kvm_vcpu *vcpu, in to_hv_stimer() 128 static inline bool kvm_hv_has_stimer_pending(struct kvm_vcpu *vcpu) in kvm_hv_has_stimer_pending() 143 static inline bool kvm_hv_invtsc_suppressed(struct kvm_vcpu *vcpu) in kvm_hv_invtsc_suppressed() 181 static inline struct kvm_vcpu_hv_tlb_flush_fifo *kvm_hv_get_tlb_flush_fifo(struct kvm_vcpu *vcpu, in kvm_hv_get_tlb_flush_fifo() 191 static inline void kvm_hv_vcpu_purge_flush_tlb(struct kvm_vcpu *vcpu) in kvm_hv_vcpu_purge_flush_tlb() [all …]
|
D | x86.h | 95 static inline bool kvm_vcpu_has_run(struct kvm_vcpu *vcpu) in kvm_vcpu_has_run() 100 static inline bool kvm_is_exception_pending(struct kvm_vcpu *vcpu) in kvm_is_exception_pending() 107 static inline void kvm_clear_exception_queue(struct kvm_vcpu *vcpu) in kvm_clear_exception_queue() 114 static inline void kvm_queue_interrupt(struct kvm_vcpu *vcpu, u8 vector, in kvm_queue_interrupt() 122 static inline void kvm_clear_interrupt_queue(struct kvm_vcpu *vcpu) in kvm_clear_interrupt_queue() 127 static inline bool kvm_event_needs_reinjection(struct kvm_vcpu *vcpu) in kvm_event_needs_reinjection() 138 static inline bool is_protmode(struct kvm_vcpu *vcpu) in is_protmode() 143 static inline bool is_long_mode(struct kvm_vcpu *vcpu) in is_long_mode() 152 static inline bool is_64_bit_mode(struct kvm_vcpu *vcpu) in is_64_bit_mode() 164 static inline bool is_64_bit_hypercall(struct kvm_vcpu *vcpu) in is_64_bit_hypercall() [all …]
|
/arch/powerpc/kvm/ |
D | booke.c | 90 void kvmppc_dump_vcpu(struct kvm_vcpu *vcpu) in kvmppc_dump_vcpu() 113 void kvmppc_vcpu_disable_spe(struct kvm_vcpu *vcpu) in kvmppc_vcpu_disable_spe() 123 static void kvmppc_vcpu_enable_spe(struct kvm_vcpu *vcpu) in kvmppc_vcpu_enable_spe() 133 static void kvmppc_vcpu_sync_spe(struct kvm_vcpu *vcpu) in kvmppc_vcpu_sync_spe() 143 static void kvmppc_vcpu_sync_spe(struct kvm_vcpu *vcpu) in kvmppc_vcpu_sync_spe() 157 static inline void kvmppc_load_guest_fp(struct kvm_vcpu *vcpu) in kvmppc_load_guest_fp() 174 static inline void kvmppc_save_guest_fp(struct kvm_vcpu *vcpu) in kvmppc_save_guest_fp() 183 static void kvmppc_vcpu_sync_fpu(struct kvm_vcpu *vcpu) in kvmppc_vcpu_sync_fpu() 198 static inline void kvmppc_load_guest_altivec(struct kvm_vcpu *vcpu) in kvmppc_load_guest_altivec() 217 static inline void kvmppc_save_guest_altivec(struct kvm_vcpu *vcpu) in kvmppc_save_guest_altivec() [all …]
|
D | timing.h | 20 static inline void kvmppc_set_exit_type(struct kvm_vcpu *vcpu, int type) in kvmppc_set_exit_type() 27 static inline void kvmppc_init_timing_stats(struct kvm_vcpu *vcpu) {} in kvmppc_init_timing_stats() 28 static inline void kvmppc_update_timing_stats(struct kvm_vcpu *vcpu) {} in kvmppc_update_timing_stats() 29 static inline int kvmppc_create_vcpu_debugfs_e500(struct kvm_vcpu *vcpu, in kvmppc_create_vcpu_debugfs_e500() 34 static inline void kvmppc_set_exit_type(struct kvm_vcpu *vcpu, int type) {} in kvmppc_set_exit_type() 38 static inline void kvmppc_account_exit_stat(struct kvm_vcpu *vcpu, int type) in kvmppc_account_exit_stat() 93 static inline void kvmppc_account_exit(struct kvm_vcpu *vcpu, int type) in kvmppc_account_exit()
|
D | book3s.c | 98 static inline void kvmppc_update_int_pending(struct kvm_vcpu *vcpu, in kvmppc_update_int_pending() 109 static inline bool kvmppc_critical_section(struct kvm_vcpu *vcpu) in kvmppc_critical_section() 135 void kvmppc_inject_interrupt(struct kvm_vcpu *vcpu, int vec, u64 flags) in kvmppc_inject_interrupt() 167 void kvmppc_book3s_dequeue_irqprio(struct kvm_vcpu *vcpu, in kvmppc_book3s_dequeue_irqprio() 179 void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec) in kvmppc_book3s_queue_irqprio() 191 void kvmppc_core_queue_machine_check(struct kvm_vcpu *vcpu, ulong srr1_flags) in kvmppc_core_queue_machine_check() 198 void kvmppc_core_queue_syscall(struct kvm_vcpu *vcpu) in kvmppc_core_queue_syscall() 204 void kvmppc_core_queue_program(struct kvm_vcpu *vcpu, ulong srr1_flags) in kvmppc_core_queue_program() 211 void kvmppc_core_queue_fpunavail(struct kvm_vcpu *vcpu, ulong srr1_flags) in kvmppc_core_queue_fpunavail() 217 void kvmppc_core_queue_vec_unavail(struct kvm_vcpu *vcpu, ulong srr1_flags) in kvmppc_core_queue_vec_unavail() [all …]
|
/arch/arm64/kvm/ |
D | debug.c | 42 static void save_guest_debug_regs(struct kvm_vcpu *vcpu) in save_guest_debug_regs() 53 static void restore_guest_debug_regs(struct kvm_vcpu *vcpu) in restore_guest_debug_regs() 94 static void kvm_arm_setup_mdcr_el2(struct kvm_vcpu *vcpu) in kvm_arm_setup_mdcr_el2() 135 void kvm_arm_vcpu_init_debug(struct kvm_vcpu *vcpu) in kvm_arm_vcpu_init_debug() 146 void kvm_arm_reset_debug_ptr(struct kvm_vcpu *vcpu) in kvm_arm_reset_debug_ptr() 167 void kvm_arm_setup_debug(struct kvm_vcpu *vcpu) in kvm_arm_setup_debug() 278 void kvm_arm_clear_debug(struct kvm_vcpu *vcpu) in kvm_arm_clear_debug() 315 void kvm_arch_vcpu_load_debug_state_flags(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_load_debug_state_flags() 338 void kvm_arch_vcpu_put_debug_state_flags(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_put_debug_state_flags()
|
D | inject_fault.c | 18 static void pend_sync_exception(struct kvm_vcpu *vcpu) in pend_sync_exception() 52 static bool match_target_el(struct kvm_vcpu *vcpu, unsigned long target) in match_target_el() 57 static void inject_abt64(struct kvm_vcpu *vcpu, bool is_iabt, unsigned long addr) in inject_abt64() 95 static void inject_undef64(struct kvm_vcpu *vcpu) in inject_undef64() 119 static void inject_undef32(struct kvm_vcpu *vcpu) in inject_undef32() 128 static void inject_abt32(struct kvm_vcpu *vcpu, bool is_pabt, u32 addr) in inject_abt32() 166 void kvm_inject_dabt(struct kvm_vcpu *vcpu, unsigned long addr) in kvm_inject_dabt() 182 void kvm_inject_pabt(struct kvm_vcpu *vcpu, unsigned long addr) in kvm_inject_pabt() 190 void kvm_inject_size_fault(struct kvm_vcpu *vcpu) in kvm_inject_size_fault() 225 void kvm_inject_undefined(struct kvm_vcpu *vcpu) in kvm_inject_undefined() [all …]
|
D | handle_exit.c | 32 static void kvm_handle_guest_serror(struct kvm_vcpu *vcpu, u64 esr) in kvm_handle_guest_serror() 38 static int handle_hvc(struct kvm_vcpu *vcpu) in handle_hvc() 57 static int handle_smc(struct kvm_vcpu *vcpu) in handle_smc() 94 static int handle_no_fpsimd(struct kvm_vcpu *vcpu) in handle_no_fpsimd() 115 static int kvm_handle_wfx(struct kvm_vcpu *vcpu) in kvm_handle_wfx() 167 static int kvm_handle_guest_debug(struct kvm_vcpu *vcpu) in kvm_handle_guest_debug() 189 static int kvm_handle_unknown_ec(struct kvm_vcpu *vcpu) in kvm_handle_unknown_ec() 204 static int handle_sve(struct kvm_vcpu *vcpu) in handle_sve() 215 static int kvm_handle_ptrauth(struct kvm_vcpu *vcpu) in kvm_handle_ptrauth() 221 static int kvm_handle_eret(struct kvm_vcpu *vcpu) in kvm_handle_eret() [all …]
|
D | sys_regs.c | 49 static bool read_from_write_only(struct kvm_vcpu *vcpu, in read_from_write_only() 59 static bool write_to_read_only(struct kvm_vcpu *vcpu, in write_to_read_only() 98 static u32 get_ccsidr(struct kvm_vcpu *vcpu, u32 csselr) in get_ccsidr() 133 static int set_ccsidr(struct kvm_vcpu *vcpu, u32 csselr, u32 val) in set_ccsidr() 162 static bool access_rw(struct kvm_vcpu *vcpu, in access_rw() 177 static bool access_dcsw(struct kvm_vcpu *vcpu, in access_dcsw() 197 static bool access_dcgsw(struct kvm_vcpu *vcpu, in access_dcgsw() 233 static bool access_vm_reg(struct kvm_vcpu *vcpu, in access_vm_reg() 258 static bool access_actlr(struct kvm_vcpu *vcpu, in access_actlr() 279 static bool access_gic_sgi(struct kvm_vcpu *vcpu, in access_gic_sgi() [all …]
|
D | psci.c | 24 static unsigned long kvm_psci_vcpu_suspend(struct kvm_vcpu *vcpu) in kvm_psci_vcpu_suspend() 48 struct kvm_vcpu *vcpu = NULL; in kvm_psci_vcpu_on() local 105 static unsigned long kvm_psci_vcpu_affinity_info(struct kvm_vcpu *vcpu) in kvm_psci_vcpu_affinity_info() 148 static void kvm_prepare_system_event(struct kvm_vcpu *vcpu, u32 type, u64 flags) in kvm_prepare_system_event() 176 static void kvm_psci_system_off(struct kvm_vcpu *vcpu) in kvm_psci_system_off() 181 static void kvm_psci_system_reset(struct kvm_vcpu *vcpu) in kvm_psci_system_reset() 186 static void kvm_psci_system_reset2(struct kvm_vcpu *vcpu) in kvm_psci_system_reset2() 192 static void kvm_psci_system_suspend(struct kvm_vcpu *vcpu) in kvm_psci_system_suspend() 201 static unsigned long kvm_psci_check_allowed_function(struct kvm_vcpu *vcpu, u32 fn) in kvm_psci_check_allowed_function() 212 static int kvm_psci_0_2_call(struct kvm_vcpu *vcpu) in kvm_psci_0_2_call() [all …]
|
D | vgic-sys-reg-v3.c | 13 static int set_gic_ctlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in set_gic_ctlr() 59 static int get_gic_ctlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in get_gic_ctlr() 87 static int set_gic_pmr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in set_gic_pmr() 99 static int get_gic_pmr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in get_gic_pmr() 110 static int set_gic_bpr0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in set_gic_bpr0() 122 static int get_gic_bpr0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in get_gic_bpr0() 133 static int set_gic_bpr1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in set_gic_bpr1() 147 static int get_gic_bpr1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in get_gic_bpr1() 162 static int set_gic_grpen0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in set_gic_grpen0() 174 static int get_gic_grpen0(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r, in get_gic_grpen0() [all …]
|
D | fpsimd.c | 26 int kvm_arch_vcpu_run_map_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_run_map_fp() 52 void kvm_arch_vcpu_load_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_load_fp() 110 void kvm_arch_vcpu_ctxflush_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_ctxflush_fp() 123 void kvm_arch_vcpu_ctxsync_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_ctxsync_fp() 159 void kvm_arch_vcpu_put_fp(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_put_fp()
|
/arch/s390/kvm/ |
D | intercept.c | 25 u8 kvm_s390_get_ilen(struct kvm_vcpu *vcpu) in kvm_s390_get_ilen() 53 static int handle_stop(struct kvm_vcpu *vcpu) in handle_stop() 91 static int handle_validity(struct kvm_vcpu *vcpu) in handle_validity() 106 static int handle_instruction(struct kvm_vcpu *vcpu) in handle_instruction() 143 static int inject_prog_on_prog_intercept(struct kvm_vcpu *vcpu) in inject_prog_on_prog_intercept() 211 static int handle_itdb(struct kvm_vcpu *vcpu) in handle_itdb() 229 #define per_event(vcpu) (vcpu->arch.sie_block->iprcc & PGM_PER) argument 231 static bool should_handle_per_event(const struct kvm_vcpu *vcpu) in should_handle_per_event() 246 static int handle_prog(struct kvm_vcpu *vcpu) in handle_prog() 302 static int handle_external_interrupt(struct kvm_vcpu *vcpu) in handle_external_interrupt() [all …]
|
/arch/arm64/kvm/hyp/nvhe/ |
D | sys_regs.c | 36 static void inject_undef64(struct kvm_vcpu *vcpu) in inject_undef64() 86 static u64 get_pvm_id_aa64pfr0(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64pfr0() 97 static u64 get_pvm_id_aa64pfr1(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64pfr1() 109 static u64 get_pvm_id_aa64zfr0(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64zfr0() 118 static u64 get_pvm_id_aa64dfr0(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64dfr0() 128 static u64 get_pvm_id_aa64dfr1(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64dfr1() 138 static u64 get_pvm_id_aa64afr0(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64afr0() 148 static u64 get_pvm_id_aa64afr1(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64afr1() 158 static u64 get_pvm_id_aa64isar0(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64isar0() 163 static u64 get_pvm_id_aa64isar1(const struct kvm_vcpu *vcpu) in get_pvm_id_aa64isar1() [all …]
|
D | switch.c | 40 #define update_pvm_fgt_traps(vcpu, reg) \ argument 43 static void __activate_pvm_fine_grain_traps(struct kvm_vcpu *vcpu) in __activate_pvm_fine_grain_traps() 69 static void __deactivate_pvm_traps_hfgxtr(struct kvm_vcpu *vcpu) in __deactivate_pvm_traps_hfgxtr() 86 static void __activate_traps(struct kvm_vcpu *vcpu) in __activate_traps() 138 static void __deactivate_traps(struct kvm_vcpu *vcpu) in __deactivate_traps() 174 static void __deactivate_fpsimd_traps(struct kvm_vcpu *vcpu) in __deactivate_fpsimd_traps() 196 static void __hyp_vgic_save_state(struct kvm_vcpu *vcpu) in __hyp_vgic_save_state() 205 static void __hyp_vgic_restore_state(struct kvm_vcpu *vcpu) in __hyp_vgic_restore_state() 217 static bool __pmu_switch_to_guest(struct kvm_vcpu *vcpu) in __pmu_switch_to_guest() 233 static void __pmu_switch_to_host(struct kvm_vcpu *vcpu) in __pmu_switch_to_host() [all …]
|
/arch/arm64/kvm/hyp/include/hyp/ |
D | switch.h | 42 static inline void __fpsimd_save_fpexc32(struct kvm_vcpu *vcpu) in __fpsimd_save_fpexc32() 50 static inline void __activate_traps_fpsimd32(struct kvm_vcpu *vcpu) in __activate_traps_fpsimd32() 67 #define compute_clr_set(vcpu, reg, clr, set) \ argument 75 #define update_fgt_traps_cs(vcpu, reg, clr, set) \ argument 93 #define update_fgt_traps(vcpu, reg) \ argument 115 static inline void __activate_traps_hfgxtr(struct kvm_vcpu *vcpu) in __activate_traps_hfgxtr() 179 static inline void __deactivate_traps_hfgxtr(struct kvm_vcpu *vcpu) in __deactivate_traps_hfgxtr() 200 static inline void __activate_traps_common(struct kvm_vcpu *vcpu) in __activate_traps_common() 226 static inline void __activate_traps_hcrx(struct kvm_vcpu *vcpu) in __activate_traps_hcrx() 245 static inline void __deactivate_traps_common(struct kvm_vcpu *vcpu) in __deactivate_traps_common() [all …]
|
/arch/x86/kvm/svm/ |
D | svm.c | 297 int svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) in svm_set_efer() 349 static u32 svm_get_interrupt_shadow(struct kvm_vcpu *vcpu) in svm_get_interrupt_shadow() 359 static void svm_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) in svm_set_interrupt_shadow() 372 static int __svm_skip_emulated_instruction(struct kvm_vcpu *vcpu, in __svm_skip_emulated_instruction() 418 static int svm_skip_emulated_instruction(struct kvm_vcpu *vcpu) in svm_skip_emulated_instruction() 423 static int svm_update_soft_interrupt_rip(struct kvm_vcpu *vcpu) in svm_update_soft_interrupt_rip() 468 static void svm_inject_exception(struct kvm_vcpu *vcpu) in svm_inject_exception() 510 static void svm_init_osvw(struct kvm_vcpu *vcpu) in svm_init_osvw() 787 static void set_shadow_msr_intercept(struct kvm_vcpu *vcpu, u32 msr, int read, in set_shadow_msr_intercept() 813 static bool msr_write_intercepted(struct kvm_vcpu *vcpu, u32 msr) in msr_write_intercepted() [all …]
|
/arch/arm64/kvm/hyp/vhe/ |
D | switch.c | 36 static void __activate_traps(struct kvm_vcpu *vcpu) in __activate_traps() 92 static void __deactivate_traps(struct kvm_vcpu *vcpu) in __deactivate_traps() 145 void activate_traps_vhe_load(struct kvm_vcpu *vcpu) in activate_traps_vhe_load() 156 void deactivate_traps_vhe_put(struct kvm_vcpu *vcpu) in deactivate_traps_vhe_put() 166 static void __deactivate_fpsimd_traps(struct kvm_vcpu *vcpu) in __deactivate_fpsimd_traps() 176 static void kvm_hyp_handle_fpsimd_host(struct kvm_vcpu *vcpu) in kvm_hyp_handle_fpsimd_host() 193 static const exit_handler_fn *kvm_get_exit_handler_array(struct kvm_vcpu *vcpu) in kvm_get_exit_handler_array() 198 static void early_exit_filter(struct kvm_vcpu *vcpu, u64 *exit_code) in early_exit_filter() 222 static int __kvm_vcpu_run_vhe(struct kvm_vcpu *vcpu) in __kvm_vcpu_run_vhe() 280 int __kvm_vcpu_run(struct kvm_vcpu *vcpu) in __kvm_vcpu_run() [all …]
|
/arch/mips/kvm/ |
D | vz.c | 84 static inline unsigned int kvm_vz_config_guest_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config_guest_wrmask() 89 static inline unsigned int kvm_vz_config1_guest_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config1_guest_wrmask() 94 static inline unsigned int kvm_vz_config2_guest_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config2_guest_wrmask() 99 static inline unsigned int kvm_vz_config3_guest_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config3_guest_wrmask() 104 static inline unsigned int kvm_vz_config4_guest_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config4_guest_wrmask() 110 static inline unsigned int kvm_vz_config5_guest_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config5_guest_wrmask() 132 static inline unsigned int kvm_vz_config6_guest_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config6_guest_wrmask() 148 static inline unsigned int kvm_vz_config_user_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config_user_wrmask() 153 static inline unsigned int kvm_vz_config1_user_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config1_user_wrmask() 164 static inline unsigned int kvm_vz_config2_user_wrmask(struct kvm_vcpu *vcpu) in kvm_vz_config2_user_wrmask() [all …]
|