Home
last modified time | relevance | path

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

12

/arch/s390/kvm/
Dinterrupt.c20 static int psw_extint_disabled(struct kvm_vcpu *vcpu) in psw_extint_disabled()
25 static int psw_interrupts_disabled(struct kvm_vcpu *vcpu) in psw_interrupts_disabled()
34 static int __interrupt_is_deliverable(struct kvm_vcpu *vcpu, in __interrupt_is_deliverable()
67 static void __set_cpu_idle(struct kvm_vcpu *vcpu) in __set_cpu_idle()
74 static void __unset_cpu_idle(struct kvm_vcpu *vcpu) in __unset_cpu_idle()
81 static void __reset_intercept_indicators(struct kvm_vcpu *vcpu) in __reset_intercept_indicators()
89 static void __set_cpuflag(struct kvm_vcpu *vcpu, u32 flag) in __set_cpuflag()
94 static void __set_intercept_indicator(struct kvm_vcpu *vcpu, in __set_intercept_indicator()
114 static void __do_deliver_interrupt(struct kvm_vcpu *vcpu, in __do_deliver_interrupt()
257 static int __try_deliver_ckc_interrupt(struct kvm_vcpu *vcpu) in __try_deliver_ckc_interrupt()
[all …]
Dkvm-s390.c195 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_destroy()
229 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_init()
234 void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_uninit()
239 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in kvm_arch_vcpu_load()
248 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_put()
256 static void kvm_s390_vcpu_initial_reset(struct kvm_vcpu *vcpu) in kvm_s390_vcpu_initial_reset()
277 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_setup()
296 struct kvm_vcpu *vcpu = kzalloc(sizeof(struct kvm_vcpu), GFP_KERNEL); in kvm_arch_vcpu_create() local
337 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_runnable()
344 static int kvm_arch_vcpu_ioctl_initial_reset(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_ioctl_initial_reset()
[all …]
Dpriv.c23 static int handle_set_prefix(struct kvm_vcpu *vcpu) in handle_set_prefix()
66 static int handle_store_prefix(struct kvm_vcpu *vcpu) in handle_store_prefix()
98 static int handle_store_cpu_address(struct kvm_vcpu *vcpu) in handle_store_cpu_address()
126 static int handle_skey(struct kvm_vcpu *vcpu) in handle_skey()
134 static int handle_stsch(struct kvm_vcpu *vcpu) in handle_stsch()
144 static int handle_chsc(struct kvm_vcpu *vcpu) in handle_chsc()
154 static int handle_stfl(struct kvm_vcpu *vcpu) in handle_stfl()
173 static int handle_stidp(struct kvm_vcpu *vcpu) in handle_stidp()
201 static void handle_stsi_3_2_2(struct kvm_vcpu *vcpu, struct sysinfo_3_2_2 *mem) in handle_stsi_3_2_2()
232 static int handle_stsi(struct kvm_vcpu *vcpu) in handle_stsi()
[all …]
Dintercept.c23 static int handle_lctlg(struct kvm_vcpu *vcpu) in handle_lctlg()
64 static int handle_lctl(struct kvm_vcpu *vcpu) in handle_lctl()
111 static int handle_noop(struct kvm_vcpu *vcpu) in handle_noop()
129 static int handle_stop(struct kvm_vcpu *vcpu) in handle_stop()
154 static int handle_validity(struct kvm_vcpu *vcpu) in handle_validity()
170 static int handle_instruction(struct kvm_vcpu *vcpu) in handle_instruction()
181 static int handle_prog(struct kvm_vcpu *vcpu) in handle_prog()
187 static int handle_instruction_and_prog(struct kvm_vcpu *vcpu) in handle_instruction_and_prog()
214 int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu) in kvm_handle_sie_intercept()
Dgaccess.h20 static inline void __user *__guestaddr_to_user(struct kvm_vcpu *vcpu, in __guestaddr_to_user()
40 static inline int get_guest_u64(struct kvm_vcpu *vcpu, unsigned long guestaddr, in get_guest_u64()
53 static inline int get_guest_u32(struct kvm_vcpu *vcpu, unsigned long guestaddr, in get_guest_u32()
66 static inline int get_guest_u16(struct kvm_vcpu *vcpu, unsigned long guestaddr, in get_guest_u16()
79 static inline int get_guest_u8(struct kvm_vcpu *vcpu, unsigned long guestaddr, in get_guest_u8()
90 static inline int put_guest_u64(struct kvm_vcpu *vcpu, unsigned long guestaddr, in put_guest_u64()
103 static inline int put_guest_u32(struct kvm_vcpu *vcpu, unsigned long guestaddr, in put_guest_u32()
116 static inline int put_guest_u16(struct kvm_vcpu *vcpu, unsigned long guestaddr, in put_guest_u16()
129 static inline int put_guest_u8(struct kvm_vcpu *vcpu, unsigned long guestaddr, in put_guest_u8()
141 static inline int __copy_to_guest_slow(struct kvm_vcpu *vcpu, in __copy_to_guest_slow()
[all …]
Ddiag.c18 static int __diag_time_slice_end(struct kvm_vcpu *vcpu) in __diag_time_slice_end()
28 static int __diag_ipl_functions(struct kvm_vcpu *vcpu) in __diag_ipl_functions()
55 int kvm_s390_handle_diag(struct kvm_vcpu *vcpu) in kvm_s390_handle_diag()
/arch/powerpc/kvm/
Dtiming.h32 static inline void kvmppc_set_exit_type(struct kvm_vcpu *vcpu, int type) in kvmppc_set_exit_type()
39 static inline void kvmppc_init_timing_stats(struct kvm_vcpu *vcpu) {} in kvmppc_init_timing_stats()
40 static inline void kvmppc_update_timing_stats(struct kvm_vcpu *vcpu) {} in kvmppc_update_timing_stats()
41 static inline void kvmppc_create_vcpu_debugfs(struct kvm_vcpu *vcpu, in kvmppc_create_vcpu_debugfs()
43 static inline void kvmppc_remove_vcpu_debugfs(struct kvm_vcpu *vcpu) {} in kvmppc_remove_vcpu_debugfs()
44 static inline void kvmppc_set_exit_type(struct kvm_vcpu *vcpu, int type) {} in kvmppc_set_exit_type()
48 static inline void kvmppc_account_exit_stat(struct kvm_vcpu *vcpu, int type) in kvmppc_account_exit_stat()
96 static inline void kvmppc_account_exit(struct kvm_vcpu *vcpu, int type) in kvmppc_account_exit()
Dbooke.c62 void kvmppc_dump_vcpu(struct kvm_vcpu *vcpu) in kvmppc_dump_vcpu()
81 static void kvmppc_booke_queue_irqprio(struct kvm_vcpu *vcpu, in kvmppc_booke_queue_irqprio()
87 void kvmppc_core_queue_program(struct kvm_vcpu *vcpu) in kvmppc_core_queue_program()
92 void kvmppc_core_queue_dec(struct kvm_vcpu *vcpu) in kvmppc_core_queue_dec()
97 int kvmppc_core_pending_dec(struct kvm_vcpu *vcpu) in kvmppc_core_pending_dec()
102 void kvmppc_core_queue_external(struct kvm_vcpu *vcpu, in kvmppc_core_queue_external()
109 static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu, in kvmppc_booke_irqprio_deliver()
162 void kvmppc_core_deliver_interrupts(struct kvm_vcpu *vcpu) in kvmppc_core_deliver_interrupts()
183 int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, in kvmppc_handle_exit()
415 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_setup()
[all …]
Dpowerpc.c50 int kvmppc_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu) in kvmppc_emulate_mmio()
175 struct kvm_vcpu *vcpu; in kvm_arch_vcpu_create() local
181 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_free()
187 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_destroy()
192 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) in kvm_cpu_has_pending_timer()
199 struct kvm_vcpu *vcpu = (struct kvm_vcpu *)data; in kvmppc_decrementer_func() local
209 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_init()
217 void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_uninit()
222 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in kvm_arch_vcpu_load()
230 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_put()
[all …]
D44x.c42 void kvmppc_core_load_host_debugstate(struct kvm_vcpu *vcpu) in kvmppc_core_load_host_debugstate()
56 void kvmppc_core_load_guest_debugstate(struct kvm_vcpu *vcpu) in kvmppc_core_load_guest_debugstate()
97 void kvmppc_core_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in kvmppc_core_vcpu_load()
102 void kvmppc_core_vcpu_put(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_put()
119 int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_setup()
149 int kvmppc_core_vcpu_translate(struct kvm_vcpu *vcpu, in kvmppc_core_vcpu_translate()
181 struct kvm_vcpu *vcpu; in kvmppc_core_vcpu_create() local
203 void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu) in kvmppc_core_vcpu_free()
Dtiming.c32 void kvmppc_init_timing_stats(struct kvm_vcpu *vcpu) in kvmppc_init_timing_stats()
56 static void add_exit_timing(struct kvm_vcpu *vcpu, u64 duration, int type) in add_exit_timing()
99 void kvmppc_update_timing_stats(struct kvm_vcpu *vcpu) in kvmppc_update_timing_stats()
149 struct kvm_vcpu *vcpu = m->private; in kvmppc_exit_timing_show() local
185 struct kvm_vcpu *vcpu = seqf->private; in kvmppc_exit_timing_write() local
213 void kvmppc_create_vcpu_debugfs(struct kvm_vcpu *vcpu, unsigned int id) in kvmppc_create_vcpu_debugfs()
233 void kvmppc_remove_vcpu_debugfs(struct kvm_vcpu *vcpu) in kvmppc_remove_vcpu_debugfs()
D44x_tlb.c47 void kvmppc_dump_tlbs(struct kvm_vcpu *vcpu) in kvmppc_dump_tlbs()
140 void kvmppc_44x_tlb_load(struct kvm_vcpu *vcpu) in kvmppc_44x_tlb_load()
160 void kvmppc_44x_tlb_put(struct kvm_vcpu *vcpu) in kvmppc_44x_tlb_put()
178 int kvmppc_44x_tlb_index(struct kvm_vcpu *vcpu, gva_t eaddr, unsigned int pid, in kvmppc_44x_tlb_index()
211 int kvmppc_44x_itlb_index(struct kvm_vcpu *vcpu, gva_t eaddr) in kvmppc_44x_itlb_index()
218 int kvmppc_44x_dtlb_index(struct kvm_vcpu *vcpu, gva_t eaddr) in kvmppc_44x_dtlb_index()
251 void kvmppc_core_destroy_mmu(struct kvm_vcpu *vcpu) in kvmppc_core_destroy_mmu()
272 void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 gvaddr, gpa_t gpaddr, u64 asid, in kvmppc_mmu_map()
352 static void kvmppc_44x_invalidate(struct kvm_vcpu *vcpu, in kvmppc_44x_invalidate()
365 void kvmppc_mmu_priv_switch(struct kvm_vcpu *vcpu, int usermode) in kvmppc_mmu_priv_switch()
[all …]
/arch/ia64/kvm/
Dprocess.c81 static void collect_interruption(struct kvm_vcpu *vcpu) in collect_interruption()
140 void inject_guest_interruption(struct kvm_vcpu *vcpu, u64 vec) in inject_guest_interruption()
159 static u64 vcpu_get_itir_on_fault(struct kvm_vcpu *vcpu, u64 ifa) in vcpu_get_itir_on_fault()
178 void set_ifa_itir_iha(struct kvm_vcpu *vcpu, u64 vadr, in set_ifa_itir_iha()
206 void dtlb_fault(struct kvm_vcpu *vcpu, u64 vadr) in dtlb_fault()
218 void itlb_fault(struct kvm_vcpu *vcpu, u64 vadr) in itlb_fault()
232 void nested_dtlb(struct kvm_vcpu *vcpu) in nested_dtlb()
242 void alt_dtlb(struct kvm_vcpu *vcpu, u64 vadr) in alt_dtlb()
254 void alt_itlb(struct kvm_vcpu *vcpu, u64 vadr) in alt_itlb()
263 static void _vhpt_fault(struct kvm_vcpu *vcpu, u64 vadr) in _vhpt_fault()
[all …]
Dvcpu.c95 void physical_mode_init(struct kvm_vcpu *vcpu) in physical_mode_init()
100 void switch_to_physical_rid(struct kvm_vcpu *vcpu) in switch_to_physical_rid()
116 void switch_to_virtual_rid(struct kvm_vcpu *vcpu) in switch_to_virtual_rid()
134 void switch_mm_mode(struct kvm_vcpu *vcpu, struct ia64_psr old_psr, in switch_mm_mode()
187 void check_mm_mode_switch(struct kvm_vcpu *vcpu, struct ia64_psr old_psr, in check_mm_mode_switch()
216 void prepare_if_physical_mode(struct kvm_vcpu *vcpu) in prepare_if_physical_mode()
226 void recover_if_physical_mode(struct kvm_vcpu *vcpu) in recover_if_physical_mode()
465 u64 vcpu_get_gr(struct kvm_vcpu *vcpu, unsigned long reg) in vcpu_get_gr()
476 void vcpu_set_gr(struct kvm_vcpu *vcpu, u64 reg, u64 value, int nat) in vcpu_set_gr()
778 void vcpu_get_fpreg(struct kvm_vcpu *vcpu, unsigned long reg, in vcpu_get_fpreg()
[all …]
Dkvm-ia64.c201 static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, in vcpu_find_mmio_dev()
211 static int handle_vm_error(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_vm_error()
218 static int handle_mmio(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_mmio()
254 static int handle_pal_call(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_pal_call()
269 static int handle_sal_call(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_sal_call()
290 static void vcpu_deliver_ipi(struct kvm_vcpu *vcpu, uint64_t dm, in vcpu_deliver_ipi()
328 static int handle_ipi(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_ipi()
360 struct kvm_vcpu *vcpu; member
366 struct kvm_vcpu *vcpu = p->vcpu; in vcpu_global_purge() local
382 static int handle_global_purge(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_global_purge()
[all …]
Dkvm_fw.c52 static void kvm_get_pal_call_data(struct kvm_vcpu *vcpu, in kvm_get_pal_call_data()
69 static void set_pal_result(struct kvm_vcpu *vcpu, in set_pal_result()
82 static void set_sal_result(struct kvm_vcpu *vcpu, in set_sal_result()
115 static struct ia64_pal_retval pal_cache_flush(struct kvm_vcpu *vcpu) in pal_cache_flush()
161 struct ia64_pal_retval pal_cache_summary(struct kvm_vcpu *vcpu) in pal_cache_summary()
170 static struct ia64_pal_retval pal_freq_base(struct kvm_vcpu *vcpu) in pal_freq_base()
191 static struct ia64_pal_retval pal_freq_ratios(struct kvm_vcpu *vcpu) in pal_freq_ratios()
200 static struct ia64_pal_retval pal_logical_to_physica(struct kvm_vcpu *vcpu) in pal_logical_to_physica()
208 static struct ia64_pal_retval pal_platform_addr(struct kvm_vcpu *vcpu) in pal_platform_addr()
217 static struct ia64_pal_retval pal_proc_get_features(struct kvm_vcpu *vcpu) in pal_proc_get_features()
[all …]
Dmisc.h61 static inline union context *kvm_get_host_context(struct kvm_vcpu *vcpu) in kvm_get_host_context()
68 static inline union context *kvm_get_guest_context(struct kvm_vcpu *vcpu) in kvm_get_guest_context()
75 static inline struct exit_ctl_data *kvm_get_exit_data(struct kvm_vcpu *vcpu) in kvm_get_exit_data()
81 static inline struct kvm_mmio_req *kvm_get_vcpu_ioreq(struct kvm_vcpu *vcpu) in kvm_get_vcpu_ioreq()
/arch/x86/kvm/
Dx86.c144 u64 kvm_get_apic_base(struct kvm_vcpu *vcpu) in kvm_get_apic_base()
153 void kvm_set_apic_base(struct kvm_vcpu *vcpu, u64 data) in kvm_set_apic_base()
163 void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr) in kvm_queue_exception()
172 void kvm_inject_page_fault(struct kvm_vcpu *vcpu, unsigned long addr, in kvm_inject_page_fault()
192 void kvm_inject_nmi(struct kvm_vcpu *vcpu) in kvm_inject_nmi()
198 void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code) in kvm_queue_exception_e()
208 static void __queue_exception(struct kvm_vcpu *vcpu) in __queue_exception()
218 int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3) in load_pdptrs()
247 static bool pdptrs_changed(struct kvm_vcpu *vcpu) in pdptrs_changed()
265 void kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in kvm_set_cr0()
[all …]
Dkvm_cache_regs.h4 static inline unsigned long kvm_register_read(struct kvm_vcpu *vcpu, in kvm_register_read()
13 static inline void kvm_register_write(struct kvm_vcpu *vcpu, in kvm_register_write()
22 static inline unsigned long kvm_rip_read(struct kvm_vcpu *vcpu) in kvm_rip_read()
27 static inline void kvm_rip_write(struct kvm_vcpu *vcpu, unsigned long val) in kvm_rip_write()
Dvmx.c63 struct kvm_vcpu vcpu; member
101 static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu) in to_vmx()
476 static void update_exception_bitmap(struct kvm_vcpu *vcpu) in update_exception_bitmap()
544 static void vmx_save_host_state(struct kvm_vcpu *vcpu) in vmx_save_host_state()
633 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in vmx_vcpu_load()
689 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) in vmx_vcpu_put()
694 static void vmx_fpu_activate(struct kvm_vcpu *vcpu) in vmx_fpu_activate()
705 static void vmx_fpu_deactivate(struct kvm_vcpu *vcpu) in vmx_fpu_deactivate()
714 static unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) in vmx_get_rflags()
719 static void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) in vmx_set_rflags()
[all …]
Dx86.h6 static inline void kvm_clear_exception_queue(struct kvm_vcpu *vcpu) in kvm_clear_exception_queue()
11 static inline void kvm_queue_interrupt(struct kvm_vcpu *vcpu, u8 vector) in kvm_queue_interrupt()
17 static inline void kvm_clear_interrupt_queue(struct kvm_vcpu *vcpu) in kvm_clear_interrupt_queue()
Dsvm.c66 static inline struct vcpu_svm *to_svm(struct kvm_vcpu *vcpu) in to_svm()
114 static inline u8 pop_irq(struct kvm_vcpu *vcpu) in pop_irq()
126 static inline void push_irq(struct kvm_vcpu *vcpu, u8 irq) in push_irq()
186 static inline void force_new_asid(struct kvm_vcpu *vcpu) in force_new_asid()
191 static inline void flush_guest_tlb(struct kvm_vcpu *vcpu) in flush_guest_tlb()
196 static void svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) in svm_set_efer()
205 static void svm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, in svm_queue_exception()
217 static bool svm_exception_injected(struct kvm_vcpu *vcpu) in svm_exception_injected()
230 static void skip_emulated_instruction(struct kvm_vcpu *vcpu) in skip_emulated_instruction()
596 static int svm_vcpu_reset(struct kvm_vcpu *vcpu) in svm_vcpu_reset()
[all …]
Dmmu.h40 static inline void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) in kvm_mmu_free_some_pages()
46 static inline int kvm_mmu_reload(struct kvm_vcpu *vcpu) in kvm_mmu_reload()
54 static inline int is_long_mode(struct kvm_vcpu *vcpu) in is_long_mode()
63 static inline int is_pae(struct kvm_vcpu *vcpu) in is_pae()
68 static inline int is_pse(struct kvm_vcpu *vcpu) in is_pse()
73 static inline int is_paging(struct kvm_vcpu *vcpu) in is_paging()
Dmmu.c53 static void kvm_mmu_audit(struct kvm_vcpu *vcpu, const char *msg) {} in kvm_mmu_audit()
198 static int is_write_protection(struct kvm_vcpu *vcpu) in is_write_protection()
208 static int is_nx(struct kvm_vcpu *vcpu) in is_nx()
310 static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu) in mmu_topup_memory_caches()
331 static void mmu_free_memory_caches(struct kvm_vcpu *vcpu) in mmu_free_memory_caches()
350 static struct kvm_pte_chain *mmu_alloc_pte_chain(struct kvm_vcpu *vcpu) in mmu_alloc_pte_chain()
361 static struct kvm_rmap_desc *mmu_alloc_rmap_desc(struct kvm_vcpu *vcpu) in mmu_alloc_rmap_desc()
440 static int is_largepage_backed(struct kvm_vcpu *vcpu, gfn_t large_gfn) in is_largepage_backed()
486 static void rmap_add(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn, int lpage) in rmap_add()
786 static struct kvm_mmu_page *kvm_mmu_alloc_page(struct kvm_vcpu *vcpu, in kvm_mmu_alloc_page()
[all …]
Dirq.c32 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) in kvm_cpu_has_pending_timer()
82 void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu) in kvm_inject_pending_timer_irqs()
90 void __kvm_migrate_timers(struct kvm_vcpu *vcpu) in __kvm_migrate_timers()

12