Home
last modified time | relevance | path

Searched defs:vcpu (Results 101 – 125 of 384) sorted by relevance

12345678910>>...16

/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_entry.c10 static void load_spr_state(struct kvm_vcpu *vcpu, in load_spr_state()
58 static void store_spr_state(struct kvm_vcpu *vcpu) in store_spr_state()
86 bool load_vcpu_state(struct kvm_vcpu *vcpu, in load_vcpu_state()
117 void store_vcpu_state(struct kvm_vcpu *vcpu) in store_vcpu_state()
156 void restore_p9_host_os_sprs(struct kvm_vcpu *vcpu, in restore_p9_host_os_sprs()
220 void accumulate_time(struct kvm_vcpu *vcpu, struct kvmhv_tb_accumulator *next) in accumulate_time()
301 static void switch_mmu_to_guest_radix(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_radix()
326 static void switch_mmu_to_guest_hpt(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_hpt()
391 static void save_clear_guest_mmu(struct kvm *kvm, struct kvm_vcpu *vcpu) in save_clear_guest_mmu()
494 unsigned long kvmppc_msr_hard_disable_set_facilities(struct kvm_vcpu *vcpu, unsigned long msr) in kvmppc_msr_hard_disable_set_facilities()
[all …]
H A Demulate.c26 void kvmppc_emulate_dec(struct kvm_vcpu *vcpu) in kvmppc_emulate_dec()
63 u32 kvmppc_get_dec(struct kvm_vcpu *vcpu, u64 tb) in kvmppc_get_dec()
75 static int kvmppc_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) in kvmppc_emulate_mtspr()
128 static int kvmppc_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt) in kvmppc_emulate_mfspr()
194 int kvmppc_emulate_instruction(struct kvm_vcpu *vcpu) in kvmppc_emulate_instruction()
H A Demulate_loadstore.c28 static bool kvmppc_check_fp_disabled(struct kvm_vcpu *vcpu) in kvmppc_check_fp_disabled()
40 static bool kvmppc_check_vsx_disabled(struct kvm_vcpu *vcpu) in kvmppc_check_vsx_disabled()
52 static bool kvmppc_check_altivec_disabled(struct kvm_vcpu *vcpu) in kvmppc_check_altivec_disabled()
72 int kvmppc_emulate_loadstore(struct kvm_vcpu *vcpu) in kvmppc_emulate_loadstore()
H A Dbook3s_xive.c686 void kvmppc_xive_push_vcpu(struct kvm_vcpu *vcpu) in kvmppc_xive_push_vcpu()
842 struct kvm_vcpu *vcpu = data; in xive_esc_irq() local
975 struct kvm_vcpu *vcpu; in xive_check_provisioning() local
1007 struct kvm_vcpu *vcpu; in xive_inc_q_pending() local
1047 struct kvm_vcpu *vcpu; in kvmppc_xive_select_target() local
1479 u64 kvmppc_xive_get_icp(struct kvm_vcpu *vcpu) in kvmppc_xive_get_icp()
1904 struct kvm_vcpu *vcpu, u32 cpu) in kvmppc_xive_connect_vcpu()
2126 struct kvm_vcpu *vcpu = NULL; in xive_pre_save_scan() local
2308 struct kvm_vcpu *vcpu = NULL; in xive_check_delayed_irq() local
2645 struct kvm_vcpu *vcpu; in kvmppc_xive_release() local
[all …]
H A Dbook3s_hv.h46 #define start_timing(vcpu, next) accumulate_time(vcpu, next) argument
47 #define end_timing(vcpu) accumulate_time(vcpu, NULL) argument
49 #define accumulate_time(vcpu, next) do {} while (0) argument
50 #define start_timing(vcpu, next) do {} while (0) argument
51 #define end_timing(vcpu) do {} while (0) argument
54 static inline void __kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 val) in __kvmppc_set_msr_hv()
59 static inline u64 __kvmppc_get_msr_hv(struct kvm_vcpu *vcpu) in __kvmppc_get_msr_hv()
H A Dbook3s_hv_nested.c103 static void save_hv_return_state(struct kvm_vcpu *vcpu, in save_hv_return_state()
168 void kvmhv_restore_hv_return_state(struct kvm_vcpu *vcpu, in kvmhv_restore_hv_return_state()
253 static void load_l2_hv_regs(struct kvm_vcpu *vcpu, in load_l2_hv_regs()
289 long kvmhv_enter_nested_guest(struct kvm_vcpu *vcpu) in kvmhv_enter_nested_guest()
530 long kvmhv_set_partition_table(struct kvm_vcpu *vcpu) in kvmhv_set_partition_table()
558 long kvmhv_copy_tofrom_guest_nested(struct kvm_vcpu *vcpu) in kvmhv_copy_tofrom_guest_nested()
1130 static void kvmhv_emulate_tlbie_lpid(struct kvm_vcpu *vcpu, in kvmhv_emulate_tlbie_lpid()
1239 long kvmhv_do_nested_tlbie(struct kvm_vcpu *vcpu) in kvmhv_do_nested_tlbie()
1358 static int kvmhv_translate_addr_nested(struct kvm_vcpu *vcpu, in kvmhv_translate_addr_nested()
1420 static long kvmhv_handle_nested_set_rc(struct kvm_vcpu *vcpu, in kvmhv_handle_nested_set_rc()
[all …]
H A Dbook3s_hv_rm_xics.c54 static inline void icp_send_hcore_msg(int hcore, struct kvm_vcpu *vcpu) in icp_send_hcore_msg()
66 static inline void icp_send_hcore_msg(int hcore, struct kvm_vcpu *vcpu) { } in icp_send_hcore_msg()
127 static void icp_rm_set_vcpu_irq(struct kvm_vcpu *vcpu, in icp_rm_set_vcpu_irq()
167 static void icp_rm_clr_vcpu_irq(struct kvm_vcpu *vcpu) in icp_rm_clr_vcpu_irq()
482 unsigned long xics_rm_h_xirr_x(struct kvm_vcpu *vcpu) in xics_rm_h_xirr_x()
488 unsigned long xics_rm_h_xirr(struct kvm_vcpu *vcpu) in xics_rm_h_xirr()
526 int xics_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, in xics_rm_h_ipi()
613 int xics_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) in xics_rm_h_cppr()
675 static int ics_rm_eoi(struct kvm_vcpu *vcpu, u32 irq) in ics_rm_eoi()
734 int xics_rm_h_eoi(struct kvm_vcpu *vcpu, unsigned long xirr) in xics_rm_h_eoi()
[all …]
/openbmc/linux/arch/x86/kvm/vmx/
H A Dposted_intr.c34 static inline struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu) in vcpu_to_pi_desc()
53 void vmx_vcpu_pi_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_pi_load()
146 static void pi_enable_wakeup_handler(struct kvm_vcpu *vcpu) in pi_enable_wakeup_handler()
183 static bool vmx_needs_pi_wakeup(struct kvm_vcpu *vcpu) in vmx_needs_pi_wakeup()
196 void vmx_vcpu_pi_put(struct kvm_vcpu *vcpu) in vmx_vcpu_pi_put()
240 bool pi_has_pending_interrupt(struct kvm_vcpu *vcpu) in pi_has_pending_interrupt()
278 struct kvm_vcpu *vcpu; in vmx_pi_update_irte() local
H A Dhyperv.c324 u64 nested_get_evmptr(struct kvm_vcpu *vcpu) in nested_get_evmptr()
337 uint16_t nested_get_evmcs_version(struct kvm_vcpu *vcpu) in nested_get_evmcs_version()
402 static bool evmcs_has_perf_global_ctrl(struct kvm_vcpu *vcpu) in evmcs_has_perf_global_ctrl()
419 void nested_evmcs_filter_control_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) in nested_evmcs_filter_control_msr()
506 int nested_enable_evmcs(struct kvm_vcpu *vcpu, in nested_enable_evmcs()
519 bool nested_evmcs_l2_tlb_flush_enabled(struct kvm_vcpu *vcpu) in nested_evmcs_l2_tlb_flush_enabled()
534 void vmx_hv_inject_synthetic_vmexit_post_tlb_flush(struct kvm_vcpu *vcpu) in vmx_hv_inject_synthetic_vmexit_post_tlb_flush()
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util_base.h149 #define kvm_for_each_vcpu(vm, i, vcpu) \ argument
295 #define __vcpu_ioctl(vcpu, cmd, arg) \ argument
301 #define _vcpu_ioctl(vcpu, cmd, name, arg) \ argument
308 #define vcpu_ioctl(vcpu, cmd, arg) \ argument
467 static inline int __vcpu_run(struct kvm_vcpu *vcpu) in __vcpu_run()
483 static inline void vcpu_guest_debug_set(struct kvm_vcpu *vcpu, in vcpu_guest_debug_set()
489 static inline void vcpu_mp_state_get(struct kvm_vcpu *vcpu, in vcpu_mp_state_get()
494 static inline void vcpu_mp_state_set(struct kvm_vcpu *vcpu, in vcpu_mp_state_set()
557 static inline void vcpu_events_get(struct kvm_vcpu *vcpu, in vcpu_events_get()
562 static inline void vcpu_events_set(struct kvm_vcpu *vcpu, in vcpu_events_set()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Daarch32_id_regs.c52 static void test_guest_raz(struct kvm_vcpu *vcpu) in test_guest_raz()
92 static void test_user_raz_wi(struct kvm_vcpu *vcpu) in test_user_raz_wi()
121 static void test_user_raz_invariant(struct kvm_vcpu *vcpu) in test_user_raz_invariant()
143 static bool vcpu_aarch64_only(struct kvm_vcpu *vcpu) in vcpu_aarch64_only()
155 struct kvm_vcpu *vcpu; in main() local
/openbmc/qemu/target/i386/hvf/
H A Dvmx.h38 static inline uint64_t rreg(hv_vcpuid_t vcpu, hv_x86_reg_t reg) in rreg()
50 static inline void wreg(hv_vcpuid_t vcpu, hv_x86_reg_t reg, uint64_t v) in wreg()
58 static inline uint64_t rvmcs(hv_vcpuid_t vcpu, uint32_t field) in rvmcs()
68 static inline void wvmcs(hv_vcpuid_t vcpu, uint32_t field, uint64_t v) in wvmcs()
91 static void enter_long_mode(hv_vcpuid_t vcpu, uint64_t cr0, uint64_t efer) in enter_long_mode()
108 static void exit_long_mode(hv_vcpuid_t vcpu, uint64_t cr0, uint64_t efer) in exit_long_mode()
119 static inline void macvm_set_cr0(hv_vcpuid_t vcpu, uint64_t cr0) in macvm_set_cr0()
164 static inline void macvm_set_cr4(hv_vcpuid_t vcpu, uint64_t cr4) in macvm_set_cr4()
/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_vector.c19 void kvm_riscv_vcpu_vector_reset(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_vector_reset()
73 int kvm_riscv_vcpu_alloc_vector_context(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_alloc_vector_context()
87 void kvm_riscv_vcpu_free_vector_context(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_free_vector_context()
94 static int kvm_riscv_vcpu_vreg_addr(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_vreg_addr()
134 int kvm_riscv_vcpu_get_reg_vector(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_get_reg_vector()
160 int kvm_riscv_vcpu_set_reg_vector(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_set_reg_vector()
H A Dvcpu_pmu.c199 static int pmu_ctr_read(struct kvm_vcpu *vcpu, unsigned long cidx, in pmu_ctr_read()
263 int kvm_riscv_vcpu_pmu_incr_fw(struct kvm_vcpu *vcpu, unsigned long fid) in kvm_riscv_vcpu_pmu_incr_fw()
278 int kvm_riscv_vcpu_pmu_read_hpm(struct kvm_vcpu *vcpu, unsigned int csr_num, in kvm_riscv_vcpu_pmu_read_hpm()
313 int kvm_riscv_vcpu_pmu_num_ctrs(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_pmu_num_ctrs()
323 int kvm_riscv_vcpu_pmu_ctr_info(struct kvm_vcpu *vcpu, unsigned long cidx, in kvm_riscv_vcpu_pmu_ctr_info()
338 int kvm_riscv_vcpu_pmu_ctr_start(struct kvm_vcpu *vcpu, unsigned long ctr_base, in kvm_riscv_vcpu_pmu_ctr_start()
394 int kvm_riscv_vcpu_pmu_ctr_stop(struct kvm_vcpu *vcpu, unsigned long ctr_base, in kvm_riscv_vcpu_pmu_ctr_stop()
533 int kvm_riscv_vcpu_pmu_ctr_read(struct kvm_vcpu *vcpu, unsigned long cidx, in kvm_riscv_vcpu_pmu_ctr_read()
545 void kvm_riscv_vcpu_pmu_init(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_pmu_init()
611 void kvm_riscv_vcpu_pmu_deinit(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_pmu_deinit()
[all …]
H A Dvcpu_sbi_hsm.c15 static int kvm_sbi_hsm_vcpu_start(struct kvm_vcpu *vcpu) in kvm_sbi_hsm_vcpu_start()
42 static int kvm_sbi_hsm_vcpu_stop(struct kvm_vcpu *vcpu) in kvm_sbi_hsm_vcpu_stop()
52 static int kvm_sbi_hsm_vcpu_get_status(struct kvm_vcpu *vcpu) in kvm_sbi_hsm_vcpu_get_status()
69 static int kvm_sbi_ext_hsm_handler(struct kvm_vcpu *vcpu, struct kvm_run *run, in kvm_sbi_ext_hsm_handler()
H A Daia_device.c50 struct kvm_vcpu *vcpu; in aia_create() local
193 struct kvm_vcpu *vcpu; in aia_imsic_addr() local
256 struct kvm_vcpu *vcpu; in aia_init() local
516 int kvm_riscv_vcpu_aia_update(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_aia_update()
526 void kvm_riscv_vcpu_aia_reset(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_aia_reset()
544 int kvm_riscv_vcpu_aia_init(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_aia_init()
565 void kvm_riscv_vcpu_aia_deinit(struct kvm_vcpu *vcpu) in kvm_riscv_vcpu_aia_deinit()
579 struct kvm_vcpu *vcpu; in kvm_riscv_aia_inject_msi_by_id() local
600 struct kvm_vcpu *vcpu; in kvm_riscv_aia_inject_msi() local
H A Dvcpu_exit.c13 static int gstage_page_fault(struct kvm_vcpu *vcpu, struct kvm_run *run, in gstage_page_fault()
59 unsigned long kvm_riscv_vcpu_unpriv_read(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_unpriv_read()
135 void kvm_riscv_vcpu_trap_redirect(struct kvm_vcpu *vcpu, in kvm_riscv_vcpu_trap_redirect()
172 int kvm_riscv_vcpu_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, in kvm_riscv_vcpu_exit()
/openbmc/linux/arch/x86/kvm/
H A Dpmu.c454 void kvm_pmu_handle_event(struct kvm_vcpu *vcpu) in kvm_pmu_handle_event()
519 int kvm_pmu_rdpmc(struct kvm_vcpu *vcpu, unsigned idx, u64 *data) in kvm_pmu_rdpmc()
545 void kvm_pmu_deliver_pmi(struct kvm_vcpu *vcpu) in kvm_pmu_deliver_pmi()
553 bool kvm_pmu_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) in kvm_pmu_is_valid_msr()
660 void kvm_pmu_reset(struct kvm_vcpu *vcpu) in kvm_pmu_reset()
692 void kvm_pmu_refresh(struct kvm_vcpu *vcpu) in kvm_pmu_refresh()
735 void kvm_pmu_init(struct kvm_vcpu *vcpu) in kvm_pmu_init()
747 void kvm_pmu_cleanup(struct kvm_vcpu *vcpu) in kvm_pmu_cleanup()
771 void kvm_pmu_destroy(struct kvm_vcpu *vcpu) in kvm_pmu_destroy()
809 void kvm_pmu_trigger_event(struct kvm_vcpu *vcpu, u64 perf_hw_id) in kvm_pmu_trigger_event()
[all …]
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Ddebug-sr.c82 void __debug_save_host_buffers_nvhe(struct kvm_vcpu *vcpu) in __debug_save_host_buffers_nvhe()
92 void __debug_switch_to_guest(struct kvm_vcpu *vcpu) in __debug_switch_to_guest()
97 void __debug_restore_host_buffers_nvhe(struct kvm_vcpu *vcpu) in __debug_restore_host_buffers_nvhe()
105 void __debug_switch_to_host(struct kvm_vcpu *vcpu) in __debug_switch_to_host()
/openbmc/linux/tools/testing/selftests/kvm/s390x/
H A Dsync_regs_test.c76 void test_read_invalid(struct kvm_vcpu *vcpu) in test_read_invalid()
97 void test_set_invalid(struct kvm_vcpu *vcpu) in test_set_invalid()
118 void test_req_and_verify_all_valid_regs(struct kvm_vcpu *vcpu) in test_req_and_verify_all_valid_regs()
144 void test_set_and_verify_various_reg_values(struct kvm_vcpu *vcpu) in test_set_and_verify_various_reg_values()
183 void test_clear_kvm_dirty_regs_bits(struct kvm_vcpu *vcpu) in test_clear_kvm_dirty_regs_bits()
219 struct kvm_vcpu *vcpu; in main() local
/openbmc/linux/arch/x86/kvm/mmu/
H A Dmmu.c2146 struct kvm_vcpu *vcpu, in kvm_mmu_find_shadow_page()
2267 struct kvm_vcpu *vcpu, in __kvm_mmu_get_shadow_page()
2361 struct kvm_vcpu *vcpu, hpa_t root, in shadow_walk_init_using_root()
2390 struct kvm_vcpu *vcpu, u64 addr) in shadow_walk_init()
3993 void kvm_mmu_sync_roots(struct kvm_vcpu *vcpu) in kvm_mmu_sync_roots()
4210 static u32 alloc_apf_token(struct kvm_vcpu *vcpu) in alloc_apf_token()
5404 void kvm_init_mmu(struct kvm_vcpu *vcpu) in kvm_init_mmu()
5454 int kvm_mmu_load(struct kvm_vcpu *vcpu) in kvm_mmu_load()
5487 void kvm_mmu_unload(struct kvm_vcpu *vcpu) in kvm_mmu_unload()
6019 int kvm_mmu_create(struct kvm_vcpu *vcpu) in kvm_mmu_create()
[all …]
/openbmc/linux/arch/arm64/kvm/vgic/
H A Dvgic-init.c73 struct kvm_vcpu *vcpu; in kvm_vgic_create() local
194 int kvm_vgic_vcpu_init(struct kvm_vcpu *vcpu) in kvm_vgic_vcpu_init()
245 static void kvm_vgic_vcpu_enable(struct kvm_vcpu *vcpu) in kvm_vgic_vcpu_enable()
265 struct kvm_vcpu *vcpu; in vgic_init() local
371 static void __kvm_vgic_vcpu_destroy(struct kvm_vcpu *vcpu) in __kvm_vgic_vcpu_destroy()
388 void kvm_vgic_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_vgic_vcpu_destroy()
399 struct kvm_vcpu *vcpu; in kvm_vgic_destroy() local
/openbmc/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_pmu.h56 #define vcpu_to_pmu(vcpu) (&(vcpu)->arch.pmu_context) argument
96 static inline int kvm_riscv_vcpu_pmu_read_legacy(struct kvm_vcpu *vcpu, unsigned int csr_num, in kvm_riscv_vcpu_pmu_read_legacy()
111 static inline void kvm_riscv_vcpu_pmu_init(struct kvm_vcpu *vcpu) {} in kvm_riscv_vcpu_pmu_init()
112 static inline int kvm_riscv_vcpu_pmu_incr_fw(struct kvm_vcpu *vcpu, unsigned long fid) in kvm_riscv_vcpu_pmu_incr_fw()
117 static inline void kvm_riscv_vcpu_pmu_deinit(struct kvm_vcpu *vcpu) {} in kvm_riscv_vcpu_pmu_deinit()
118 static inline void kvm_riscv_vcpu_pmu_reset(struct kvm_vcpu *vcpu) {} in kvm_riscv_vcpu_pmu_reset()
/openbmc/linux/arch/arm64/kvm/
H A Dsys_regs.h122 static inline bool ignore_write(struct kvm_vcpu *vcpu, in ignore_write()
128 static inline bool read_zero(struct kvm_vcpu *vcpu, in read_zero()
136 static inline u64 reset_unknown(struct kvm_vcpu *vcpu, in reset_unknown()
145 static inline u64 reset_val(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_val()
153 static inline unsigned int sysreg_visibility(const struct kvm_vcpu *vcpu, in sysreg_visibility()
162 static inline bool sysreg_hidden(const struct kvm_vcpu *vcpu, in sysreg_hidden()
168 static inline bool sysreg_hidden_user(const struct kvm_vcpu *vcpu, in sysreg_hidden_user()
177 static inline bool sysreg_visible_as_raz(const struct kvm_vcpu *vcpu, in sysreg_visible_as_raz()
183 static inline bool sysreg_user_write_ignore(const struct kvm_vcpu *vcpu, in sysreg_user_write_ignore()
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c526 static void vcpu_setup(struct kvm_vm *vm, struct kvm_vcpu *vcpu) in vcpu_setup()
571 struct kvm_vcpu *vcpu; in vm_arch_vcpu_add() local
612 struct kvm_vcpu *vcpu = __vm_vcpu_add(vm, vcpu_id); in vm_arch_vcpu_recreate() local
619 void vcpu_arch_free(struct kvm_vcpu *vcpu) in vcpu_arch_free()
774 void vcpu_set_or_clear_cpuid_feature(struct kvm_vcpu *vcpu, in vcpu_set_or_clear_cpuid_feature()
792 uint64_t vcpu_get_msr(struct kvm_vcpu *vcpu, uint64_t msr_index) in vcpu_get_msr()
938 static void vcpu_save_xsave_state(struct kvm_vcpu *vcpu, in vcpu_save_xsave_state()
952 struct kvm_x86_state *vcpu_save_state(struct kvm_vcpu *vcpu) in vcpu_save_state()
1109 void vcpu_init_descriptor_tables(struct kvm_vcpu *vcpu) in vcpu_init_descriptor_tables()
1132 void assert_on_unhandled_exception(struct kvm_vcpu *vcpu) in assert_on_unhandled_exception()
[all …]

12345678910>>...16