Home
last modified time | relevance | path

Searched defs:vcpu (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/linux-6.12.1/arch/arm64/include/asm/
Dkvm_emulate.h59 static inline void kvm_inject_nested_sve_trap(struct kvm_vcpu *vcpu) in kvm_inject_nested_sve_trap()
68 static __always_inline bool vcpu_el1_is_32bit(struct kvm_vcpu *vcpu) in vcpu_el1_is_32bit()
73 static __always_inline bool vcpu_el1_is_32bit(struct kvm_vcpu *vcpu) in vcpu_el1_is_32bit()
79 static inline void vcpu_reset_hcr(struct kvm_vcpu *vcpu) in vcpu_reset_hcr()
94 static inline unsigned long *vcpu_hcr(struct kvm_vcpu *vcpu) in vcpu_hcr()
99 static inline void vcpu_clear_wfx_traps(struct kvm_vcpu *vcpu) in vcpu_clear_wfx_traps()
109 static inline void vcpu_set_wfx_traps(struct kvm_vcpu *vcpu) in vcpu_set_wfx_traps()
115 static inline unsigned long vcpu_get_vsesr(struct kvm_vcpu *vcpu) in vcpu_get_vsesr()
120 static inline void vcpu_set_vsesr(struct kvm_vcpu *vcpu, u64 vsesr) in vcpu_set_vsesr()
125 static __always_inline unsigned long *vcpu_pc(const struct kvm_vcpu *vcpu) in vcpu_pc()
[all …]
/linux-6.12.1/arch/riscv/kvm/
Dvcpu.c49 static void kvm_riscv_reset_vcpu(struct kvm_vcpu *vcpu) in kvm_riscv_reset_vcpu()
105 int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_create()
170 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_postcreate()
181 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_destroy()
198 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) in kvm_cpu_has_pending_timer()
203 void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_blocking()
208 void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_unblocking()
213 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_runnable()
219 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_should_kick()
224 bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_in_kernel()
[all …]
Dvcpu_onereg.c191 void kvm_riscv_vcpu_setup_isa(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_setup_isa()
203 static int kvm_riscv_vcpu_get_reg_config(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_get_reg_config()
252 static int kvm_riscv_vcpu_set_reg_config(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_set_reg_config()
356 static int kvm_riscv_vcpu_get_reg_core(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_get_reg_core()
389 static int kvm_riscv_vcpu_set_reg_core(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_set_reg_core()
424 static int kvm_riscv_vcpu_general_get_csr(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_general_get_csr()
443 static int kvm_riscv_vcpu_general_set_csr(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_general_set_csr()
465 static inline int kvm_riscv_vcpu_smstateen_set_csr(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_smstateen_set_csr()
479 static int kvm_riscv_vcpu_smstateen_get_csr(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_smstateen_get_csr()
493 static int kvm_riscv_vcpu_get_reg_csr(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_get_reg_csr()
[all …]
/linux-6.12.1/arch/loongarch/kvm/
Dvcpu.c35 static inline void kvm_save_host_pmu(struct kvm_vcpu *vcpu) in kvm_save_host_pmu()
50 static inline void kvm_restore_host_pmu(struct kvm_vcpu *vcpu) in kvm_restore_host_pmu()
66 static inline void kvm_save_guest_pmu(struct kvm_vcpu *vcpu) in kvm_save_guest_pmu()
80 static inline void kvm_restore_guest_pmu(struct kvm_vcpu *vcpu) in kvm_restore_guest_pmu()
94 static int kvm_own_pmu(struct kvm_vcpu *vcpu) in kvm_own_pmu()
113 static void kvm_lose_pmu(struct kvm_vcpu *vcpu) in kvm_lose_pmu()
141 static void kvm_restore_pmu(struct kvm_vcpu *vcpu) in kvm_restore_pmu()
147 static void kvm_check_pmu(struct kvm_vcpu *vcpu) in kvm_check_pmu()
155 static void kvm_update_stolen_time(struct kvm_vcpu *vcpu) in kvm_update_stolen_time()
205 static int kvm_check_requests(struct kvm_vcpu *vcpu) in kvm_check_requests()
[all …]
Dexit.c24 static int kvm_emu_cpucfg(struct kvm_vcpu *vcpu, larch_inst inst) in kvm_emu_cpucfg()
65 static unsigned long kvm_emu_read_csr(struct kvm_vcpu *vcpu, int csrid) in kvm_emu_read_csr()
82 static unsigned long kvm_emu_write_csr(struct kvm_vcpu *vcpu, int csrid, unsigned long val) in kvm_emu_write_csr()
96 static unsigned long kvm_emu_xchg_csr(struct kvm_vcpu *vcpu, int csrid, in kvm_emu_xchg_csr()
113 static int kvm_handle_csr(struct kvm_vcpu *vcpu, larch_inst inst) in kvm_handle_csr()
157 int kvm_emu_iocsr(larch_inst inst, struct kvm_run *run, struct kvm_vcpu *vcpu) in kvm_emu_iocsr()
220 int kvm_complete_iocsr_read(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_complete_iocsr_read()
248 int kvm_emu_idle(struct kvm_vcpu *vcpu) in kvm_emu_idle()
259 static int kvm_trap_handle_gspr(struct kvm_vcpu *vcpu) in kvm_trap_handle_gspr()
327 static int kvm_handle_gspr(struct kvm_vcpu *vcpu) in kvm_handle_gspr()
[all …]
/linux-6.12.1/arch/powerpc/kvm/
Dbooke.c90 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 …]
Dbook3s.c98 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 …]
Dbook3s_pr.c67 static bool kvmppc_is_split_real(struct kvm_vcpu *vcpu) in kvmppc_is_split_real()
73 static void kvmppc_fixup_split_real(struct kvm_vcpu *vcpu) in kvmppc_fixup_split_real()
94 static void kvmppc_unfixup_split_real(struct kvm_vcpu *vcpu) in kvmppc_unfixup_split_real()
107 static void kvmppc_inject_interrupt_pr(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags) in kvmppc_inject_interrupt_pr()
132 static void kvmppc_core_vcpu_load_pr(struct kvm_vcpu *vcpu, int cpu) in kvmppc_core_vcpu_load_pr()
161 static void kvmppc_core_vcpu_put_pr(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_put_pr()
192 void kvmppc_copy_to_svcpu(struct kvm_vcpu *vcpu) in kvmppc_copy_to_svcpu()
231 static void kvmppc_recalc_shadow_msr(struct kvm_vcpu *vcpu) in kvmppc_recalc_shadow_msr()
264 void kvmppc_copy_from_svcpu(struct kvm_vcpu *vcpu) in kvmppc_copy_from_svcpu()
343 void kvmppc_save_tm_sprs(struct kvm_vcpu *vcpu) in kvmppc_save_tm_sprs()
[all …]
/linux-6.12.1/arch/x86/kvm/
Dhyperv.h64 static inline struct kvm_vcpu_hv *to_hv_vcpu(struct kvm_vcpu *vcpu) in to_hv_vcpu()
69 static inline struct kvm_vcpu_hv_synic *to_hv_synic(struct kvm_vcpu *vcpu) in to_hv_synic()
83 static inline struct kvm_hv_syndbg *to_hv_syndbg(struct kvm_vcpu *vcpu) in to_hv_syndbg()
88 static inline u32 kvm_hv_get_vpindex(struct kvm_vcpu *vcpu) in kvm_hv_get_vpindex()
98 static inline bool kvm_hv_hypercall_enabled(struct kvm_vcpu *vcpu) in kvm_hv_hypercall_enabled()
110 static inline bool kvm_hv_synic_has_vector(struct kvm_vcpu *vcpu, int vector) in kvm_hv_synic_has_vector()
115 static inline bool kvm_hv_synic_auto_eoi_set(struct kvm_vcpu *vcpu, int vector) in kvm_hv_synic_auto_eoi_set()
126 static inline struct kvm_vcpu_hv_stimer *to_hv_stimer(struct kvm_vcpu *vcpu, in to_hv_stimer()
141 static inline bool kvm_hv_has_stimer_pending(struct kvm_vcpu *vcpu) in kvm_hv_has_stimer_pending()
156 static inline bool kvm_hv_invtsc_suppressed(struct kvm_vcpu *vcpu) in kvm_hv_invtsc_suppressed()
[all …]
Dkvm_cache_regs.h59 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 …]
Dcpuid.h40 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_legal_aligned_gpa(struct kvm_vcpu *vcpu, in kvm_vcpu_is_legal_aligned_gpa()
56 static inline bool page_address_valid(struct kvm_vcpu *vcpu, gpa_t gpa) in page_address_valid()
70 static __always_inline u32 *guest_cpuid_get_register(struct kvm_vcpu *vcpu, in guest_cpuid_get_register()
83 static __always_inline bool guest_cpuid_has(struct kvm_vcpu *vcpu, in guest_cpuid_has()
95 static __always_inline void guest_cpuid_clear(struct kvm_vcpu *vcpu, in guest_cpuid_clear()
105 static inline bool guest_cpuid_is_amd_compatible(struct kvm_vcpu *vcpu) in guest_cpuid_is_amd_compatible()
110 static inline bool guest_cpuid_is_intel_compatible(struct kvm_vcpu *vcpu) in guest_cpuid_is_intel_compatible()
115 static inline int guest_cpuid_family(struct kvm_vcpu *vcpu) in guest_cpuid_family()
[all …]
Dx86.c499 static __always_inline int kvm_do_msr_access(struct kvm_vcpu *vcpu, u32 msr, in kvm_do_msr_access()
554 static inline void kvm_async_pf_hash_reset(struct kvm_vcpu *vcpu) in kvm_async_pf_hash_reset()
670 u64 kvm_get_apic_base(struct kvm_vcpu *vcpu) in kvm_get_apic_base()
675 enum lapic_mode kvm_get_apic_mode(struct kvm_vcpu *vcpu) in kvm_get_apic_mode()
681 int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in kvm_set_apic_base()
769 void kvm_deliver_exception_payload(struct kvm_vcpu *vcpu, in kvm_deliver_exception_payload()
821 static void kvm_queue_exception_vmexit(struct kvm_vcpu *vcpu, unsigned int vector, in kvm_queue_exception_vmexit()
836 static void kvm_multiple_exception(struct kvm_vcpu *vcpu, in kvm_multiple_exception()
921 void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr) in kvm_queue_exception()
927 void kvm_requeue_exception(struct kvm_vcpu *vcpu, unsigned nr) in kvm_requeue_exception()
[all …]
/linux-6.12.1/include/kvm/
Darm_pmu.h79 #define kvm_vcpu_has_pmu(vcpu) \ argument
87 #define kvm_pmu_update_vcpu_events(vcpu) \ argument
109 static inline u64 kvm_pmu_get_counter_value(struct kvm_vcpu *vcpu, in kvm_pmu_get_counter_value()
114 static inline void kvm_pmu_set_counter_value(struct kvm_vcpu *vcpu, in kvm_pmu_set_counter_value()
116 static inline u64 kvm_pmu_valid_counter_mask(struct kvm_vcpu *vcpu) in kvm_pmu_valid_counter_mask()
120 static inline void kvm_pmu_vcpu_init(struct kvm_vcpu *vcpu) {} in kvm_pmu_vcpu_init()
121 static inline void kvm_pmu_vcpu_reset(struct kvm_vcpu *vcpu) {} in kvm_pmu_vcpu_reset()
122 static inline void kvm_pmu_vcpu_destroy(struct kvm_vcpu *vcpu) {} in kvm_pmu_vcpu_destroy()
123 static inline void kvm_pmu_disable_counter_mask(struct kvm_vcpu *vcpu, u64 val) {} in kvm_pmu_disable_counter_mask()
124 static inline void kvm_pmu_enable_counter_mask(struct kvm_vcpu *vcpu, u64 val) {} in kvm_pmu_enable_counter_mask()
[all …]
/linux-6.12.1/arch/x86/kvm/svm/
Dsvm.c298 int svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) in svm_set_efer()
350 static u32 svm_get_interrupt_shadow(struct kvm_vcpu *vcpu) in svm_get_interrupt_shadow()
360 static void svm_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) in svm_set_interrupt_shadow()
371 static int __svm_skip_emulated_instruction(struct kvm_vcpu *vcpu, in __svm_skip_emulated_instruction()
409 static int svm_skip_emulated_instruction(struct kvm_vcpu *vcpu) in svm_skip_emulated_instruction()
414 static int svm_update_soft_interrupt_rip(struct kvm_vcpu *vcpu) in svm_update_soft_interrupt_rip()
459 static void svm_inject_exception(struct kvm_vcpu *vcpu) in svm_inject_exception()
501 static void svm_init_osvw(struct kvm_vcpu *vcpu) in svm_init_osvw()
773 static void set_shadow_msr_intercept(struct kvm_vcpu *vcpu, u32 msr, int read, in set_shadow_msr_intercept()
799 static bool msr_write_intercepted(struct kvm_vcpu *vcpu, u32 msr) in msr_write_intercepted()
[all …]
/linux-6.12.1/arch/powerpc/include/asm/
Dkvm_booke.h26 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 …]
/linux-6.12.1/arch/arm64/kvm/
Dsys_regs.c51 static bool undef_access(struct kvm_vcpu *vcpu, struct sys_reg_params *p, in undef_access()
58 static bool bad_trap(struct kvm_vcpu *vcpu, in bad_trap()
68 static bool read_from_write_only(struct kvm_vcpu *vcpu, in read_from_write_only()
76 static bool write_to_read_only(struct kvm_vcpu *vcpu, in write_to_read_only()
138 u64 vcpu_read_sys_reg(const struct kvm_vcpu *vcpu, int reg) in vcpu_read_sys_reg()
182 void vcpu_write_sys_reg(struct kvm_vcpu *vcpu, u64 val, int reg) in vcpu_write_sys_reg()
253 static u32 get_ccsidr(struct kvm_vcpu *vcpu, u32 csselr) in get_ccsidr()
288 static int set_ccsidr(struct kvm_vcpu *vcpu, u32 csselr, u32 val) in set_ccsidr()
317 static bool access_rw(struct kvm_vcpu *vcpu, in access_rw()
332 static bool access_dcsw(struct kvm_vcpu *vcpu, in access_dcsw()
[all …]
Dpmu-emul.c33 static struct kvm_pmc *kvm_vcpu_idx_to_pmc(struct kvm_vcpu *vcpu, int cnt_idx) in kvm_vcpu_idx_to_pmc()
84 struct kvm_vcpu *vcpu = kvm_pmc_to_vcpu(pmc); in kvm_pmc_is_64bit() local
116 struct kvm_vcpu *vcpu = kvm_pmc_to_vcpu(pmc); in kvm_pmu_get_pmc_value() local
141 u64 kvm_pmu_get_counter_value(struct kvm_vcpu *vcpu, u64 select_idx) in kvm_pmu_get_counter_value()
151 struct kvm_vcpu *vcpu = kvm_pmc_to_vcpu(pmc); in kvm_pmu_set_pmc_value() local
182 void kvm_pmu_set_counter_value(struct kvm_vcpu *vcpu, u64 select_idx, u64 val) in kvm_pmu_set_counter_value()
211 struct kvm_vcpu *vcpu = kvm_pmc_to_vcpu(pmc); in kvm_pmu_stop_counter() local
231 void kvm_pmu_vcpu_init(struct kvm_vcpu *vcpu) in kvm_pmu_vcpu_init()
245 void kvm_pmu_vcpu_reset(struct kvm_vcpu *vcpu) in kvm_pmu_vcpu_reset()
259 void kvm_pmu_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_pmu_vcpu_destroy()
[all …]
/linux-6.12.1/arch/mips/kvm/
Dvz.c84 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 …]
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h43 static inline void __fpsimd_save_fpexc32(struct kvm_vcpu *vcpu) in __fpsimd_save_fpexc32()
51 static inline void __activate_traps_fpsimd32(struct kvm_vcpu *vcpu) in __activate_traps_fpsimd32()
68 #define compute_clr_set(vcpu, reg, clr, set) \ argument
101 #define compute_undef_clr_set(vcpu, kvm, reg, clr, set) \ argument
108 #define update_fgt_traps_cs(hctxt, vcpu, kvm, reg, clr, set) \ argument
128 #define update_fgt_traps(hctxt, vcpu, kvm, reg) \ argument
150 static inline void __activate_traps_hfgxtr(struct kvm_vcpu *vcpu) in __activate_traps_hfgxtr()
178 #define __deactivate_fgt(htcxt, vcpu, kvm, reg) \ argument
186 static inline void __deactivate_traps_hfgxtr(struct kvm_vcpu *vcpu) in __deactivate_traps_hfgxtr()
207 static inline void __activate_traps_common(struct kvm_vcpu *vcpu) in __activate_traps_common()
[all …]
/linux-6.12.1/arch/s390/kvm/
Dintercept.c25 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 …]
Dpriv.c32 static int handle_ri(struct kvm_vcpu *vcpu) in handle_ri()
45 int kvm_s390_handle_aa(struct kvm_vcpu *vcpu) in kvm_s390_handle_aa()
53 static int handle_gs(struct kvm_vcpu *vcpu) in handle_gs()
73 int kvm_s390_handle_e3(struct kvm_vcpu *vcpu) in kvm_s390_handle_e3()
83 static int handle_set_clock(struct kvm_vcpu *vcpu) in handle_set_clock()
122 static int handle_set_prefix(struct kvm_vcpu *vcpu) in handle_set_prefix()
160 static int handle_store_prefix(struct kvm_vcpu *vcpu) in handle_store_prefix()
190 static int handle_store_cpu_address(struct kvm_vcpu *vcpu) in handle_store_cpu_address()
216 int kvm_s390_skey_check_enable(struct kvm_vcpu *vcpu) in kvm_s390_skey_check_enable()
240 static int try_handle_skey(struct kvm_vcpu *vcpu) in try_handle_skey()
[all …]
/linux-6.12.1/arch/x86/kvm/vmx/
Dvmx.c399 static void vmx_update_fb_clear_dis(struct kvm_vcpu *vcpu, struct vcpu_vmx *vmx) in vmx_update_fb_clear_dis()
537 static int hv_enable_l2_tlb_flush(struct kvm_vcpu *vcpu) in hv_enable_l2_tlb_flush()
668 static inline bool cpu_need_virtualize_apic_accesses(struct kvm_vcpu *vcpu) in cpu_need_virtualize_apic_accesses()
868 void vmx_update_exception_bitmap(struct kvm_vcpu *vcpu) in vmx_update_exception_bitmap()
1186 static inline bool pt_output_base_valid(struct kvm_vcpu *vcpu, u64 base) in pt_output_base_valid()
1282 void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) in vmx_prepare_switch_to_guest()
1413 static void grow_ple_window(struct kvm_vcpu *vcpu) in grow_ple_window()
1429 static void shrink_ple_window(struct kvm_vcpu *vcpu) in shrink_ple_window()
1445 void vmx_vcpu_load_vmcs(struct kvm_vcpu *vcpu, int cpu, in vmx_vcpu_load_vmcs()
1516 void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
[all …]
Dnested.c153 static int nested_vmx_succeed(struct kvm_vcpu *vcpu) in nested_vmx_succeed()
161 static int nested_vmx_failInvalid(struct kvm_vcpu *vcpu) in nested_vmx_failInvalid()
170 static int nested_vmx_failValid(struct kvm_vcpu *vcpu, in nested_vmx_failValid()
189 static int nested_vmx_fail(struct kvm_vcpu *vcpu, u32 vm_instruction_error) in nested_vmx_fail()
204 static void nested_vmx_abort(struct kvm_vcpu *vcpu, u32 indicator) in nested_vmx_abort()
228 static inline void nested_release_evmcs(struct kvm_vcpu *vcpu) in nested_release_evmcs()
249 static bool nested_evmcs_handle_vmclear(struct kvm_vcpu *vcpu, gpa_t vmptr) in nested_evmcs_handle_vmclear()
295 static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs) in vmx_switch_vmcs()
324 static void free_nested(struct kvm_vcpu *vcpu) in free_nested()
373 void nested_vmx_free_vcpu(struct kvm_vcpu *vcpu) in nested_vmx_free_vcpu()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dsys_regs.c35 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()
108 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 …]
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/
Dswitch.c49 static u64 __compute_hcr(struct kvm_vcpu *vcpu) in __compute_hcr()
68 static void __activate_cptr_traps(struct kvm_vcpu *vcpu) in __activate_cptr_traps()
139 static void __activate_traps(struct kvm_vcpu *vcpu) in __activate_traps()
171 static void __deactivate_traps(struct kvm_vcpu *vcpu) in __deactivate_traps()
224 static void __vcpu_load_activate_traps(struct kvm_vcpu *vcpu) in __vcpu_load_activate_traps()
233 static void __vcpu_put_deactivate_traps(struct kvm_vcpu *vcpu) in __vcpu_put_deactivate_traps()
242 void kvm_vcpu_load_vhe(struct kvm_vcpu *vcpu) in kvm_vcpu_load_vhe()
251 void kvm_vcpu_put_vhe(struct kvm_vcpu *vcpu) in kvm_vcpu_put_vhe()
259 static bool kvm_hyp_handle_eret(struct kvm_vcpu *vcpu, u64 *exit_code) in kvm_hyp_handle_eret()
312 static void kvm_hyp_save_fpsimd_host(struct kvm_vcpu *vcpu) in kvm_hyp_save_fpsimd_host()
[all …]

12345678910>>...16