Searched defs:vcpu (Results 1 - 134 of 134) sorted by relevance

/linux-4.4.14/arch/mips/kvm/
H A Dcommpage.c27 void kvm_mips_commpage_init(struct kvm_vcpu *vcpu) kvm_mips_commpage_init() argument
H A Dstats.c70 void kvm_mips_dump_stats(struct kvm_vcpu *vcpu) kvm_mips_dump_stats() argument
H A Ddyntrans.c73 int kvm_mips_trans_mfc0(uint32_t inst, uint32_t *opc, struct kvm_vcpu *vcpu) kvm_mips_trans_mfc0() argument
115 int kvm_mips_trans_mtc0(uint32_t inst, uint32_t *opc, struct kvm_vcpu *vcpu) kvm_mips_trans_mtc0() argument
31 kvm_mips_trans_cache_index(uint32_t inst, uint32_t *opc, struct kvm_vcpu *vcpu) kvm_mips_trans_cache_index() argument
52 kvm_mips_trans_cache_va(uint32_t inst, uint32_t *opc, struct kvm_vcpu *vcpu) kvm_mips_trans_cache_va() argument
H A Dinterrupt.c25 void kvm_mips_queue_irq(struct kvm_vcpu *vcpu, uint32_t priority) kvm_mips_queue_irq() argument
30 void kvm_mips_dequeue_irq(struct kvm_vcpu *vcpu, uint32_t priority) kvm_mips_dequeue_irq() argument
35 void kvm_mips_queue_timer_int_cb(struct kvm_vcpu *vcpu) kvm_mips_queue_timer_int_cb() argument
49 void kvm_mips_dequeue_timer_int_cb(struct kvm_vcpu *vcpu) kvm_mips_dequeue_timer_int_cb() argument
55 void kvm_mips_queue_io_int_cb(struct kvm_vcpu *vcpu, kvm_mips_queue_io_int_cb() argument
88 void kvm_mips_dequeue_io_int_cb(struct kvm_vcpu *vcpu, kvm_mips_dequeue_io_int_cb() argument
116 int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, kvm_mips_irq_deliver_cb() argument
198 int kvm_mips_irq_clear_cb(struct kvm_vcpu *vcpu, unsigned int priority, kvm_mips_irq_clear_cb() argument
204 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, uint32_t cause) kvm_mips_deliver_interrupts() argument
239 int kvm_mips_pending_timer(struct kvm_vcpu *vcpu) kvm_mips_pending_timer() argument
H A Dtrap_emul.c40 static int kvm_trap_emul_handle_cop_unusable(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_cop_unusable() argument
88 static int kvm_trap_emul_handle_tlb_mod(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_tlb_mod() argument
132 static int kvm_trap_emul_handle_tlb_st_miss(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_tlb_st_miss() argument
179 static int kvm_trap_emul_handle_tlb_ld_miss(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_tlb_ld_miss() argument
233 static int kvm_trap_emul_handle_addr_err_st(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_addr_err_st() argument
263 static int kvm_trap_emul_handle_addr_err_ld(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_addr_err_ld() argument
293 static int kvm_trap_emul_handle_syscall(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_syscall() argument
311 static int kvm_trap_emul_handle_res_inst(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_res_inst() argument
329 static int kvm_trap_emul_handle_break(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_break() argument
347 static int kvm_trap_emul_handle_trap(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_trap() argument
365 static int kvm_trap_emul_handle_msa_fpe(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_msa_fpe() argument
383 static int kvm_trap_emul_handle_fpe(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_fpe() argument
407 static int kvm_trap_emul_handle_msa_disabled(struct kvm_vcpu *vcpu) kvm_trap_emul_handle_msa_disabled() argument
453 static int kvm_trap_emul_vcpu_init(struct kvm_vcpu *vcpu) kvm_trap_emul_vcpu_init() argument
458 static int kvm_trap_emul_vcpu_setup(struct kvm_vcpu *vcpu) kvm_trap_emul_vcpu_setup() argument
514 static int kvm_trap_emul_get_one_reg(struct kvm_vcpu *vcpu, kvm_trap_emul_get_one_reg() argument
537 static int kvm_trap_emul_set_one_reg(struct kvm_vcpu *vcpu, kvm_trap_emul_set_one_reg() argument
625 static int kvm_trap_emul_vcpu_get_regs(struct kvm_vcpu *vcpu) kvm_trap_emul_vcpu_get_regs() argument
632 static int kvm_trap_emul_vcpu_set_regs(struct kvm_vcpu *vcpu) kvm_trap_emul_vcpu_set_regs() argument
H A Dtlb.c50 uint32_t kvm_mips_get_kernel_asid(struct kvm_vcpu *vcpu) kvm_mips_get_kernel_asid() argument
55 uint32_t kvm_mips_get_user_asid(struct kvm_vcpu *vcpu) kvm_mips_get_user_asid() argument
60 inline uint32_t kvm_mips_get_commpage_asid(struct kvm_vcpu *vcpu) kvm_mips_get_commpage_asid() argument
116 void kvm_mips_dump_guest_tlbs(struct kvm_vcpu *vcpu) kvm_mips_dump_guest_tlbs() argument
168 unsigned long kvm_mips_translate_guest_kseg0_to_hpa(struct kvm_vcpu *vcpu, kvm_mips_translate_guest_kseg0_to_hpa() argument
198 int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned long entryhi, kvm_mips_host_tlb_write() argument
356 int kvm_mips_handle_mapped_seg_tlb_fault(struct kvm_vcpu *vcpu, kvm_mips_handle_mapped_seg_tlb_fault() argument
406 int kvm_mips_guest_tlb_lookup(struct kvm_vcpu *vcpu, unsigned long entryhi) kvm_mips_guest_tlb_lookup() argument
427 int kvm_mips_host_tlb_lookup(struct kvm_vcpu *vcpu, unsigned long vaddr) kvm_mips_host_tlb_lookup() argument
463 int kvm_mips_host_tlb_inv(struct kvm_vcpu *vcpu, unsigned long va) kvm_mips_host_tlb_inv() argument
511 int kvm_mips_host_tlb_inv_index(struct kvm_vcpu *vcpu, int index) kvm_mips_host_tlb_inv_index() argument
658 static void kvm_mips_migrate_count(struct kvm_vcpu *vcpu) kvm_mips_migrate_count() argument
665 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument
745 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument
773 uint32_t kvm_get_inst(uint32_t *opc, struct kvm_vcpu *vcpu) kvm_get_inst() argument
261 kvm_mips_handle_kseg0_tlb_fault(unsigned long badvaddr, struct kvm_vcpu *vcpu) kvm_mips_handle_kseg0_tlb_fault() argument
313 kvm_mips_handle_commpage_tlb_fault(unsigned long badvaddr, struct kvm_vcpu *vcpu) kvm_mips_handle_commpage_tlb_fault() argument
599 kvm_get_new_mmu_context(struct mm_struct *mm, unsigned long cpu, struct kvm_vcpu *vcpu) kvm_get_new_mmu_context() argument
H A Demulate.c42 unsigned long kvm_compute_return_epc(struct kvm_vcpu *vcpu, kvm_compute_return_epc() argument
201 enum emulation_result update_pc(struct kvm_vcpu *vcpu, uint32_t cause) update_pc() argument
231 static inline int kvm_mips_count_disabled(struct kvm_vcpu *vcpu) kvm_mips_count_disabled() argument
246 static uint32_t kvm_mips_ktime_to_count(struct kvm_vcpu *vcpu, ktime_t now) kvm_mips_ktime_to_count() argument
285 static inline ktime_t kvm_mips_count_time(struct kvm_vcpu *vcpu) kvm_mips_count_time() argument
303 static uint32_t kvm_mips_read_count_running(struct kvm_vcpu *vcpu, ktime_t now) kvm_mips_read_count_running() argument
363 uint32_t kvm_mips_read_count(struct kvm_vcpu *vcpu) kvm_mips_read_count() argument
390 static ktime_t kvm_mips_freeze_hrtimer(struct kvm_vcpu *vcpu, kvm_mips_freeze_hrtimer() argument
421 static void kvm_mips_resume_hrtimer(struct kvm_vcpu *vcpu, kvm_mips_resume_hrtimer() argument
447 void kvm_mips_write_count(struct kvm_vcpu *vcpu, uint32_t count) kvm_mips_write_count() argument
471 void kvm_mips_init_count(struct kvm_vcpu *vcpu) kvm_mips_init_count() argument
494 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz) kvm_mips_set_count_hz() argument
541 void kvm_mips_write_compare(struct kvm_vcpu *vcpu, uint32_t compare, bool ack) kvm_mips_write_compare() argument
585 static ktime_t kvm_mips_count_disable(struct kvm_vcpu *vcpu) kvm_mips_count_disable() argument
612 void kvm_mips_count_disable_cause(struct kvm_vcpu *vcpu) kvm_mips_count_disable_cause() argument
632 void kvm_mips_count_enable_cause(struct kvm_vcpu *vcpu) kvm_mips_count_enable_cause() argument
658 int kvm_mips_set_count_ctl(struct kvm_vcpu *vcpu, s64 count_ctl) kvm_mips_set_count_ctl() argument
720 int kvm_mips_set_count_resume(struct kvm_vcpu *vcpu, s64 count_resume) kvm_mips_set_count_resume() argument
742 enum hrtimer_restart kvm_mips_count_timeout(struct kvm_vcpu *vcpu) kvm_mips_count_timeout() argument
750 enum emulation_result kvm_mips_emul_eret(struct kvm_vcpu *vcpu) kvm_mips_emul_eret() argument
773 enum emulation_result kvm_mips_emul_wait(struct kvm_vcpu *vcpu) kvm_mips_emul_wait() argument
801 enum emulation_result kvm_mips_emul_tlbr(struct kvm_vcpu *vcpu) kvm_mips_emul_tlbr() argument
811 enum emulation_result kvm_mips_emul_tlbwi(struct kvm_vcpu *vcpu) kvm_mips_emul_tlbwi() argument
850 enum emulation_result kvm_mips_emul_tlbwr(struct kvm_vcpu *vcpu) kvm_mips_emul_tlbwr() argument
881 enum emulation_result kvm_mips_emul_tlbp(struct kvm_vcpu *vcpu) kvm_mips_emul_tlbp() argument
905 unsigned int kvm_mips_config1_wrmask(struct kvm_vcpu *vcpu) kvm_mips_config1_wrmask() argument
923 unsigned int kvm_mips_config3_wrmask(struct kvm_vcpu *vcpu) kvm_mips_config3_wrmask() argument
942 unsigned int kvm_mips_config4_wrmask(struct kvm_vcpu *vcpu) kvm_mips_config4_wrmask() argument
955 unsigned int kvm_mips_config5_wrmask(struct kvm_vcpu *vcpu) kvm_mips_config5_wrmask() argument
1533 int kvm_mips_sync_icache(unsigned long va, struct kvm_vcpu *vcpu) kvm_mips_sync_icache() argument
2398 enum emulation_result kvm_mips_complete_mmio_load(struct kvm_vcpu *vcpu, kvm_mips_complete_mmio_load() argument
976 kvm_mips_emulate_CP0(uint32_t inst, uint32_t *opc, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_CP0() argument
1316 kvm_mips_emulate_store(uint32_t inst, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_store() argument
1428 kvm_mips_emulate_load(uint32_t inst, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_load() argument
1572 kvm_mips_emulate_cache(uint32_t inst, uint32_t *opc, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_cache() argument
1726 kvm_mips_emulate_inst(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_inst() argument
1773 kvm_mips_emulate_syscall(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_syscall() argument
1808 kvm_mips_emulate_tlbmiss_ld(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_tlbmiss_ld() argument
1854 kvm_mips_emulate_tlbinv_ld(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_tlbinv_ld() argument
1900 kvm_mips_emulate_tlbmiss_st(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_tlbmiss_st() argument
1944 kvm_mips_emulate_tlbinv_st(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_tlbinv_st() argument
1989 kvm_mips_handle_tlbmod(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_handle_tlbmod() argument
2017 kvm_mips_emulate_tlbmod(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_tlbmod() argument
2059 kvm_mips_emulate_fpu_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_fpu_exc() argument
2088 kvm_mips_emulate_ri_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_ri_exc() argument
2123 kvm_mips_emulate_bp_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_bp_exc() argument
2158 kvm_mips_emulate_trap_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_trap_exc() argument
2193 kvm_mips_emulate_msafpe_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_msafpe_exc() argument
2228 kvm_mips_emulate_fpe_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_fpe_exc() argument
2263 kvm_mips_emulate_msadis_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_msadis_exc() argument
2313 kvm_mips_handle_ri(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_handle_ri() argument
2443 kvm_mips_emulate_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_emulate_exc() argument
2481 kvm_mips_check_privilege(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_check_privilege() argument
2577 kvm_mips_handle_tlbmiss(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_handle_tlbmiss() argument
H A Dmips.c63 static int kvm_mips_reset_vcpu(struct kvm_vcpu *vcpu) kvm_mips_reset_vcpu() argument
79 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) kvm_arch_vcpu_runnable() argument
84 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument
144 struct kvm_vcpu *vcpu; kvm_mips_free_vcpus() local
252 struct kvm_vcpu *vcpu = kzalloc(sizeof(struct kvm_vcpu), GFP_KERNEL); kvm_arch_vcpu_create() local
356 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument
369 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument
374 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument
380 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_arch_vcpu_ioctl_run() argument
420 int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_interrupt() argument
454 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument
460 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument
532 static int kvm_mips_get_reg(struct kvm_vcpu *vcpu, kvm_mips_get_reg() argument
711 static int kvm_mips_set_reg(struct kvm_vcpu *vcpu, kvm_mips_set_reg() argument
872 static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_enable_cap() argument
902 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local
1038 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument
1044 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument
1050 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument
1054 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument
1059 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument
1064 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument
1106 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument
1111 int kvm_arch_vcpu_dump_regs(struct kvm_vcpu *vcpu) kvm_arch_vcpu_dump_regs() argument
1142 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument
1156 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument
1172 struct kvm_vcpu *vcpu = (struct kvm_vcpu *)data; kvm_mips_comparecount_func() local
1184 struct kvm_vcpu *vcpu; kvm_mips_comparecount_wakeup() local
1191 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument
1200 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
1207 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument
1226 int kvm_mips_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_handle_exit() argument
1422 void kvm_own_fpu(struct kvm_vcpu *vcpu) kvm_own_fpu() argument
1467 void kvm_own_msa(struct kvm_vcpu *vcpu) kvm_own_msa() argument
1525 void kvm_drop_fpu(struct kvm_vcpu *vcpu) kvm_drop_fpu() argument
1540 void kvm_lose_fpu(struct kvm_vcpu *vcpu) kvm_lose_fpu() argument
/linux-4.4.14/arch/arm/kvm/
H A Dinterrupts_head.S15 vcpu .req r0 @ vcpu pointer always in r0 label
H A Dperf.c32 struct kvm_vcpu *vcpu; kvm_is_user_mode() local
44 struct kvm_vcpu *vcpu; kvm_get_guest_ip() local
H A Dreset.c57 int kvm_reset_vcpu(struct kvm_vcpu *vcpu) kvm_reset_vcpu() argument
H A Dhandle_exit.c31 static int handle_svc_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run) handle_svc_hyp() argument
39 static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run) handle_hvc() argument
55 static int handle_smc(struct kvm_vcpu *vcpu, struct kvm_run *run) handle_smc() argument
61 static int handle_pabt_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run) handle_pabt_hyp() argument
69 static int handle_dabt_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run) handle_dabt_hyp() argument
88 static int kvm_handle_wfx(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_wfx() argument
121 static exit_handle_fn kvm_get_exit_handler(struct kvm_vcpu *vcpu) kvm_get_exit_handler() argument
139 int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, handle_exit() argument
H A Dmmio.c96 int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_mmio_return() argument
124 static int decode_hsr(struct kvm_vcpu *vcpu, bool *is_write, int *len) decode_hsr() argument
162 int io_mem_abort(struct kvm_vcpu *vcpu, struct kvm_run *run, io_mem_abort() argument
H A Dcoproc.h71 static inline bool ignore_write(struct kvm_vcpu *vcpu, ignore_write() argument
77 static inline bool read_zero(struct kvm_vcpu *vcpu, read_zero() argument
84 static inline bool write_to_read_only(struct kvm_vcpu *vcpu, write_to_read_only() argument
93 static inline bool read_from_write_only(struct kvm_vcpu *vcpu, read_from_write_only() argument
103 static inline void reset_unknown(struct kvm_vcpu *vcpu, reset_unknown() argument
111 static inline void reset_val(struct kvm_vcpu *vcpu, const struct coproc_reg *r) reset_val() argument
118 static inline void reset_unknown64(struct kvm_vcpu *vcpu, reset_unknown64() argument
H A Dpsci.c44 static unsigned long kvm_psci_vcpu_suspend(struct kvm_vcpu *vcpu) kvm_psci_vcpu_suspend() argument
64 static void kvm_psci_vcpu_off(struct kvm_vcpu *vcpu) kvm_psci_vcpu_off() argument
72 struct kvm_vcpu *vcpu = NULL; kvm_psci_vcpu_on() local
127 static unsigned long kvm_psci_vcpu_affinity_info(struct kvm_vcpu *vcpu) kvm_psci_vcpu_affinity_info() argument
167 static void kvm_prepare_system_event(struct kvm_vcpu *vcpu, u32 type) kvm_prepare_system_event() argument
191 static void kvm_psci_system_off(struct kvm_vcpu *vcpu) kvm_psci_system_off() argument
196 static void kvm_psci_system_reset(struct kvm_vcpu *vcpu) kvm_psci_system_reset() argument
201 int kvm_psci_version(struct kvm_vcpu *vcpu) kvm_psci_version() argument
209 static int kvm_psci_0_2_call(struct kvm_vcpu *vcpu) kvm_psci_0_2_call() argument
280 static int kvm_psci_0_1_call(struct kvm_vcpu *vcpu) kvm_psci_0_1_call() argument
316 int kvm_psci_call(struct kvm_vcpu *vcpu) kvm_psci_call() argument
H A Demulate.c113 unsigned long *vcpu_reg(struct kvm_vcpu *vcpu, u8 reg_num) vcpu_reg() argument
145 unsigned long *vcpu_spsr(struct kvm_vcpu *vcpu) vcpu_spsr() argument
169 bool kvm_condition_valid(struct kvm_vcpu *vcpu) kvm_condition_valid() argument
218 static void kvm_adjust_itstate(struct kvm_vcpu *vcpu) kvm_adjust_itstate() argument
250 void kvm_skip_instr(struct kvm_vcpu *vcpu, bool is_wide_instr) kvm_skip_instr() argument
267 static u32 exc_vector_base(struct kvm_vcpu *vcpu) exc_vector_base() argument
287 void kvm_inject_undefined(struct kvm_vcpu *vcpu) kvm_inject_undefined() argument
321 static void inject_abt(struct kvm_vcpu *vcpu, bool is_pabt, unsigned long addr) inject_abt() argument
386 void kvm_inject_dabt(struct kvm_vcpu *vcpu, unsigned long addr) kvm_inject_dabt() argument
399 void kvm_inject_pabt(struct kvm_vcpu *vcpu, unsigned long addr) kvm_inject_pabt() argument
H A Dguest.c39 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument
49 static int get_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) get_core_reg() argument
66 static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) set_core_reg() argument
102 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument
107 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument
125 static int copy_timer_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) copy_timer_indices() argument
139 static int set_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) set_timer_reg() argument
152 static int get_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) get_timer_reg() argument
171 unsigned long kvm_arm_num_regs(struct kvm_vcpu *vcpu) kvm_arm_num_regs() argument
182 int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_reg_indices() argument
202 int kvm_arm_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_get_reg() argument
218 int kvm_arm_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_set_reg() argument
234 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument
240 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument
278 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument
283 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument
288 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
294 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument
H A Dcoproc.c53 static inline void vcpu_cp15_reg64_set(struct kvm_vcpu *vcpu, vcpu_cp15_reg64_set() argument
61 static inline u64 vcpu_cp15_reg64_get(struct kvm_vcpu *vcpu, vcpu_cp15_reg64_get() argument
72 int kvm_handle_cp10_id(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp10_id() argument
78 int kvm_handle_cp_0_13_access(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp_0_13_access() argument
88 int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_load_store() argument
94 int kvm_handle_cp14_access(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_access() argument
100 static void reset_mpidr(struct kvm_vcpu *vcpu, const struct coproc_reg *r) reset_mpidr() argument
113 static bool access_actlr(struct kvm_vcpu *vcpu, access_actlr() argument
125 static bool access_cbar(struct kvm_vcpu *vcpu, access_cbar() argument
135 static bool access_l2ctlr(struct kvm_vcpu *vcpu, access_l2ctlr() argument
146 static void reset_l2ctlr(struct kvm_vcpu *vcpu, const struct coproc_reg *r) reset_l2ctlr() argument
162 static void reset_actlr(struct kvm_vcpu *vcpu, const struct coproc_reg *r) reset_actlr() argument
181 static bool access_l2ectlr(struct kvm_vcpu *vcpu, access_l2ectlr() argument
195 static bool access_dcsw(struct kvm_vcpu *vcpu, access_dcsw() argument
213 bool access_vm_reg(struct kvm_vcpu *vcpu, access_vm_reg() argument
238 static bool pm_fake(struct kvm_vcpu *vcpu, pm_fake() argument
433 static int emulate_cp15(struct kvm_vcpu *vcpu, emulate_cp15() argument
473 int kvm_handle_cp15_64(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp15_64() argument
490 static void reset_coproc_regs(struct kvm_vcpu *vcpu, reset_coproc_regs() argument
505 int kvm_handle_cp15_32(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp15_32() argument
571 static const struct coproc_reg *index_to_coproc_reg(struct kvm_vcpu *vcpu, index_to_coproc_reg() argument
891 static int vfp_get_reg(const struct kvm_vcpu *vcpu, u64 id, void __user *uaddr) vfp_get_reg() argument
935 static int vfp_set_reg(struct kvm_vcpu *vcpu, u64 id, const void __user *uaddr) vfp_set_reg() argument
999 static int vfp_get_reg(const struct kvm_vcpu *vcpu, u64 id, void __user *uaddr) vfp_get_reg() argument
1004 static int vfp_set_reg(struct kvm_vcpu *vcpu, u64 id, const void __user *uaddr) vfp_set_reg() argument
1010 int kvm_arm_coproc_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_coproc_get_reg() argument
1039 int kvm_arm_coproc_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_coproc_set_reg() argument
1133 static int walk_cp15(struct kvm_vcpu *vcpu, u64 __user *uind) walk_cp15() argument
1175 unsigned long kvm_arm_num_coproc_regs(struct kvm_vcpu *vcpu) kvm_arm_num_coproc_regs() argument
1183 int kvm_arm_copy_coproc_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_coproc_indices() argument
1245 void kvm_reset_coprocs(struct kvm_vcpu *vcpu) kvm_reset_coprocs() argument
H A Darm.c64 static void kvm_arm_set_running_vcpu(struct kvm_vcpu *vcpu) kvm_arm_set_running_vcpu() argument
93 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument
144 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument
216 struct kvm_vcpu *vcpu; kvm_arch_vcpu_create() local
251 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument
256 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument
264 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument
269 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument
274 void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) kvm_arch_vcpu_blocking() argument
279 void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) kvm_arch_vcpu_unblocking() argument
284 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument
298 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument
306 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument
318 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument
329 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument
446 static int kvm_vcpu_first_run_init(struct kvm_vcpu *vcpu) kvm_vcpu_first_run_init() argument
488 struct kvm_vcpu *vcpu; kvm_arm_halt_guest() local
498 struct kvm_vcpu *vcpu; kvm_arm_resume_guest() local
508 static void vcpu_sleep(struct kvm_vcpu *vcpu) vcpu_sleep() argument
516 static int kvm_vcpu_initialized(struct kvm_vcpu *vcpu) kvm_vcpu_initialized() argument
532 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_arch_vcpu_ioctl_run() argument
654 static int vcpu_interrupt_line(struct kvm_vcpu *vcpu, int number, bool level) vcpu_interrupt_line() argument
693 struct kvm_vcpu *vcpu = NULL; kvm_vm_ioctl_irq_line() local
746 static int kvm_vcpu_set_target(struct kvm_vcpu *vcpu, kvm_vcpu_set_target() argument
788 static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_vcpu_init() argument
820 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local
1152 struct kvm_vcpu *vcpu; kvm_mpidr_to_vcpu() local
H A Dmmu.c1041 static bool kvm_is_write_fault(struct kvm_vcpu *vcpu) kvm_is_write_fault() argument
1209 static void coherent_cache_guest_page(struct kvm_vcpu *vcpu, pfn_t pfn, coherent_cache_guest_page() argument
1215 static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, user_mem_abort() argument
1350 static void handle_access_fault(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa) handle_access_fault() argument
1397 int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_guest_abort() argument
1625 void kvm_mmu_free_memory_caches(struct kvm_vcpu *vcpu) kvm_mmu_free_memory_caches() argument
1896 void kvm_set_way_flush(struct kvm_vcpu *vcpu) kvm_set_way_flush() argument
1917 void kvm_toggle_cache(struct kvm_vcpu *vcpu, bool was_enabled) kvm_toggle_cache() argument
/linux-4.4.14/arch/powerpc/kvm/
H A Demulate_loadstore.c50 int kvmppc_emulate_loadstore(struct kvm_vcpu *vcpu) kvmppc_emulate_loadstore() argument
H A Dbook3s_64_vio_hv.c44 long kvmppc_h_put_tce(struct kvm_vcpu *vcpu, unsigned long liobn, kvmppc_h_put_tce() argument
79 long kvmppc_h_get_tce(struct kvm_vcpu *vcpu, unsigned long liobn, kvmppc_h_get_tce() argument
H A Dtiming.h32 static inline void kvmppc_set_exit_type(struct kvm_vcpu *vcpu, int type) kvmppc_set_exit_type() argument
39 static inline void kvmppc_init_timing_stats(struct kvm_vcpu *vcpu) {} kvmppc_update_timing_stats() argument
40 static inline void kvmppc_update_timing_stats(struct kvm_vcpu *vcpu) {} kvmppc_create_vcpu_debugfs() argument
41 static inline void kvmppc_create_vcpu_debugfs(struct kvm_vcpu *vcpu, kvmppc_create_vcpu_debugfs() argument
43 static inline void kvmppc_remove_vcpu_debugfs(struct kvm_vcpu *vcpu) {} kvmppc_set_exit_type() argument
44 static inline void kvmppc_set_exit_type(struct kvm_vcpu *vcpu, int type) {} kvmppc_set_exit_type() argument
48 static inline void kvmppc_account_exit_stat(struct kvm_vcpu *vcpu, int type) kvmppc_account_exit_stat() argument
103 static inline void kvmppc_account_exit(struct kvm_vcpu *vcpu, int type) kvmppc_account_exit() argument
H A Demulate.c37 void kvmppc_emulate_dec(struct kvm_vcpu *vcpu) kvmppc_emulate_dec() argument
81 u32 kvmppc_get_dec(struct kvm_vcpu *vcpu, u64 tb) kvmppc_get_dec() argument
93 static int kvmppc_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, int rs) kvmppc_emulate_mtspr() argument
146 static int kvmppc_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt) kvmppc_emulate_mfspr() argument
212 int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_emulate_instruction() argument
H A Dbook3s_hv_ras.c34 static void reload_slb(struct kvm_vcpu *vcpu) reload_slb() argument
68 static long kvmppc_realmode_mc_power7(struct kvm_vcpu *vcpu) kvmppc_realmode_mc_power7() argument
139 long kvmppc_realmode_machine_check(struct kvm_vcpu *vcpu) kvmppc_realmode_machine_check() argument
H A Dbooke_emulate.c35 static void kvmppc_emul_rfi(struct kvm_vcpu *vcpu) kvmppc_emul_rfi() argument
41 static void kvmppc_emul_rfdi(struct kvm_vcpu *vcpu) kvmppc_emul_rfdi() argument
47 static void kvmppc_emul_rfci(struct kvm_vcpu *vcpu) kvmppc_emul_rfci() argument
53 int kvmppc_booke_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_booke_emulate_op() argument
131 int kvmppc_booke_emulate_mtspr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) kvmppc_booke_emulate_mtspr() argument
390 int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) kvmppc_booke_emulate_mfspr() argument
H A Dbook3s_hv_rm_xics.c53 static void icp_rm_set_vcpu_irq(struct kvm_vcpu *vcpu, icp_rm_set_vcpu_irq() argument
81 static void icp_rm_clr_vcpu_irq(struct kvm_vcpu *vcpu) icp_rm_clr_vcpu_irq() argument
384 unsigned long kvmppc_rm_h_xirr(struct kvm_vcpu *vcpu) kvmppc_rm_h_xirr() argument
422 int kvmppc_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, kvmppc_rm_h_ipi() argument
509 int kvmppc_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) kvmppc_rm_h_cppr() argument
571 int kvmppc_rm_h_eoi(struct kvm_vcpu *vcpu, unsigned long xirr) kvmppc_rm_h_eoi() argument
H A Dbook3s_rtas.c21 static void kvm_rtas_set_xive(struct kvm_vcpu *vcpu, struct rtas_args *args) kvm_rtas_set_xive() argument
42 static void kvm_rtas_get_xive(struct kvm_vcpu *vcpu, struct rtas_args *args) kvm_rtas_get_xive() argument
67 static void kvm_rtas_int_off(struct kvm_vcpu *vcpu, struct rtas_args *args) kvm_rtas_int_off() argument
86 static void kvm_rtas_int_on(struct kvm_vcpu *vcpu, struct rtas_args *args) kvm_rtas_int_on() argument
208 int kvmppc_rtas_hcall(struct kvm_vcpu *vcpu) kvmppc_rtas_hcall() argument
H A De500_emulate.c54 static int kvmppc_e500_emul_msgclr(struct kvm_vcpu *vcpu, int rb) kvmppc_e500_emul_msgclr() argument
66 static int kvmppc_e500_emul_msgsnd(struct kvm_vcpu *vcpu, int rb) kvmppc_e500_emul_msgsnd() argument
89 static int kvmppc_e500_emul_ehpriv(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_e500_emul_ehpriv() argument
109 static int kvmppc_e500_emul_dcbtls(struct kvm_vcpu *vcpu) kvmppc_e500_emul_dcbtls() argument
118 static int kvmppc_e500_emul_mftmr(struct kvm_vcpu *vcpu, unsigned int inst, kvmppc_e500_emul_mftmr() argument
131 int kvmppc_core_emulate_op_e500(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_core_emulate_op_e500() argument
208 int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) kvmppc_core_emulate_mtspr_e500() argument
318 int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) kvmppc_core_emulate_mfspr_e500() argument
H A Dtiming.c33 void kvmppc_init_timing_stats(struct kvm_vcpu *vcpu) kvmppc_init_timing_stats() argument
55 static void add_exit_timing(struct kvm_vcpu *vcpu, u64 duration, int type) add_exit_timing() argument
93 void kvmppc_update_timing_stats(struct kvm_vcpu *vcpu) kvmppc_update_timing_stats() argument
142 struct kvm_vcpu *vcpu = m->private; kvmppc_exit_timing_show() local
191 struct kvm_vcpu *vcpu = seqf->private; kvmppc_exit_timing_write() local
219 void kvmppc_create_vcpu_debugfs(struct kvm_vcpu *vcpu, unsigned int id) kvmppc_create_vcpu_debugfs() argument
239 void kvmppc_remove_vcpu_debugfs(struct kvm_vcpu *vcpu) kvmppc_remove_vcpu_debugfs() argument
H A Dbook3s_32_mmu.c52 static inline bool check_debug_ip(struct kvm_vcpu *vcpu) check_debug_ip() argument
87 static u32 find_sr(struct kvm_vcpu *vcpu, gva_t eaddr) find_sr() argument
92 static u64 kvmppc_mmu_book3s_32_ea_to_vp(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_32_ea_to_vp() argument
105 static void kvmppc_mmu_book3s_32_reset_msr(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_32_reset_msr() argument
110 static hva_t kvmppc_mmu_book3s_32_get_pteg(struct kvm_vcpu *vcpu, kvmppc_mmu_book3s_32_get_pteg() argument
144 static int kvmppc_mmu_book3s_32_xlate_bat(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_32_xlate_bat() argument
199 static int kvmppc_mmu_book3s_32_xlate_pte(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_32_xlate_pte() argument
305 static int kvmppc_mmu_book3s_32_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_32_xlate() argument
341 static u32 kvmppc_mmu_book3s_32_mfsrin(struct kvm_vcpu *vcpu, u32 srnum) kvmppc_mmu_book3s_32_mfsrin() argument
346 static void kvmppc_mmu_book3s_32_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, kvmppc_mmu_book3s_32_mtsrin() argument
353 static void kvmppc_mmu_book3s_32_tlbie(struct kvm_vcpu *vcpu, ulong ea, bool large) kvmppc_mmu_book3s_32_tlbie() argument
363 static int kvmppc_mmu_book3s_32_esid_to_vsid(struct kvm_vcpu *vcpu, ulong esid, kvmppc_mmu_book3s_32_esid_to_vsid() argument
406 static bool kvmppc_mmu_book3s_32_is_dcbz32(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_32_is_dcbz32() argument
412 void kvmppc_mmu_book3s_32_init(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_32_init() argument
H A Dbook3s_32_mmu_host.c61 void kvmppc_mmu_invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) kvmppc_mmu_invalidate_pte() argument
78 static u16 kvmppc_sid_hash(struct kvm_vcpu *vcpu, u64 gvsid) kvmppc_sid_hash() argument
91 static struct kvmppc_sid_map *find_sid_vsid(struct kvm_vcpu *vcpu, u64 gvsid) find_sid_vsid() argument
118 static u32 *kvmppc_mmu_get_pteg(struct kvm_vcpu *vcpu, u32 vsid, u32 eaddr, kvmppc_mmu_get_pteg() argument
142 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, kvmppc_mmu_map_page() argument
270 void kvmppc_mmu_unmap_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte) kvmppc_mmu_unmap_page() argument
275 static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid) create_sid_map() argument
314 int kvmppc_mmu_map_segment(struct kvm_vcpu *vcpu, ulong eaddr) kvmppc_mmu_map_segment() argument
345 void kvmppc_mmu_flush_segments(struct kvm_vcpu *vcpu) kvmppc_mmu_flush_segments() argument
357 void kvmppc_mmu_destroy_pr(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy_pr() argument
371 int kvmppc_mmu_init(struct kvm_vcpu *vcpu) kvmppc_mmu_init() argument
H A Dbook3s_64_mmu_host.c35 void kvmppc_mmu_invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) kvmppc_mmu_invalidate_pte() argument
44 static u16 kvmppc_sid_hash(struct kvm_vcpu *vcpu, u64 gvsid) kvmppc_sid_hash() argument
57 static struct kvmppc_sid_map *find_sid_vsid(struct kvm_vcpu *vcpu, u64 gvsid) find_sid_vsid() argument
82 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, kvmppc_mmu_map_page() argument
217 void kvmppc_mmu_unmap_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte) kvmppc_mmu_unmap_page() argument
228 static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid) create_sid_map() argument
268 static int kvmppc_mmu_next_segment(struct kvm_vcpu *vcpu, ulong esid) kvmppc_mmu_next_segment() argument
309 int kvmppc_mmu_map_segment(struct kvm_vcpu *vcpu, ulong eaddr) kvmppc_mmu_map_segment() argument
355 void kvmppc_mmu_flush_segment(struct kvm_vcpu *vcpu, ulong ea, ulong seg_size) kvmppc_mmu_flush_segment() argument
372 void kvmppc_mmu_flush_segments(struct kvm_vcpu *vcpu) kvmppc_mmu_flush_segments() argument
380 void kvmppc_mmu_destroy_pr(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy_pr() argument
386 int kvmppc_mmu_init(struct kvm_vcpu *vcpu) kvmppc_mmu_init() argument
H A Dbook3s_hv_builtin.c110 long int kvmppc_rm_h_confer(struct kvm_vcpu *vcpu, int target, kvmppc_rm_h_confer() argument
184 long kvmppc_h_random(struct kvm_vcpu *vcpu) kvmppc_h_random() argument
H A Dbook3s_mmu_hpte.c67 void kvmppc_mmu_hpte_cache_map(struct kvm_vcpu *vcpu, struct hpte_cache *pte) kvmppc_mmu_hpte_cache_map() argument
112 static void invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) invalidate_pte() argument
143 static void kvmppc_mmu_pte_flush_all(struct kvm_vcpu *vcpu) kvmppc_mmu_pte_flush_all() argument
161 static void kvmppc_mmu_pte_flush_page(struct kvm_vcpu *vcpu, ulong guest_ea) kvmppc_mmu_pte_flush_page() argument
180 static void kvmppc_mmu_pte_flush_long(struct kvm_vcpu *vcpu, ulong guest_ea) kvmppc_mmu_pte_flush_long() argument
200 void kvmppc_mmu_pte_flush(struct kvm_vcpu *vcpu, ulong guest_ea, ulong ea_mask) kvmppc_mmu_pte_flush() argument
223 static void kvmppc_mmu_pte_vflush_short(struct kvm_vcpu *vcpu, u64 guest_vp) kvmppc_mmu_pte_vflush_short() argument
244 static void kvmppc_mmu_pte_vflush_64k(struct kvm_vcpu *vcpu, u64 guest_vp) kvmppc_mmu_pte_vflush_64k() argument
266 static void kvmppc_mmu_pte_vflush_long(struct kvm_vcpu *vcpu, u64 guest_vp) kvmppc_mmu_pte_vflush_long() argument
286 void kvmppc_mmu_pte_vflush(struct kvm_vcpu *vcpu, u64 guest_vp, u64 vp_mask) kvmppc_mmu_pte_vflush() argument
309 void kvmppc_mmu_pte_pflush(struct kvm_vcpu *vcpu, ulong pa_start, ulong pa_end) kvmppc_mmu_pte_pflush() argument
331 struct hpte_cache *kvmppc_mmu_hpte_cache_next(struct kvm_vcpu *vcpu) kvmppc_mmu_hpte_cache_next() argument
349 void kvmppc_mmu_hpte_destroy(struct kvm_vcpu *vcpu) kvmppc_mmu_hpte_destroy() argument
362 int kvmppc_mmu_hpte_init(struct kvm_vcpu *vcpu) kvmppc_mmu_hpte_init() argument
H A Dbook3s_pr_papr.c26 static unsigned long get_pteg_addr(struct kvm_vcpu *vcpu, long pte_index) get_pteg_addr() argument
39 static int kvmppc_h_pr_enter(struct kvm_vcpu *vcpu) kvmppc_h_pr_enter() argument
85 static int kvmppc_h_pr_remove(struct kvm_vcpu *vcpu) kvmppc_h_pr_remove() argument
140 static int kvmppc_h_pr_bulk_remove(struct kvm_vcpu *vcpu) kvmppc_h_pr_bulk_remove() argument
203 static int kvmppc_h_pr_protect(struct kvm_vcpu *vcpu) kvmppc_h_pr_protect() argument
247 static int kvmppc_h_pr_put_tce(struct kvm_vcpu *vcpu) kvmppc_h_pr_put_tce() argument
261 static int kvmppc_h_pr_logical_ci_load(struct kvm_vcpu *vcpu) kvmppc_h_pr_logical_ci_load() argument
272 static int kvmppc_h_pr_logical_ci_store(struct kvm_vcpu *vcpu) kvmppc_h_pr_logical_ci_store() argument
283 static int kvmppc_h_pr_xics_hcall(struct kvm_vcpu *vcpu, u32 cmd) kvmppc_h_pr_xics_hcall() argument
290 int kvmppc_h_pr(struct kvm_vcpu *vcpu, unsigned long cmd) kvmppc_h_pr() argument
H A De500.c218 unsigned int kvmppc_e500_get_tlb_stid(struct kvm_vcpu *vcpu, kvmppc_e500_get_tlb_stid() argument
225 void kvmppc_set_pid(struct kvm_vcpu *vcpu, u32 pid) kvmppc_set_pid() argument
297 void kvmppc_mmu_msr_notify(struct kvm_vcpu *vcpu, u32 old_msr) kvmppc_mmu_msr_notify() argument
303 static void kvmppc_core_vcpu_load_e500(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load_e500() argument
311 static void kvmppc_core_vcpu_put_e500(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put_e500() argument
350 int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_setup() argument
365 static int kvmppc_core_get_sregs_e500(struct kvm_vcpu *vcpu, kvmppc_core_get_sregs_e500() argument
390 static int kvmppc_core_set_sregs_e500(struct kvm_vcpu *vcpu, kvmppc_core_set_sregs_e500() argument
426 static int kvmppc_get_one_reg_e500(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg_e500() argument
433 static int kvmppc_set_one_reg_e500(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg_e500() argument
444 struct kvm_vcpu *vcpu; kvmppc_core_vcpu_create_e500() local
483 static void kvmppc_core_vcpu_free_e500(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free_e500() argument
H A De500mc.c31 void kvmppc_set_pending_interrupt(struct kvm_vcpu *vcpu, enum int_class type) kvmppc_set_pending_interrupt() argument
104 void kvmppc_set_pid(struct kvm_vcpu *vcpu, u32 pid) kvmppc_set_pid() argument
109 void kvmppc_mmu_msr_notify(struct kvm_vcpu *vcpu, u32 old_msr) kvmppc_mmu_msr_notify() argument
116 static void kvmppc_core_vcpu_load_e500mc(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load_e500mc() argument
153 static void kvmppc_core_vcpu_put_e500mc(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put_e500mc() argument
199 int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_setup() argument
218 static int kvmppc_core_get_sregs_e500mc(struct kvm_vcpu *vcpu, kvmppc_core_get_sregs_e500mc() argument
242 static int kvmppc_core_set_sregs_e500mc(struct kvm_vcpu *vcpu, kvmppc_core_set_sregs_e500mc() argument
276 static int kvmppc_get_one_reg_e500mc(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg_e500mc() argument
292 static int kvmppc_set_one_reg_e500mc(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg_e500mc() argument
312 struct kvm_vcpu *vcpu; kvmppc_core_vcpu_create_e500mc() local
350 static void kvmppc_core_vcpu_free_e500mc(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free_e500mc() argument
H A Dbook3s_64_mmu.c39 static void kvmppc_mmu_book3s_64_reset_msr(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_64_reset_msr() argument
98 static u64 kvmppc_mmu_book3s_64_ea_to_vp(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_64_ea_to_vp() argument
133 static hva_t kvmppc_mmu_book3s_64_get_pteg(struct kvm_vcpu *vcpu, kvmppc_mmu_book3s_64_get_pteg() argument
208 static int kvmppc_mmu_book3s_64_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_64_xlate() argument
378 static void kvmppc_mmu_book3s_64_slbmte(struct kvm_vcpu *vcpu, u64 rs, u64 rb) kvmppc_mmu_book3s_64_slbmte() argument
430 static u64 kvmppc_mmu_book3s_64_slbmfee(struct kvm_vcpu *vcpu, u64 slb_nr) kvmppc_mmu_book3s_64_slbmfee() argument
442 static u64 kvmppc_mmu_book3s_64_slbmfev(struct kvm_vcpu *vcpu, u64 slb_nr) kvmppc_mmu_book3s_64_slbmfev() argument
454 static void kvmppc_mmu_book3s_64_slbie(struct kvm_vcpu *vcpu, u64 ea) kvmppc_mmu_book3s_64_slbie() argument
476 static void kvmppc_mmu_book3s_64_slbia(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_64_slbia() argument
494 static void kvmppc_mmu_book3s_64_mtsrin(struct kvm_vcpu *vcpu, u32 srnum, kvmppc_mmu_book3s_64_mtsrin() argument
534 static void kvmppc_mmu_book3s_64_tlbie(struct kvm_vcpu *vcpu, ulong va, kvmppc_mmu_book3s_64_tlbie() argument
568 static int segment_contains_magic_page(struct kvm_vcpu *vcpu, ulong esid) segment_contains_magic_page() argument
577 static int kvmppc_mmu_book3s_64_esid_to_vsid(struct kvm_vcpu *vcpu, ulong esid, kvmppc_mmu_book3s_64_esid_to_vsid() argument
651 static bool kvmppc_mmu_book3s_64_is_dcbz32(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_64_is_dcbz32() argument
656 void kvmppc_mmu_book3s_64_init(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_64_init() argument
44 kvmppc_mmu_book3s_64_find_slbe( struct kvm_vcpu *vcpu, gva_t eaddr) kvmppc_mmu_book3s_64_find_slbe() argument
H A Dbook3s_emulate.c77 static bool spr_allowed(struct kvm_vcpu *vcpu, enum priv_level level) spr_allowed() argument
90 int kvmppc_core_emulate_op_pr(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_core_emulate_op_pr() argument
321 void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat, bool upper, kvmppc_set_bat() argument
341 static struct kvmppc_bat *kvmppc_find_bat(struct kvm_vcpu *vcpu, int sprn) kvmppc_find_bat() argument
366 int kvmppc_core_emulate_mtspr_pr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) kvmppc_core_emulate_mtspr_pr() argument
515 int kvmppc_core_emulate_mfspr_pr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) kvmppc_core_emulate_mfspr_pr() argument
659 u32 kvmppc_alignment_dsisr(struct kvm_vcpu *vcpu, unsigned int inst) kvmppc_alignment_dsisr() argument
664 ulong kvmppc_alignment_dar(struct kvm_vcpu *vcpu, unsigned int inst) kvmppc_alignment_dar() argument
H A Dbook3s_xics.h63 struct kvm_vcpu *vcpu; member in struct:kvmppc_icp
116 struct kvm_vcpu *vcpu = NULL; kvmppc_xics_find_server() local
H A De500_mmu.c67 static unsigned int get_tlb_esel(struct kvm_vcpu *vcpu, int tlbsel) get_tlb_esel() argument
129 static inline void kvmppc_e500_deliver_tlb_miss(struct kvm_vcpu *vcpu, kvmppc_e500_deliver_tlb_miss() argument
196 static void kvmppc_set_tlb1map_range(struct kvm_vcpu *vcpu, kvmppc_set_tlb1map_range() argument
248 int kvmppc_e500_emul_tlbivax(struct kvm_vcpu *vcpu, gva_t ea) kvmppc_e500_emul_tlbivax() argument
310 int kvmppc_e500_emul_tlbilx(struct kvm_vcpu *vcpu, int type, gva_t ea) kvmppc_e500_emul_tlbilx() argument
325 int kvmppc_e500_emul_tlbre(struct kvm_vcpu *vcpu) kvmppc_e500_emul_tlbre() argument
344 int kvmppc_e500_emul_tlbsx(struct kvm_vcpu *vcpu, gva_t ea) kvmppc_e500_emul_tlbsx() argument
393 int kvmppc_e500_emul_tlbwe(struct kvm_vcpu *vcpu) kvmppc_e500_emul_tlbwe() argument
456 static int kvmppc_e500_tlb_search(struct kvm_vcpu *vcpu, kvmppc_e500_tlb_search() argument
472 int kvmppc_core_vcpu_translate(struct kvm_vcpu *vcpu, kvmppc_core_vcpu_translate() argument
498 int kvmppc_mmu_itlb_index(struct kvm_vcpu *vcpu, gva_t eaddr) kvmppc_mmu_itlb_index() argument
505 int kvmppc_mmu_dtlb_index(struct kvm_vcpu *vcpu, gva_t eaddr) kvmppc_mmu_dtlb_index() argument
512 void kvmppc_mmu_itlb_miss(struct kvm_vcpu *vcpu) kvmppc_mmu_itlb_miss() argument
519 void kvmppc_mmu_dtlb_miss(struct kvm_vcpu *vcpu) kvmppc_mmu_dtlb_miss() argument
526 gpa_t kvmppc_mmu_xlate(struct kvm_vcpu *vcpu, unsigned int index, kvmppc_mmu_xlate() argument
539 void kvmppc_mmu_destroy_e500(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy_e500() argument
574 void kvmppc_get_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) kvmppc_get_sregs_e500_tlb() argument
590 int kvmppc_set_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) kvmppc_set_sregs_e500_tlb() argument
604 int kvmppc_get_one_reg_e500_tlb(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg_e500_tlb() argument
657 int kvmppc_set_one_reg_e500_tlb(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg_e500_tlb() argument
724 static int vcpu_mmu_geometry_update(struct kvm_vcpu *vcpu, vcpu_mmu_geometry_update() argument
738 int kvm_vcpu_ioctl_config_tlb(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_config_tlb() argument
862 int kvm_vcpu_ioctl_dirty_tlb(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_dirty_tlb() argument
872 static int vcpu_mmu_init(struct kvm_vcpu *vcpu, vcpu_mmu_init() argument
906 struct kvm_vcpu *vcpu = &vcpu_e500->vcpu; kvmppc_e500_tlb_init() local
H A Dbook3s_hv_rm_mmu.c376 long kvmppc_h_enter(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_enter() argument
483 long kvmppc_h_remove(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_remove() argument
490 long kvmppc_h_bulk_remove(struct kvm_vcpu *vcpu) kvmppc_h_bulk_remove() argument
600 long kvmppc_h_protect(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_protect() argument
664 long kvmppc_h_read(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_read() argument
698 long kvmppc_h_clear_ref(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_clear_ref() argument
744 long kvmppc_h_clear_mod(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_clear_mod() argument
922 long kvmppc_hpte_hv_fault(struct kvm_vcpu *vcpu, unsigned long addr, kvmppc_hpte_hv_fault() argument
H A Dbook3s_xics.c570 static noinline unsigned long kvmppc_h_xirr(struct kvm_vcpu *vcpu) kvmppc_h_xirr() argument
604 static noinline int kvmppc_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, kvmppc_h_ipi() argument
689 static int kvmppc_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server) kvmppc_h_ipoll() argument
706 static noinline void kvmppc_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) kvmppc_h_cppr() argument
763 static noinline int kvmppc_h_eoi(struct kvm_vcpu *vcpu, unsigned long xirr) kvmppc_h_eoi() argument
815 static noinline int kvmppc_xics_rm_complete(struct kvm_vcpu *vcpu, u32 hcall) kvmppc_xics_rm_complete() argument
845 int kvmppc_xics_hcall(struct kvm_vcpu *vcpu, u32 req) kvmppc_xics_hcall() argument
899 struct kvm_vcpu *vcpu; xics_debug_show() local
1036 int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu, unsigned long server_num) kvmppc_xics_create_icp() argument
1061 u64 kvmppc_xics_get_icp(struct kvm_vcpu *vcpu) kvmppc_xics_get_icp() argument
1075 int kvmppc_xics_set_icp(struct kvm_vcpu *vcpu, u64 icpval) kvmppc_xics_set_icp() argument
1361 int kvmppc_xics_connect_vcpu(struct kvm_device *dev, struct kvm_vcpu *vcpu, kvmppc_xics_connect_vcpu() argument
1381 void kvmppc_xics_free_icp(struct kvm_vcpu *vcpu) kvmppc_xics_free_icp() argument
H A De500.h61 struct kvm_vcpu vcpu; member in struct:kvmppc_vcpu_e500
103 static inline struct kvmppc_vcpu_e500 *to_e500(struct kvm_vcpu *vcpu) to_e500() argument
211 static inline unsigned int get_cur_pid(struct kvm_vcpu *vcpu) get_cur_pid() argument
216 static inline unsigned int get_cur_as(struct kvm_vcpu *vcpu) get_cur_as() argument
221 static inline unsigned int get_cur_pr(struct kvm_vcpu *vcpu) get_cur_pr() argument
226 static inline unsigned int get_cur_spid(const struct kvm_vcpu *vcpu) get_cur_spid() argument
231 static inline unsigned int get_cur_sas(const struct kvm_vcpu *vcpu) get_cur_sas() argument
236 static inline unsigned int get_tlb_tlbsel(const struct kvm_vcpu *vcpu) get_tlb_tlbsel() argument
245 static inline unsigned int get_tlb_nv_bit(const struct kvm_vcpu *vcpu) get_tlb_nv_bit() argument
250 static inline unsigned int get_tlb_esel_bit(const struct kvm_vcpu *vcpu) get_tlb_esel_bit() argument
255 static inline int tlbe_is_host_safe(const struct kvm_vcpu *vcpu, tlbe_is_host_safe() argument
308 static inline int get_lpid(struct kvm_vcpu *vcpu) get_lpid() argument
316 static inline unsigned int get_tlbmiss_tid(struct kvm_vcpu *vcpu) get_tlbmiss_tid() argument
328 static inline bool has_feature(const struct kvm_vcpu *vcpu, has_feature() argument
H A De500_mmu_host.c160 void kvmppc_map_magic(struct kvm_vcpu *vcpu) kvmppc_map_magic() argument
297 void kvmppc_core_flush_tlb(struct kvm_vcpu *vcpu) kvmppc_core_flush_tlb() argument
588 void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 eaddr, gpa_t gpaddr, kvmppc_mmu_map() argument
627 int kvmppc_load_last_inst(struct kvm_vcpu *vcpu, enum instruction_type type, kvmppc_load_last_inst() argument
717 int kvmppc_load_last_inst(struct kvm_vcpu *vcpu, enum instruction_type type, kvmppc_load_last_inst() argument
306 kvmppc_e500_setup_stlbe( struct kvm_vcpu *vcpu, struct kvm_book3e_206_tlb_entry *gtlbe, int tsize, struct tlbe_ref *ref, u64 gvaddr, struct kvm_book3e_206_tlb_entry *stlbe) kvmppc_e500_setup_stlbe() argument
H A Dbook3s.c69 void kvmppc_unfixup_split_real(struct kvm_vcpu *vcpu) kvmppc_unfixup_split_real() argument
80 static inline unsigned long kvmppc_interrupt_offset(struct kvm_vcpu *vcpu) kvmppc_interrupt_offset() argument
87 static inline void kvmppc_update_int_pending(struct kvm_vcpu *vcpu, kvmppc_update_int_pending() argument
98 static inline bool kvmppc_critical_section(struct kvm_vcpu *vcpu) kvmppc_critical_section() argument
124 void kvmppc_inject_interrupt(struct kvm_vcpu *vcpu, int vec, u64 flags) kvmppc_inject_interrupt() argument
161 void kvmppc_book3s_dequeue_irqprio(struct kvm_vcpu *vcpu, kvmppc_book3s_dequeue_irqprio() argument
173 void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec) kvmppc_book3s_queue_irqprio() argument
185 void kvmppc_core_queue_program(struct kvm_vcpu *vcpu, ulong flags) kvmppc_core_queue_program() argument
192 void kvmppc_core_queue_dec(struct kvm_vcpu *vcpu) kvmppc_core_queue_dec() argument
198 int kvmppc_core_pending_dec(struct kvm_vcpu *vcpu) kvmppc_core_pending_dec() argument
204 void kvmppc_core_dequeue_dec(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_dec() argument
210 void kvmppc_core_queue_external(struct kvm_vcpu *vcpu, kvmppc_core_queue_external() argument
221 void kvmppc_core_dequeue_external(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_external() argument
227 void kvmppc_core_queue_data_storage(struct kvm_vcpu *vcpu, ulong dar, kvmppc_core_queue_data_storage() argument
235 void kvmppc_core_queue_inst_storage(struct kvm_vcpu *vcpu, ulong flags) kvmppc_core_queue_inst_storage() argument
244 static int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, kvmppc_book3s_irqprio_deliver() argument
325 static bool clear_irqprio(struct kvm_vcpu *vcpu, unsigned int priority) clear_irqprio() argument
339 int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu) kvmppc_core_prepare_to_enter() argument
369 pfn_t kvmppc_gpa_to_pfn(struct kvm_vcpu *vcpu, gpa_t gpa, bool writing, kvmppc_gpa_to_pfn() argument
395 int kvmppc_xlate(struct kvm_vcpu *vcpu, ulong eaddr, enum xlate_instdata xlid, kvmppc_xlate() argument
425 int kvmppc_load_last_inst(struct kvm_vcpu *vcpu, enum instruction_type type, kvmppc_load_last_inst() argument
442 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument
447 int kvmppc_subarch_vcpu_init(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_init() argument
452 void kvmppc_subarch_vcpu_uninit(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_uninit() argument
456 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument
462 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument
468 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument
496 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument
523 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument
528 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument
533 int kvmppc_get_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg() argument
609 int kvmppc_set_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg() argument
683 void kvmppc_core_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load() argument
688 void kvmppc_core_vcpu_put(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put() argument
693 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u64 msr) kvmppc_set_msr() argument
699 int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) kvmppc_vcpu_run() argument
704 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
710 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument
717 void kvmppc_decrementer_func(struct kvm_vcpu *vcpu) kvmppc_decrementer_func() argument
728 void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free() argument
733 int kvmppc_core_check_requests(struct kvm_vcpu *vcpu) kvmppc_core_check_requests() argument
801 void kvmppc_mmu_destroy(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy() argument
827 int kvmppc_h_logical_ci_load(struct kvm_vcpu *vcpu) kvmppc_h_logical_ci_load() argument
869 int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu) kvmppc_h_logical_ci_store() argument
H A Dbook3s_pr.c65 static bool kvmppc_is_split_real(struct kvm_vcpu *vcpu) kvmppc_is_split_real() argument
71 static void kvmppc_fixup_split_real(struct kvm_vcpu *vcpu) kvmppc_fixup_split_real() argument
94 static void kvmppc_core_vcpu_load_pr(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load_pr() argument
118 static void kvmppc_core_vcpu_put_pr(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put_pr() argument
182 void kvmppc_copy_from_svcpu(struct kvm_vcpu *vcpu, kvmppc_copy_from_svcpu() argument
238 static int kvmppc_core_check_requests_pr(struct kvm_vcpu *vcpu) kvmppc_core_check_requests_pr() argument
255 struct kvm_vcpu *vcpu; do_kvm_unmap_hva() local
319 static void kvmppc_recalc_shadow_msr(struct kvm_vcpu *vcpu) kvmppc_recalc_shadow_msr() argument
337 static void kvmppc_set_msr_pr(struct kvm_vcpu *vcpu, u64 msr) kvmppc_set_msr_pr() argument
402 void kvmppc_set_pvr_pr(struct kvm_vcpu *vcpu, u32 pvr) kvmppc_set_pvr_pr() argument
488 static void kvmppc_patch_dcbz(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte) kvmppc_patch_dcbz() argument
515 static int kvmppc_visible_gpa(struct kvm_vcpu *vcpu, gpa_t gpa) kvmppc_visible_gpa() argument
530 int kvmppc_handle_pagefault(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_pagefault() argument
648 void kvmppc_giveup_ext(struct kvm_vcpu *vcpu, ulong msr) kvmppc_giveup_ext() argument
691 static void kvmppc_giveup_fac(struct kvm_vcpu *vcpu, ulong fac) kvmppc_giveup_fac() argument
710 static int kvmppc_handle_ext(struct kvm_vcpu *vcpu, unsigned int exit_nr, kvmppc_handle_ext() argument
779 static void kvmppc_handle_lost_ext(struct kvm_vcpu *vcpu) kvmppc_handle_lost_ext() argument
806 static void kvmppc_trigger_fac_interrupt(struct kvm_vcpu *vcpu, ulong fac) kvmppc_trigger_fac_interrupt() argument
814 static void kvmppc_emulate_fac(struct kvm_vcpu *vcpu, ulong fac) kvmppc_emulate_fac() argument
828 static int kvmppc_handle_fac(struct kvm_vcpu *vcpu, ulong fac) kvmppc_handle_fac() argument
871 void kvmppc_set_fscr(struct kvm_vcpu *vcpu, u64 fscr) kvmppc_set_fscr() argument
881 int kvmppc_handle_exit_pr(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_exit_pr() argument
1249 static int kvm_arch_vcpu_ioctl_get_sregs_pr(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs_pr() argument
1276 static int kvm_arch_vcpu_ioctl_set_sregs_pr(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs_pr() argument
1312 static int kvmppc_get_one_reg_pr(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg_pr() argument
1342 static void kvmppc_set_lpcr_pr(struct kvm_vcpu *vcpu, u64 new_lpcr) kvmppc_set_lpcr_pr() argument
1350 static int kvmppc_set_one_reg_pr(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg_pr() argument
1376 struct kvm_vcpu *vcpu; kvmppc_core_vcpu_create_pr() local
1451 static void kvmppc_core_vcpu_free_pr(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free_pr() argument
1464 static int kvmppc_vcpu_run_pr(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) kvmppc_vcpu_run_pr() argument
1535 struct kvm_vcpu *vcpu; kvm_vm_ioctl_get_dirty_log_pr() local
1607 struct kvm_vcpu *vcpu; kvm_vm_ioctl_get_smmu_info_pr() local
145 kvmppc_copy_to_svcpu(struct kvmppc_book3s_shadow_vcpu *svcpu, struct kvm_vcpu *vcpu) kvmppc_copy_to_svcpu() argument
H A Dpowerpc.c55 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument
69 int kvmppc_prepare_to_enter(struct kvm_vcpu *vcpu) kvmppc_prepare_to_enter() argument
129 static void kvmppc_swab_shared(struct kvm_vcpu *vcpu) kvmppc_swab_shared() argument
149 int kvmppc_kvm_pv(struct kvm_vcpu *vcpu) kvmppc_kvm_pv() argument
241 int kvmppc_sanity_check(struct kvm_vcpu *vcpu) kvmppc_sanity_check() argument
270 int kvmppc_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_emulate_mmio() argument
312 int kvmppc_st(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, kvmppc_st() argument
348 int kvmppc_ld(struct kvm_vcpu *vcpu, ulong *eaddr, int size, void *ptr, kvmppc_ld() argument
438 struct kvm_vcpu *vcpu; kvm_arch_destroy_vm() local
624 struct kvm_vcpu *vcpu; kvm_arch_vcpu_create() local
633 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument
637 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument
656 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument
661 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument
668 struct kvm_vcpu *vcpu; kvmppc_decrementer_wakeup() local
676 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument
691 void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) kvm_arch_vcpu_uninit() argument
697 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument
712 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument
720 static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, kvmppc_complete_mmio_load() argument
785 int kvmppc_handle_load(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_load() argument
832 int kvmppc_handle_loads(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_loads() argument
844 int kvmppc_handle_store(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_store() argument
902 int kvm_vcpu_ioctl_get_one_reg(struct kvm_vcpu *vcpu, struct kvm_one_reg *reg) kvm_vcpu_ioctl_get_one_reg() argument
950 int kvm_vcpu_ioctl_set_one_reg(struct kvm_vcpu *vcpu, struct kvm_one_reg *reg) kvm_vcpu_ioctl_set_one_reg() argument
999 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_arch_vcpu_ioctl_run() argument
1040 int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, struct kvm_interrupt *irq) kvm_vcpu_ioctl_interrupt() argument
1054 static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_enable_cap() argument
1146 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument
1152 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument
1161 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local
1217 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument
H A Dbook3s_64_mmu_hv.c175 void kvmppc_map_vrma(struct kvm_vcpu *vcpu, struct kvm_memory_slot *memslot, kvmppc_map_vrma() argument
246 static void kvmppc_mmu_book3s_64_hv_reset_msr(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_64_hv_reset_msr() argument
278 static struct kvmppc_slb *kvmppc_mmu_book3s_hv_find_slbe(struct kvm_vcpu *vcpu, kvmppc_mmu_book3s_hv_find_slbe() argument
308 static int kvmppc_mmu_book3s_64_hv_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_64_hv_xlate() argument
391 static int kvmppc_hv_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_hv_emulate_mmio() argument
436 int kvmppc_book3s_hv_page_fault(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_book3s_hv_page_fault() argument
1033 struct kvm_vcpu *vcpu; kvmppc_hv_get_dirty_log() local
1634 void kvmppc_mmu_book3s_hv_init(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_hv_init() argument
H A Dbook3s_hv.c114 static void kvmppc_fast_vcpu_kick_hv(struct kvm_vcpu *vcpu) kvmppc_fast_vcpu_kick_hv() argument
188 static void kvmppc_core_vcpu_load_hv(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load_hv() argument
211 static void kvmppc_core_vcpu_put_hv(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put_hv() argument
225 static void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr) kvmppc_set_msr_hv() argument
237 static void kvmppc_set_pvr_hv(struct kvm_vcpu *vcpu, u32 pvr) kvmppc_set_pvr_hv() argument
242 static int kvmppc_set_arch_compat(struct kvm_vcpu *vcpu, u32 arch_compat) kvmppc_set_arch_compat() argument
282 static void kvmppc_dump_regs(struct kvm_vcpu *vcpu) kvmppc_dump_regs() argument
331 static void init_vpa(struct kvm_vcpu *vcpu, struct lppaca *vpa) init_vpa() argument
337 static int set_vpa(struct kvm_vcpu *vcpu, struct kvmppc_vpa *v, set_vpa() argument
369 static unsigned long do_h_register_vpa(struct kvm_vcpu *vcpu, do_h_register_vpa() argument
479 static void kvmppc_update_vpa(struct kvm_vcpu *vcpu, struct kvmppc_vpa *vpap) kvmppc_update_vpa() argument
529 static void kvmppc_update_vpas(struct kvm_vcpu *vcpu) kvmppc_update_vpas() argument
570 static void kvmppc_create_dtl_entry(struct kvm_vcpu *vcpu, kvmppc_create_dtl_entry() argument
608 static bool kvmppc_power8_compatible(struct kvm_vcpu *vcpu) kvmppc_power8_compatible() argument
618 static int kvmppc_h_set_mode(struct kvm_vcpu *vcpu, unsigned long mflags, kvmppc_h_set_mode() argument
672 static int kvmppc_get_yield_count(struct kvm_vcpu *vcpu) kvmppc_get_yield_count() argument
685 int kvmppc_pseries_do_hcall(struct kvm_vcpu *vcpu) kvmppc_pseries_do_hcall() argument
835 static int kvmppc_handle_exit_hv(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_exit_hv() argument
958 static int kvm_arch_vcpu_ioctl_get_sregs_hv(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs_hv() argument
973 static int kvm_arch_vcpu_ioctl_set_sregs_hv(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs_hv() argument
995 static void kvmppc_set_lpcr(struct kvm_vcpu *vcpu, u64 new_lpcr, kvmppc_set_lpcr() argument
1009 struct kvm_vcpu *vcpu; kvmppc_set_lpcr() local
1039 static int kvmppc_get_one_reg_hv(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg_hv() argument
1231 static int kvmppc_set_one_reg_hv(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg_hv() argument
1475 struct kvm_vcpu *vcpu; member in struct:debugfs_timings_state
1482 struct kvm_vcpu *vcpu = inode->i_private; debugfs_timings_open() local
1509 struct kvm_vcpu *vcpu = p->vcpu; debugfs_timings_read() local
1586 static void debugfs_vcpu_init(struct kvm_vcpu *vcpu, unsigned int id) debugfs_vcpu_init() argument
1603 static void debugfs_vcpu_init(struct kvm_vcpu *vcpu, unsigned int id) debugfs_vcpu_init() argument
1611 struct kvm_vcpu *vcpu; kvmppc_core_vcpu_create_hv() local
1695 static void kvmppc_core_vcpu_free_hv(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free_hv() argument
1706 static int kvmppc_core_check_requests_hv(struct kvm_vcpu *vcpu) kvmppc_core_check_requests_hv() argument
1712 static void kvmppc_set_timer(struct kvm_vcpu *vcpu) kvmppc_set_timer() argument
1730 static void kvmppc_end_cede(struct kvm_vcpu *vcpu) kvmppc_end_cede() argument
1804 static void kvmppc_start_thread(struct kvm_vcpu *vcpu, struct kvmppc_vcore *vc) kvmppc_start_thread() argument
2163 struct kvm_vcpu *vcpu, *vnext; prepare_threads() local
2216 struct kvm_vcpu *vcpu, *vnext; post_guest_process() local
2275 struct kvm_vcpu *vcpu, *vnext; kvmppc_run_core() local
2520 struct kvm_vcpu *vcpu; kvmppc_vcore_blocked() local
2553 static int kvmppc_run_vcpu(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) kvmppc_run_vcpu() argument
2680 static int kvmppc_vcpu_run_hv(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_vcpu_run_hv() argument
2893 static void kvmppc_mmu_destroy_hv(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy_hv() argument
2898 static int kvmppc_hv_setup_htab_rma(struct kvm_vcpu *vcpu) kvmppc_hv_setup_htab_rma() argument
3052 static int kvmppc_core_emulate_op_hv(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_core_emulate_op_hv() argument
3058 static int kvmppc_core_emulate_mtspr_hv(struct kvm_vcpu *vcpu, int sprn, kvmppc_core_emulate_mtspr_hv() argument
3064 static int kvmppc_core_emulate_mfspr_hv(struct kvm_vcpu *vcpu, int sprn, kvmppc_core_emulate_mfspr_hv() argument
811 kvmppc_emulate_debug_inst(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_emulate_debug_inst() argument
1741 kvmppc_remove_runnable(struct kvmppc_vcore *vc, struct kvm_vcpu *vcpu) kvmppc_remove_runnable() argument
2500 kvmppc_wait_for_exec(struct kvmppc_vcore *vc, struct kvm_vcpu *vcpu, int wait_state) kvmppc_wait_for_exec() argument
H A Dbook3s_paired_singles.c161 static inline void kvmppc_sync_qpr(struct kvm_vcpu *vcpu, int rt) kvmppc_sync_qpr() argument
166 static void kvmppc_inject_pf(struct kvm_vcpu *vcpu, ulong eaddr, bool is_store) kvmppc_inject_pf() argument
183 static int kvmppc_emulate_fpr_load(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_emulate_fpr_load() argument
227 static int kvmppc_emulate_fpr_store(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_emulate_fpr_store() argument
273 static int kvmppc_emulate_psq_load(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_emulate_psq_load() argument
316 static int kvmppc_emulate_psq_store(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_emulate_psq_store() argument
355 static bool kvmppc_inst_is_paired_single(struct kvm_vcpu *vcpu, u32 inst) kvmppc_inst_is_paired_single() argument
501 static int kvmppc_ps_three_in(struct kvm_vcpu *vcpu, bool rc, kvmppc_ps_three_in() argument
549 static int kvmppc_ps_two_in(struct kvm_vcpu *vcpu, bool rc, kvmppc_ps_two_in() argument
601 static int kvmppc_ps_one_in(struct kvm_vcpu *vcpu, bool rc, kvmppc_ps_one_in() argument
632 int kvmppc_emulate_paired_single(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_emulate_paired_single() argument
H A Dbooke.c75 void kvmppc_dump_vcpu(struct kvm_vcpu *vcpu) kvmppc_dump_vcpu() argument
96 void kvmppc_vcpu_disable_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_disable_spe() argument
105 static void kvmppc_vcpu_enable_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_enable_spe() argument
114 static void kvmppc_vcpu_sync_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_spe() argument
124 static void kvmppc_vcpu_sync_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_spe() argument
138 static inline void kvmppc_load_guest_fp(struct kvm_vcpu *vcpu) kvmppc_load_guest_fp() argument
154 static inline void kvmppc_save_guest_fp(struct kvm_vcpu *vcpu) kvmppc_save_guest_fp() argument
163 static void kvmppc_vcpu_sync_fpu(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_fpu() argument
178 static inline void kvmppc_load_guest_altivec(struct kvm_vcpu *vcpu) kvmppc_load_guest_altivec() argument
196 static inline void kvmppc_save_guest_altivec(struct kvm_vcpu *vcpu) kvmppc_save_guest_altivec() argument
207 static void kvmppc_vcpu_sync_debug(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_debug() argument
234 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr) kvmppc_set_msr() argument
250 static void kvmppc_booke_queue_irqprio(struct kvm_vcpu *vcpu, kvmppc_booke_queue_irqprio() argument
257 void kvmppc_core_queue_dtlb_miss(struct kvm_vcpu *vcpu, kvmppc_core_queue_dtlb_miss() argument
265 void kvmppc_core_queue_data_storage(struct kvm_vcpu *vcpu, kvmppc_core_queue_data_storage() argument
273 void kvmppc_core_queue_itlb_miss(struct kvm_vcpu *vcpu) kvmppc_core_queue_itlb_miss() argument
278 void kvmppc_core_queue_inst_storage(struct kvm_vcpu *vcpu, ulong esr_flags) kvmppc_core_queue_inst_storage() argument
284 static void kvmppc_core_queue_alignment(struct kvm_vcpu *vcpu, ulong dear_flags, kvmppc_core_queue_alignment() argument
292 void kvmppc_core_queue_program(struct kvm_vcpu *vcpu, ulong esr_flags) kvmppc_core_queue_program() argument
298 void kvmppc_core_queue_dec(struct kvm_vcpu *vcpu) kvmppc_core_queue_dec() argument
303 int kvmppc_core_pending_dec(struct kvm_vcpu *vcpu) kvmppc_core_pending_dec() argument
308 void kvmppc_core_dequeue_dec(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_dec() argument
313 void kvmppc_core_queue_external(struct kvm_vcpu *vcpu, kvmppc_core_queue_external() argument
324 void kvmppc_core_dequeue_external(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_external() argument
330 static void kvmppc_core_queue_watchdog(struct kvm_vcpu *vcpu) kvmppc_core_queue_watchdog() argument
335 static void kvmppc_core_dequeue_watchdog(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_watchdog() argument
340 void kvmppc_core_queue_debug(struct kvm_vcpu *vcpu) kvmppc_core_queue_debug() argument
345 void kvmppc_core_dequeue_debug(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_debug() argument
350 static void set_guest_srr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_srr() argument
356 static void set_guest_csrr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_csrr() argument
362 static void set_guest_dsrr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_dsrr() argument
372 static void set_guest_mcsrr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_mcsrr() argument
379 static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu, kvmppc_booke_irqprio_deliver() argument
541 static unsigned long watchdog_next_timeout(struct kvm_vcpu *vcpu) watchdog_next_timeout() argument
567 static void arm_next_watchdog(struct kvm_vcpu *vcpu) arm_next_watchdog() argument
594 struct kvm_vcpu *vcpu = (struct kvm_vcpu *)data; kvmppc_watchdog_func() local
640 static void update_timer_ints(struct kvm_vcpu *vcpu) update_timer_ints() argument
653 static void kvmppc_core_check_exceptions(struct kvm_vcpu *vcpu) kvmppc_core_check_exceptions() argument
673 int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu) kvmppc_core_prepare_to_enter() argument
698 int kvmppc_core_check_requests(struct kvm_vcpu *vcpu) kvmppc_core_check_requests() argument
724 int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) kvmppc_vcpu_run() argument
794 static int emulation_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) emulation_exit() argument
828 static int kvmppc_handle_debug(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_handle_debug() argument
901 static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, kvmppc_restart_interrupt() argument
948 static int kvmppc_resume_inst_load(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_resume_inst_load() argument
975 int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_exit() argument
1359 static void kvmppc_set_tsr(struct kvm_vcpu *vcpu, u32 new_tsr) kvmppc_set_tsr() argument
1372 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument
1401 int kvmppc_subarch_vcpu_init(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_init() argument
1416 void kvmppc_subarch_vcpu_uninit(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_uninit() argument
1421 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument
1449 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument
1477 static void get_sregs_base(struct kvm_vcpu *vcpu, get_sregs_base() argument
1496 static int set_sregs_base(struct kvm_vcpu *vcpu, set_sregs_base() argument
1521 static void get_sregs_arch206(struct kvm_vcpu *vcpu, get_sregs_arch206() argument
1533 static int set_sregs_arch206(struct kvm_vcpu *vcpu, set_sregs_arch206() argument
1550 int kvmppc_get_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) kvmppc_get_sregs_ivor() argument
1573 int kvmppc_set_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) kvmppc_set_sregs_ivor() argument
1598 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument
1608 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument
1627 int kvmppc_get_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg() argument
1683 int kvmppc_set_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg() argument
1752 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument
1757 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument
1762 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
1805 void kvmppc_set_epcr(struct kvm_vcpu *vcpu, u32 new_epcr) kvmppc_set_epcr() argument
1817 void kvmppc_set_tcr(struct kvm_vcpu *vcpu, u32 new_tcr) kvmppc_set_tcr() argument
1824 void kvmppc_set_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits) kvmppc_set_tsr_bits() argument
1832 void kvmppc_clr_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits) kvmppc_clr_tsr_bits() argument
1846 void kvmppc_decrementer_func(struct kvm_vcpu *vcpu) kvmppc_decrementer_func() argument
1911 void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, bool set) kvm_guest_protect_msr() argument
1934 int kvmppc_xlate(struct kvm_vcpu *vcpu, ulong eaddr, enum xlate_instdata xlid, kvmppc_xlate() argument
1985 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument
2056 void kvmppc_booke_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvmppc_booke_vcpu_load() argument
2062 void kvmppc_booke_vcpu_put(struct kvm_vcpu *vcpu) kvmppc_booke_vcpu_put() argument
2071 void kvmppc_mmu_destroy(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy() argument
2086 void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free() argument
2096 void kvmppc_core_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load() argument
2101 void kvmppc_core_vcpu_put(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put() argument
H A Dmpic.c117 struct kvm_vcpu *vcpu = current->thread.kvm_vcpu; get_current_cpu() local
179 struct kvm_vcpu *vcpu; member in struct:irq_dest
1177 void kvmppc_mpic_set_epr(struct kvm_vcpu *vcpu) kvmppc_mpic_set_epr() argument
1372 static int kvm_mpic_read(struct kvm_vcpu *vcpu, kvm_mpic_read() argument
1414 static int kvm_mpic_write(struct kvm_vcpu *vcpu, kvm_mpic_write() argument
1733 int kvmppc_mpic_connect_vcpu(struct kvm_device *dev, struct kvm_vcpu *vcpu, kvmppc_mpic_connect_vcpu() argument
1778 void kvmppc_mpic_disconnect_vcpu(struct openpic *opp, struct kvm_vcpu *vcpu) kvmppc_mpic_disconnect_vcpu() argument
/linux-4.4.14/arch/arm64/kvm/
H A Ddebug.c47 static void save_guest_debug_regs(struct kvm_vcpu *vcpu) save_guest_debug_regs() argument
55 static void restore_guest_debug_regs(struct kvm_vcpu *vcpu) restore_guest_debug_regs() argument
82 void kvm_arm_reset_debug_ptr(struct kvm_vcpu *vcpu) kvm_arm_reset_debug_ptr() argument
107 void kvm_arm_setup_debug(struct kvm_vcpu *vcpu) kvm_arm_setup_debug() argument
194 void kvm_arm_clear_debug(struct kvm_vcpu *vcpu) kvm_arm_clear_debug() argument
H A Dregmap.c112 unsigned long *vcpu_reg32(const struct kvm_vcpu *vcpu, u8 reg_num) vcpu_reg32() argument
144 unsigned long *vcpu_spsr32(const struct kvm_vcpu *vcpu) vcpu_spsr32() argument
H A Dsys_regs_generic_v8.c33 static bool access_actlr(struct kvm_vcpu *vcpu, access_actlr() argument
44 static void reset_actlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) reset_actlr() argument
H A Demulate.c55 static int kvm_vcpu_get_condition(const struct kvm_vcpu *vcpu) kvm_vcpu_get_condition() argument
68 bool kvm_condition_valid32(const struct kvm_vcpu *vcpu) kvm_condition_valid32() argument
117 static void kvm_adjust_itstate(struct kvm_vcpu *vcpu) kvm_adjust_itstate() argument
149 void kvm_skip_instr32(struct kvm_vcpu *vcpu, bool is_wide_instr) kvm_skip_instr32() argument
H A Dreset.c98 int kvm_reset_vcpu(struct kvm_vcpu *vcpu) kvm_reset_vcpu() argument
H A Dhandle_exit.c36 static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run) handle_hvc() argument
52 static int handle_smc(struct kvm_vcpu *vcpu, struct kvm_run *run) handle_smc() argument
70 static int kvm_handle_wfx(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_wfx() argument
97 static int kvm_handle_guest_debug(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_guest_debug() argument
145 static exit_handle_fn kvm_get_exit_handler(struct kvm_vcpu *vcpu) kvm_get_exit_handler() argument
164 int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, handle_exit() argument
H A Dinject_fault.c32 static void prepare_fault32(struct kvm_vcpu *vcpu, u32 mode, u32 vect_offset) prepare_fault32() argument
62 static void inject_undef32(struct kvm_vcpu *vcpu) inject_undef32() argument
71 static void inject_abt32(struct kvm_vcpu *vcpu, bool is_pabt, inject_abt32() argument
100 static void inject_abt64(struct kvm_vcpu *vcpu, bool is_iabt, unsigned long addr) inject_abt64() argument
138 static void inject_undef64(struct kvm_vcpu *vcpu) inject_undef64() argument
167 void kvm_inject_dabt(struct kvm_vcpu *vcpu, unsigned long addr) kvm_inject_dabt() argument
183 void kvm_inject_pabt(struct kvm_vcpu *vcpu, unsigned long addr) kvm_inject_pabt() argument
197 void kvm_inject_undefined(struct kvm_vcpu *vcpu) kvm_inject_undefined() argument
H A Dsys_regs.h73 static inline bool ignore_write(struct kvm_vcpu *vcpu, ignore_write() argument
79 static inline bool read_zero(struct kvm_vcpu *vcpu, read_zero() argument
86 static inline bool write_to_read_only(struct kvm_vcpu *vcpu, write_to_read_only() argument
95 static inline bool read_from_write_only(struct kvm_vcpu *vcpu, read_from_write_only() argument
105 static inline void reset_unknown(struct kvm_vcpu *vcpu, reset_unknown() argument
113 static inline void reset_val(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) reset_val() argument
H A Dguest.c41 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument
51 static int get_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) get_core_reg() argument
76 static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) set_core_reg() argument
124 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument
129 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument
156 static int copy_timer_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) copy_timer_indices() argument
170 static int set_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) set_timer_reg() argument
183 static int get_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) get_timer_reg() argument
197 unsigned long kvm_arm_num_regs(struct kvm_vcpu *vcpu) kvm_arm_num_regs() argument
208 int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_reg_indices() argument
228 int kvm_arm_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_get_reg() argument
244 int kvm_arm_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_set_reg() argument
260 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument
266 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument
322 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument
327 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument
332 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
353 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument
H A Dsys_regs.c80 static bool access_dcsw(struct kvm_vcpu *vcpu, access_dcsw() argument
96 static bool access_vm_reg(struct kvm_vcpu *vcpu, access_vm_reg() argument
122 static bool access_gic_sgi(struct kvm_vcpu *vcpu, access_gic_sgi() argument
134 static bool trap_raz_wi(struct kvm_vcpu *vcpu, trap_raz_wi() argument
144 static bool trap_oslsr_el1(struct kvm_vcpu *vcpu, trap_oslsr_el1() argument
156 static bool trap_dbgauthstatus_el1(struct kvm_vcpu *vcpu, trap_dbgauthstatus_el1() argument
197 static bool trap_debug_regs(struct kvm_vcpu *vcpu, trap_debug_regs() argument
222 static inline void reg_to_dbg(struct kvm_vcpu *vcpu, reg_to_dbg() argument
237 static inline void dbg_to_reg(struct kvm_vcpu *vcpu, dbg_to_reg() argument
246 static inline bool trap_bvr(struct kvm_vcpu *vcpu, trap_bvr() argument
262 static int set_bvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, set_bvr() argument
272 static int get_bvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, get_bvr() argument
282 static inline void reset_bvr(struct kvm_vcpu *vcpu, reset_bvr() argument
288 static inline bool trap_bcr(struct kvm_vcpu *vcpu, trap_bcr() argument
304 static int set_bcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, set_bcr() argument
315 static int get_bcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, get_bcr() argument
325 static inline void reset_bcr(struct kvm_vcpu *vcpu, reset_bcr() argument
331 static inline bool trap_wvr(struct kvm_vcpu *vcpu, trap_wvr() argument
348 static int set_wvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, set_wvr() argument
358 static int get_wvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, get_wvr() argument
368 static inline void reset_wvr(struct kvm_vcpu *vcpu, reset_wvr() argument
374 static inline bool trap_wcr(struct kvm_vcpu *vcpu, trap_wcr() argument
390 static int set_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, set_wcr() argument
400 static int get_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, get_wcr() argument
410 static inline void reset_wcr(struct kvm_vcpu *vcpu, reset_wcr() argument
416 static void reset_amair_el1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) reset_amair_el1() argument
424 static void reset_mpidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) reset_mpidr() argument
681 static bool trap_dbgidr(struct kvm_vcpu *vcpu, trap_dbgidr() argument
700 static bool trap_debug32(struct kvm_vcpu *vcpu, trap_debug32() argument
725 static inline bool trap_xvr(struct kvm_vcpu *vcpu, trap_xvr() argument
969 int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_load_store() argument
985 static int emulate_cp(struct kvm_vcpu *vcpu, emulate_cp() argument
1019 static void unhandled_cp_access(struct kvm_vcpu *vcpu, unhandled_cp_access() argument
1049 static int kvm_handle_cp_64(struct kvm_vcpu *vcpu, kvm_handle_cp_64() argument
1101 static int kvm_handle_cp_32(struct kvm_vcpu *vcpu, kvm_handle_cp_32() argument
1132 int kvm_handle_cp15_64(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp15_64() argument
1143 int kvm_handle_cp15_32(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp15_32() argument
1154 int kvm_handle_cp14_64(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_64() argument
1161 int kvm_handle_cp14_32(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_32() argument
1168 static int emulate_sys_reg(struct kvm_vcpu *vcpu, emulate_sys_reg() argument
1205 static void reset_sys_reg_descs(struct kvm_vcpu *vcpu, reset_sys_reg_descs() argument
1220 int kvm_handle_sys_reg(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_sys_reg() argument
1280 static const struct sys_reg_desc *index_to_sys_reg_desc(struct kvm_vcpu *vcpu, index_to_sys_reg_desc() argument
1522 int kvm_arm_sys_reg_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_sys_reg_get_reg() argument
1543 int kvm_arm_sys_reg_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_sys_reg_set_reg() argument
1615 static int walk_sys_regs(struct kvm_vcpu *vcpu, u64 __user *uind) walk_sys_regs() argument
1657 unsigned long kvm_arm_num_sys_reg_descs(struct kvm_vcpu *vcpu) kvm_arm_num_sys_reg_descs() argument
1664 int kvm_arm_copy_sys_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_sys_reg_indices() argument
1741 void kvm_reset_sys_regs(struct kvm_vcpu *vcpu) kvm_reset_sys_regs() argument
/linux-4.4.14/arch/x86/kvm/
H A Dirq.c34 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument
138 void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu) kvm_inject_pending_timer_irqs() argument
145 void __kvm_migrate_timers(struct kvm_vcpu *vcpu) __kvm_migrate_timers() argument
H A Dcpuid.h25 static inline int cpuid_maxphyaddr(struct kvm_vcpu *vcpu) cpuid_maxphyaddr() argument
30 static inline bool guest_cpuid_has_xsave(struct kvm_vcpu *vcpu) guest_cpuid_has_xsave() argument
41 static inline bool guest_cpuid_has_mtrr(struct kvm_vcpu *vcpu) guest_cpuid_has_mtrr() argument
49 static inline bool guest_cpuid_has_tsc_adjust(struct kvm_vcpu *vcpu) guest_cpuid_has_tsc_adjust() argument
57 static inline bool guest_cpuid_has_smep(struct kvm_vcpu *vcpu) guest_cpuid_has_smep() argument
65 static inline bool guest_cpuid_has_smap(struct kvm_vcpu *vcpu) guest_cpuid_has_smap() argument
73 static inline bool guest_cpuid_has_fsgsbase(struct kvm_vcpu *vcpu) guest_cpuid_has_fsgsbase() argument
81 static inline bool guest_cpuid_has_longmode(struct kvm_vcpu *vcpu) guest_cpuid_has_longmode() argument
89 static inline bool guest_cpuid_has_osvw(struct kvm_vcpu *vcpu) guest_cpuid_has_osvw() argument
97 static inline bool guest_cpuid_has_pcid(struct kvm_vcpu *vcpu) guest_cpuid_has_pcid() argument
105 static inline bool guest_cpuid_has_x2apic(struct kvm_vcpu *vcpu) guest_cpuid_has_x2apic() argument
113 static inline bool guest_cpuid_is_amd(struct kvm_vcpu *vcpu) guest_cpuid_is_amd() argument
121 static inline bool guest_cpuid_has_gbpages(struct kvm_vcpu *vcpu) guest_cpuid_has_gbpages() argument
129 static inline bool guest_cpuid_has_rtm(struct kvm_vcpu *vcpu) guest_cpuid_has_rtm() argument
137 static inline bool guest_cpuid_has_mpx(struct kvm_vcpu *vcpu) guest_cpuid_has_mpx() argument
145 static inline bool guest_cpuid_has_pcommit(struct kvm_vcpu *vcpu) guest_cpuid_has_pcommit() argument
153 static inline bool guest_cpuid_has_rdtscp(struct kvm_vcpu *vcpu) guest_cpuid_has_rdtscp() argument
166 static inline bool guest_cpuid_has_nrips(struct kvm_vcpu *vcpu) guest_cpuid_has_nrips() argument
H A Dkvm_cache_regs.h9 static inline unsigned long kvm_register_read(struct kvm_vcpu *vcpu, kvm_register_read() argument
18 static inline void kvm_register_write(struct kvm_vcpu *vcpu, kvm_register_write() argument
27 static inline unsigned long kvm_rip_read(struct kvm_vcpu *vcpu) kvm_rip_read() argument
32 static inline void kvm_rip_write(struct kvm_vcpu *vcpu, unsigned long val) kvm_rip_write() argument
37 static inline u64 kvm_pdptr_read(struct kvm_vcpu *vcpu, int index) kvm_pdptr_read() argument
48 static inline ulong kvm_read_cr0_bits(struct kvm_vcpu *vcpu, ulong mask) kvm_read_cr0_bits() argument
56 static inline ulong kvm_read_cr0(struct kvm_vcpu *vcpu) kvm_read_cr0() argument
61 static inline ulong kvm_read_cr4_bits(struct kvm_vcpu *vcpu, ulong mask) kvm_read_cr4_bits() argument
69 static inline ulong kvm_read_cr3(struct kvm_vcpu *vcpu) kvm_read_cr3() argument
76 static inline ulong kvm_read_cr4(struct kvm_vcpu *vcpu) kvm_read_cr4() argument
81 static inline u64 kvm_read_edx_eax(struct kvm_vcpu *vcpu) kvm_read_edx_eax() argument
87 static inline void enter_guest_mode(struct kvm_vcpu *vcpu) enter_guest_mode() argument
92 static inline void leave_guest_mode(struct kvm_vcpu *vcpu) leave_guest_mode() argument
97 static inline bool is_guest_mode(struct kvm_vcpu *vcpu) is_guest_mode() argument
102 static inline bool is_smm(struct kvm_vcpu *vcpu) is_smm() argument
H A Dpmu_amd.c71 static int amd_is_valid_msr_idx(struct kvm_vcpu *vcpu, unsigned idx) amd_is_valid_msr_idx() argument
81 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, unsigned idx) amd_msr_idx_to_pmc() argument
94 static bool amd_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) amd_is_valid_msr() argument
105 static int amd_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) amd_pmu_get_msr() argument
126 static int amd_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) amd_pmu_set_msr() argument
153 static void amd_pmu_refresh(struct kvm_vcpu *vcpu) amd_pmu_refresh() argument
167 static void amd_pmu_init(struct kvm_vcpu *vcpu) amd_pmu_init() argument
179 static void amd_pmu_reset(struct kvm_vcpu *vcpu) amd_pmu_reset() argument
H A Dhyperv.c52 static int kvm_hv_msr_get_crash_data(struct kvm_vcpu *vcpu, kvm_hv_msr_get_crash_data() argument
64 static int kvm_hv_msr_get_crash_ctl(struct kvm_vcpu *vcpu, u64 *pdata) kvm_hv_msr_get_crash_ctl() argument
72 static int kvm_hv_msr_set_crash_ctl(struct kvm_vcpu *vcpu, u64 data, bool host) kvm_hv_msr_set_crash_ctl() argument
95 static int kvm_hv_msr_set_crash_data(struct kvm_vcpu *vcpu, kvm_hv_msr_set_crash_data() argument
107 static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, kvm_hv_set_msr_pw() argument
190 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) kvm_hv_set_msr() argument
238 static int kvm_hv_get_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) kvm_hv_get_msr_pw() argument
277 static int kvm_hv_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) kvm_hv_get_msr() argument
315 int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) kvm_hv_set_msr_common() argument
328 int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) kvm_hv_get_msr_common() argument
346 int kvm_hv_hypercall(struct kvm_vcpu *vcpu) kvm_hv_hypercall() argument
H A Dpmu_intel.c117 static int intel_is_valid_msr_idx(struct kvm_vcpu *vcpu, unsigned idx) intel_is_valid_msr_idx() argument
128 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, intel_msr_idx_to_pmc() argument
145 static bool intel_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) intel_is_valid_msr() argument
167 static int intel_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) intel_pmu_get_msr() argument
199 static int intel_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) intel_pmu_set_msr() argument
257 static void intel_pmu_refresh(struct kvm_vcpu *vcpu) intel_pmu_refresh() argument
308 static void intel_pmu_init(struct kvm_vcpu *vcpu) intel_pmu_init() argument
326 static void intel_pmu_reset(struct kvm_vcpu *vcpu) intel_pmu_reset() argument
H A Di8259.c52 struct kvm_vcpu *vcpu, *found = NULL; variable in typeref:struct:kvm_vcpu
279 struct kvm_vcpu *vcpu; kvm_pic_reset() local
532 static int picdev_master_write(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, picdev_master_write() argument
539 static int picdev_master_read(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, picdev_master_read() argument
546 static int picdev_slave_write(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, picdev_slave_write() argument
553 static int picdev_slave_read(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, picdev_slave_read() argument
560 static int picdev_eclr_write(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, picdev_eclr_write() argument
567 static int picdev_eclr_read(struct kvm_vcpu *vcpu, struct kvm_io_device *dev, picdev_eclr_read() argument
H A Dirq.h112 static inline int lapic_in_kernel(struct kvm_vcpu *vcpu) lapic_in_kernel() argument
H A Dirq_comm.c57 struct kvm_vcpu *vcpu, *lowest = NULL; kvm_irq_delivery_to_apic() local
273 struct kvm_vcpu *vcpu; kvm_intr_is_single_vcpu() local
342 void kvm_scan_ioapic_routes(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) kvm_scan_ioapic_routes() argument
H A Dlapic.h26 struct kvm_vcpu *vcpu; member in struct:kvm_lapic
91 static inline bool kvm_hv_vapic_assist_page_enabled(struct kvm_vcpu *vcpu) kvm_hv_vapic_assist_page_enabled() argument
106 static inline bool kvm_vcpu_has_lapic(struct kvm_vcpu *vcpu) kvm_vcpu_has_lapic() argument
131 static inline bool kvm_apic_present(struct kvm_vcpu *vcpu) kvm_apic_present() argument
136 static inline int kvm_lapic_enabled(struct kvm_vcpu *vcpu) kvm_lapic_enabled() argument
146 static inline bool kvm_vcpu_apic_vid_enabled(struct kvm_vcpu *vcpu) kvm_vcpu_apic_vid_enabled() argument
151 static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) kvm_apic_has_events() argument
162 static inline int kvm_lapic_latched_init(struct kvm_vcpu *vcpu) kvm_lapic_latched_init() argument
H A Dmmu.h87 static inline int kvm_mmu_reload(struct kvm_vcpu *vcpu) kvm_mmu_reload() argument
138 static inline bool is_write_protection(struct kvm_vcpu *vcpu) is_write_protection() argument
147 static inline bool permission_fault(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, permission_fault() argument
H A Dmmu_audit.c37 static void __mmu_spte_walk(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, __mmu_spte_walk() argument
57 static void mmu_spte_walk(struct kvm_vcpu *vcpu, inspect_spte_fn fn) mmu_spte_walk() argument
96 static void audit_mappings(struct kvm_vcpu *vcpu, u64 *sptep, int level) audit_mappings() argument
163 static void audit_sptes_have_rmaps(struct kvm_vcpu *vcpu, u64 *sptep, int level) audit_sptes_have_rmaps() argument
169 static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level) audit_spte_after_sync() argument
226 static void audit_spte(struct kvm_vcpu *vcpu, u64 *sptep, int level) audit_spte() argument
233 static void audit_vcpu_spte(struct kvm_vcpu *vcpu) audit_vcpu_spte() argument
241 static void __kvm_mmu_audit(struct kvm_vcpu *vcpu, int point) __kvm_mmu_audit() argument
253 static inline void kvm_mmu_audit(struct kvm_vcpu *vcpu, int point) kvm_mmu_audit() argument
H A Dpmu.c53 struct kvm_vcpu *vcpu = pmu_to_vcpu(pmu); kvm_pmi_trigger_fn() local
214 void kvm_pmu_handle_event(struct kvm_vcpu *vcpu) kvm_pmu_handle_event() argument
235 int kvm_pmu_is_valid_msr_idx(struct kvm_vcpu *vcpu, unsigned idx) kvm_pmu_is_valid_msr_idx() argument
240 int kvm_pmu_rdpmc(struct kvm_vcpu *vcpu, unsigned idx, u64 *data) kvm_pmu_rdpmc() argument
258 void kvm_pmu_deliver_pmi(struct kvm_vcpu *vcpu) kvm_pmu_deliver_pmi() argument
264 bool kvm_pmu_is_valid_msr(struct kvm_vcpu *vcpu, u32 msr) kvm_pmu_is_valid_msr() argument
269 int kvm_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) kvm_pmu_get_msr() argument
274 int kvm_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_pmu_set_msr() argument
283 void kvm_pmu_refresh(struct kvm_vcpu *vcpu) kvm_pmu_refresh() argument
288 void kvm_pmu_reset(struct kvm_vcpu *vcpu) kvm_pmu_reset() argument
296 void kvm_pmu_init(struct kvm_vcpu *vcpu) kvm_pmu_init() argument
306 void kvm_pmu_destroy(struct kvm_vcpu *vcpu) kvm_pmu_destroy() argument
H A Dx86.h9 static inline void kvm_clear_exception_queue(struct kvm_vcpu *vcpu) kvm_clear_exception_queue() argument
14 static inline void kvm_queue_interrupt(struct kvm_vcpu *vcpu, u8 vector, kvm_queue_interrupt() argument
22 static inline void kvm_clear_interrupt_queue(struct kvm_vcpu *vcpu) kvm_clear_interrupt_queue() argument
27 static inline bool kvm_event_needs_reinjection(struct kvm_vcpu *vcpu) kvm_event_needs_reinjection() argument
38 static inline bool is_protmode(struct kvm_vcpu *vcpu) is_protmode() argument
43 static inline int is_long_mode(struct kvm_vcpu *vcpu) is_long_mode() argument
52 static inline bool is_64_bit_mode(struct kvm_vcpu *vcpu) is_64_bit_mode() argument
62 static inline bool mmu_is_nested(struct kvm_vcpu *vcpu) mmu_is_nested() argument
67 static inline int is_pae(struct kvm_vcpu *vcpu) is_pae() argument
72 static inline int is_pse(struct kvm_vcpu *vcpu) is_pse() argument
77 static inline int is_paging(struct kvm_vcpu *vcpu) is_paging() argument
87 static inline void vcpu_cache_mmio_info(struct kvm_vcpu *vcpu, vcpu_cache_mmio_info() argument
96 static inline bool vcpu_match_mmio_gen(struct kvm_vcpu *vcpu) vcpu_match_mmio_gen() argument
107 static inline void vcpu_clear_mmio_info(struct kvm_vcpu *vcpu, gva_t gva) vcpu_clear_mmio_info() argument
115 static inline bool vcpu_match_mmio_gva(struct kvm_vcpu *vcpu, unsigned long gva) vcpu_match_mmio_gva() argument
124 static inline bool vcpu_match_mmio_gpa(struct kvm_vcpu *vcpu, gpa_t gpa) vcpu_match_mmio_gpa() argument
133 static inline unsigned long kvm_register_readl(struct kvm_vcpu *vcpu, kvm_register_readl() argument
141 static inline void kvm_register_writel(struct kvm_vcpu *vcpu, kvm_register_writel() argument
H A Di8254.c257 void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) __kvm_migrate_pit_timer() argument
282 struct kvm_vcpu *vcpu; pit_do_work() local
451 static int pit_ioport_write(struct kvm_vcpu *vcpu, pit_ioport_write() argument
528 static int pit_ioport_read(struct kvm_vcpu *vcpu, pit_ioport_read() argument
599 static int speaker_ioport_write(struct kvm_vcpu *vcpu, speaker_ioport_write() argument
617 static int speaker_ioport_read(struct kvm_vcpu *vcpu, speaker_ioport_read() argument
H A Dioapic.c108 static void __rtc_irq_eoi_tracking_restore_one(struct kvm_vcpu *vcpu) __rtc_irq_eoi_tracking_restore_one() argument
135 void kvm_rtc_eoi_tracking_restore_one(struct kvm_vcpu *vcpu) kvm_rtc_eoi_tracking_restore_one() argument
146 struct kvm_vcpu *vcpu; kvm_rtc_eoi_tracking_restore_all() local
157 static void rtc_irq_eoi(struct kvm_ioapic *ioapic, struct kvm_vcpu *vcpu) rtc_irq_eoi() argument
236 void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) kvm_ioapic_scan_entry() argument
407 static void __kvm_ioapic_update_eoi(struct kvm_vcpu *vcpu, __kvm_ioapic_update_eoi() argument
462 void kvm_ioapic_update_eoi(struct kvm_vcpu *vcpu, int vector, int trigger_mode) kvm_ioapic_update_eoi() argument
482 static int ioapic_mmio_read(struct kvm_vcpu *vcpu, struct kvm_io_device *this, ioapic_mmio_read() argument
525 static int ioapic_mmio_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, ioapic_mmio_write() argument
H A Dmtrr.c61 bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data) kvm_mtrr_valid() argument
121 static u8 mtrr_disabled_type(struct kvm_vcpu *vcpu) mtrr_disabled_type() argument
316 static void update_mtrr(struct kvm_vcpu *vcpu, u32 msr) update_mtrr() argument
350 static void set_var_mtrr_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) set_var_mtrr_msr() argument
382 int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) kvm_mtrr_set_msr() argument
403 int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) kvm_mtrr_get_msr() argument
445 void kvm_vcpu_mtrr_init(struct kvm_vcpu *vcpu) kvm_vcpu_mtrr_init() argument
624 u8 kvm_mtrr_get_guest_memory_type(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_mtrr_get_guest_memory_type() argument
700 bool kvm_mtrr_check_gfn_range_consistency(struct kvm_vcpu *vcpu, gfn_t gfn, kvm_mtrr_check_gfn_range_consistency() argument
H A Dcpuid.c61 int kvm_update_cpuid(struct kvm_vcpu *vcpu) kvm_update_cpuid() argument
128 static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu) cpuid_fix_nx_cap() argument
147 int cpuid_query_maxphyaddr(struct kvm_vcpu *vcpu) cpuid_query_maxphyaddr() argument
163 int kvm_vcpu_ioctl_set_cpuid(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_set_cpuid() argument
205 int kvm_vcpu_ioctl_set_cpuid2(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_set_cpuid2() argument
226 int kvm_vcpu_ioctl_get_cpuid2(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_get_cpuid2() argument
737 static int move_to_next_stateful_cpuid_entry(struct kvm_vcpu *vcpu, int i) move_to_next_stateful_cpuid_entry() argument
769 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry(struct kvm_vcpu *vcpu, kvm_find_cpuid_entry() argument
795 static struct kvm_cpuid_entry2* check_cpuid_limit(struct kvm_vcpu *vcpu, check_cpuid_limit() argument
811 void kvm_cpuid(struct kvm_vcpu *vcpu, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) kvm_cpuid() argument
838 void kvm_emulate_cpuid(struct kvm_vcpu *vcpu) kvm_emulate_cpuid() argument
H A Dpaging_tmpl.h140 static int FNAME(cmpxchg_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, cmpxchg_gpte() argument
163 static bool FNAME(prefetch_invalid_gpte)(struct kvm_vcpu *vcpu, prefetch_invalid_gpte() argument
184 static inline unsigned FNAME(gpte_access)(struct kvm_vcpu *vcpu, u64 gpte) gpte_access() argument
199 static int FNAME(update_accessed_dirty_bits)(struct kvm_vcpu *vcpu, update_accessed_dirty_bits() argument
454 FNAME(prefetch_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, prefetch_gpte() argument
484 static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, update_pte() argument
492 static bool FNAME(gpte_changed)(struct kvm_vcpu *vcpu, gpte_changed() argument
515 static void FNAME(pte_prefetch)(struct kvm_vcpu *vcpu, struct guest_walker *gw, pte_prefetch() argument
551 static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, fetch() argument
656 FNAME(is_self_change_mapping)(struct kvm_vcpu *vcpu, is_self_change_mapping() argument
692 static int FNAME(page_fault)(struct kvm_vcpu *vcpu, gva_t addr, u32 error_code, page_fault() argument
819 static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva) invlpg() argument
874 static gpa_t FNAME(gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t vaddr, u32 access, gva_to_gpa() argument
893 static gpa_t FNAME(gva_to_gpa_nested)(struct kvm_vcpu *vcpu, gva_t vaddr, gva_to_gpa_nested() argument
926 static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp) sync_page() argument
260 walk_addr_generic(struct guest_walker *walker, struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, gva_t addr, u32 access) walk_addr_generic() argument
436 walk_addr(struct guest_walker *walker, struct kvm_vcpu *vcpu, gva_t addr, u32 access) walk_addr() argument
444 walk_addr_nested(struct guest_walker *walker, struct kvm_vcpu *vcpu, gva_t addr, u32 access) walk_addr_nested() argument
H A Dlapic.c88 bool kvm_apic_pending_eoi(struct kvm_vcpu *vcpu, int vector) kvm_apic_pending_eoi() argument
161 struct kvm_vcpu *vcpu; recalculate_apic_map() local
282 void kvm_apic_set_version(struct kvm_vcpu *vcpu) kvm_apic_set_version() argument
346 void kvm_apic_update_irr(struct kvm_vcpu *vcpu, u32 *pir) kvm_apic_update_irr() argument
391 struct kvm_vcpu *vcpu; apic_clear_irr() local
409 struct kvm_vcpu *vcpu; apic_set_isr() local
456 struct kvm_vcpu *vcpu; apic_clear_isr() local
479 int kvm_lapic_find_highest_irr(struct kvm_vcpu *vcpu) kvm_lapic_find_highest_irr() argument
499 int kvm_apic_set_irq(struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq, kvm_apic_set_irq() argument
508 static int pv_eoi_put_user(struct kvm_vcpu *vcpu, u8 val) pv_eoi_put_user() argument
515 static int pv_eoi_get_user(struct kvm_vcpu *vcpu, u8 *val) pv_eoi_get_user() argument
522 static inline bool pv_eoi_enabled(struct kvm_vcpu *vcpu) pv_eoi_enabled() argument
527 static bool pv_eoi_get_pending(struct kvm_vcpu *vcpu) pv_eoi_get_pending() argument
536 static void pv_eoi_set_pending(struct kvm_vcpu *vcpu) pv_eoi_set_pending() argument
546 static void pv_eoi_clr_pending(struct kvm_vcpu *vcpu) pv_eoi_clr_pending() argument
651 bool kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source, kvm_apic_match_dest() argument
828 struct kvm_vcpu *vcpu = apic->vcpu; __apic_accept_irq() local
986 void kvm_apic_set_eoi_accelerated(struct kvm_vcpu *vcpu, int vector) kvm_apic_set_eoi_accelerated() argument
1054 struct kvm_vcpu *vcpu = apic->vcpu; __report_tpr_access() local
1157 static int apic_mmio_read(struct kvm_vcpu *vcpu, struct kvm_io_device *this, apic_mmio_read() argument
1197 struct kvm_vcpu *vcpu = apic->vcpu; apic_timer_expired() local
1219 static bool lapic_timer_int_injected(struct kvm_vcpu *vcpu) lapic_timer_int_injected() argument
1237 void wait_lapic_expire(struct kvm_vcpu *vcpu) wait_lapic_expire() argument
1311 struct kvm_vcpu *vcpu = apic->vcpu; start_apic_timer() local
1483 static int apic_mmio_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, apic_mmio_write() argument
1516 void kvm_lapic_set_eoi(struct kvm_vcpu *vcpu) kvm_lapic_set_eoi() argument
1524 void kvm_apic_write_nodecode(struct kvm_vcpu *vcpu, u32 offset) kvm_apic_write_nodecode() argument
1538 void kvm_free_lapic(struct kvm_vcpu *vcpu) kvm_free_lapic() argument
1565 u64 kvm_get_lapic_tscdeadline_msr(struct kvm_vcpu *vcpu) kvm_get_lapic_tscdeadline_msr() argument
1576 void kvm_set_lapic_tscdeadline_msr(struct kvm_vcpu *vcpu, u64 data) kvm_set_lapic_tscdeadline_msr() argument
1589 void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8) kvm_lapic_set_tpr() argument
1600 u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu) kvm_lapic_get_cr8() argument
1612 void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value) kvm_lapic_set_base() argument
1655 void kvm_lapic_reset(struct kvm_vcpu *vcpu, bool init_event) kvm_lapic_reset() argument
1727 int apic_has_pending_timer(struct kvm_vcpu *vcpu) apic_has_pending_timer() argument
1753 void kvm_apic_nmi_wd_deliver(struct kvm_vcpu *vcpu) kvm_apic_nmi_wd_deliver() argument
1780 int kvm_create_lapic(struct kvm_vcpu *vcpu) kvm_create_lapic() argument
1824 int kvm_apic_has_interrupt(struct kvm_vcpu *vcpu) kvm_apic_has_interrupt() argument
1840 int kvm_apic_accept_pic_intr(struct kvm_vcpu *vcpu) kvm_apic_accept_pic_intr() argument
1853 void kvm_inject_apic_timer_irqs(struct kvm_vcpu *vcpu) kvm_inject_apic_timer_irqs() argument
1868 int kvm_get_apic_interrupt(struct kvm_vcpu *vcpu) kvm_get_apic_interrupt() argument
1889 void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu, kvm_apic_post_state_restore() argument
1925 void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu) __kvm_migrate_apic_timer() argument
1944 static void apic_sync_pv_eoi_from_guest(struct kvm_vcpu *vcpu, apic_sync_pv_eoi_from_guest() argument
1974 void kvm_lapic_sync_from_vapic(struct kvm_vcpu *vcpu) kvm_lapic_sync_from_vapic() argument
1997 static void apic_sync_pv_eoi_to_guest(struct kvm_vcpu *vcpu, apic_sync_pv_eoi_to_guest() argument
2017 void kvm_lapic_sync_to_vapic(struct kvm_vcpu *vcpu) kvm_lapic_sync_to_vapic() argument
2041 int kvm_lapic_set_vapic_addr(struct kvm_vcpu *vcpu, gpa_t vapic_addr) kvm_lapic_set_vapic_addr() argument
2057 int kvm_x2apic_msr_write(struct kvm_vcpu *vcpu, u32 msr, u64 data) kvm_x2apic_msr_write() argument
2074 int kvm_x2apic_msr_read(struct kvm_vcpu *vcpu, u32 msr, u64 *data) kvm_x2apic_msr_read() argument
2098 int kvm_hv_vapic_msr_write(struct kvm_vcpu *vcpu, u32 reg, u64 data) kvm_hv_vapic_msr_write() argument
2111 int kvm_hv_vapic_msr_read(struct kvm_vcpu *vcpu, u32 reg, u64 *data) kvm_hv_vapic_msr_read() argument
2129 int kvm_lapic_enable_pv_eoi(struct kvm_vcpu *vcpu, u64 data) kvm_lapic_enable_pv_eoi() argument
2142 void kvm_apic_accept_events(struct kvm_vcpu *vcpu) kvm_apic_accept_events() argument
H A Dsvm.c131 struct kvm_vcpu vcpu; member in struct:vcpu_svm
251 static inline struct vcpu_svm *to_svm(struct kvm_vcpu *vcpu) to_svm() argument
475 static void svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) svm_set_efer() argument
491 static u32 svm_get_interrupt_shadow(struct kvm_vcpu *vcpu) svm_get_interrupt_shadow() argument
501 static void svm_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) svm_set_interrupt_shadow() argument
512 static void skip_emulated_instruction(struct kvm_vcpu *vcpu) skip_emulated_instruction() argument
535 static void svm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, svm_queue_exception() argument
596 static void svm_init_osvw(struct kvm_vcpu *vcpu) svm_init_osvw() argument
960 static u64 svm_read_tsc_offset(struct kvm_vcpu *vcpu) svm_read_tsc_offset() argument
967 static void svm_write_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) svm_write_tsc_offset() argument
986 static void svm_adjust_tsc_offset_guest(struct kvm_vcpu *vcpu, s64 adjustment) svm_adjust_tsc_offset_guest() argument
1116 static void svm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) svm_vcpu_reset() argument
1202 static void svm_free_vcpu(struct kvm_vcpu *vcpu) svm_free_vcpu() argument
1214 static void svm_vcpu_load(struct kvm_vcpu *vcpu, int cpu) svm_vcpu_load() argument
1243 static void svm_vcpu_put(struct kvm_vcpu *vcpu) svm_vcpu_put() argument
1263 static unsigned long svm_get_rflags(struct kvm_vcpu *vcpu) svm_get_rflags() argument
1268 static void svm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) svm_set_rflags() argument
1278 static void svm_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) svm_cache_reg() argument
1300 static struct vmcb_seg *svm_seg(struct kvm_vcpu *vcpu, int seg) svm_seg() argument
1318 static u64 svm_get_segment_base(struct kvm_vcpu *vcpu, int seg) svm_get_segment_base() argument
1325 static void svm_get_segment(struct kvm_vcpu *vcpu, svm_get_segment() argument
1393 static int svm_get_cpl(struct kvm_vcpu *vcpu) svm_get_cpl() argument
1400 static void svm_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_get_idt() argument
1408 static void svm_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_set_idt() argument
1417 static void svm_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_get_gdt() argument
1425 static void svm_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_set_gdt() argument
1434 static void svm_decache_cr0_guest_bits(struct kvm_vcpu *vcpu) svm_decache_cr0_guest_bits() argument
1438 static void svm_decache_cr3(struct kvm_vcpu *vcpu) svm_decache_cr3() argument
1442 static void svm_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) svm_decache_cr4_guest_bits() argument
1468 static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) svm_set_cr0() argument
1504 static int svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) svm_set_cr4() argument
1524 static void svm_set_segment(struct kvm_vcpu *vcpu, svm_set_segment() argument
1558 static void update_bp_intercept(struct kvm_vcpu *vcpu) update_bp_intercept() argument
1585 static u64 svm_get_dr6(struct kvm_vcpu *vcpu) svm_get_dr6() argument
1590 static void svm_set_dr6(struct kvm_vcpu *vcpu, unsigned long value) svm_set_dr6() argument
1598 static void svm_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) svm_sync_dirty_debug_regs() argument
1613 static void svm_set_dr7(struct kvm_vcpu *vcpu, unsigned long value) svm_set_dr7() argument
1710 static void svm_fpu_activate(struct kvm_vcpu *vcpu) svm_fpu_activate() argument
1812 struct kvm_vcpu *vcpu = &svm->vcpu; io_interception() local
1860 static unsigned long nested_svm_get_tdp_cr3(struct kvm_vcpu *vcpu) nested_svm_get_tdp_cr3() argument
1867 static u64 nested_svm_get_tdp_pdptr(struct kvm_vcpu *vcpu, int index) nested_svm_get_tdp_pdptr() argument
1881 static void nested_svm_set_tdp_cr3(struct kvm_vcpu *vcpu, nested_svm_set_tdp_cr3() argument
1891 static void nested_svm_inject_npf_exit(struct kvm_vcpu *vcpu, nested_svm_inject_npf_exit() argument
1920 static void nested_svm_init_mmu_context(struct kvm_vcpu *vcpu) nested_svm_init_mmu_context() argument
1933 static void nested_svm_uninit_mmu_context(struct kvm_vcpu *vcpu) nested_svm_uninit_mmu_context() argument
2677 struct kvm_vcpu *vcpu = &svm->vcpu; invlpga_interception() local
2984 static u64 svm_read_l1_tsc(struct kvm_vcpu *vcpu, u64 host_tsc) svm_read_l1_tsc() argument
2990 static int svm_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) svm_get_msr() argument
3085 static int svm_set_vm_cr(struct kvm_vcpu *vcpu, u64 data) svm_set_vm_cr() argument
3110 static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) svm_set_msr() argument
3306 static void dump_vmcb(struct kvm_vcpu *vcpu) dump_vmcb() argument
3411 static void svm_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2) svm_get_exit_info() argument
3419 static int handle_exit(struct kvm_vcpu *vcpu) handle_exit() argument
3488 static void reload_tss(struct kvm_vcpu *vcpu) reload_tss() argument
3508 static void svm_inject_nmi(struct kvm_vcpu *vcpu) svm_inject_nmi() argument
3530 static void svm_set_irq(struct kvm_vcpu *vcpu) svm_set_irq() argument
3543 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) update_cr8_intercept() argument
3559 static void svm_set_virtual_x2apic_mode(struct kvm_vcpu *vcpu, bool set) svm_set_virtual_x2apic_mode() argument
3564 static int svm_cpu_uses_apicv(struct kvm_vcpu *vcpu) svm_cpu_uses_apicv() argument
3569 static void svm_load_eoi_exitmap(struct kvm_vcpu *vcpu) svm_load_eoi_exitmap() argument
3574 static void svm_sync_pir_to_irr(struct kvm_vcpu *vcpu) svm_sync_pir_to_irr() argument
3579 static int svm_nmi_allowed(struct kvm_vcpu *vcpu) svm_nmi_allowed() argument
3591 static bool svm_get_nmi_mask(struct kvm_vcpu *vcpu) svm_get_nmi_mask() argument
3598 static void svm_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) svm_set_nmi_mask() argument
3611 static int svm_interrupt_allowed(struct kvm_vcpu *vcpu) svm_interrupt_allowed() argument
3629 static void enable_irq_window(struct kvm_vcpu *vcpu) enable_irq_window() argument
3645 static void enable_nmi_window(struct kvm_vcpu *vcpu) enable_nmi_window() argument
3666 static void svm_flush_tlb(struct kvm_vcpu *vcpu) svm_flush_tlb() argument
3676 static void svm_prepare_guest_switch(struct kvm_vcpu *vcpu) svm_prepare_guest_switch() argument
3680 static inline void sync_cr8_to_lapic(struct kvm_vcpu *vcpu) sync_cr8_to_lapic() argument
3693 static inline void sync_lapic_to_cr8(struct kvm_vcpu *vcpu) sync_lapic_to_cr8() argument
3770 static void svm_cancel_injection(struct kvm_vcpu *vcpu) svm_cancel_injection() argument
3781 static void svm_vcpu_run(struct kvm_vcpu *vcpu) svm_vcpu_run() argument
3933 static void svm_set_cr3(struct kvm_vcpu *vcpu, unsigned long root) svm_set_cr3() argument
3942 static void set_tdp_cr3(struct kvm_vcpu *vcpu, unsigned long root) set_tdp_cr3() argument
3968 svm_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) svm_patch_hypercall() argument
3993 static u64 svm_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) svm_get_mt_mask() argument
3998 static void svm_cpuid_update(struct kvm_vcpu *vcpu) svm_cpuid_update() argument
4063 static void svm_fpu_deactivate(struct kvm_vcpu *vcpu) svm_fpu_deactivate() argument
4134 static int svm_check_intercept(struct kvm_vcpu *vcpu, svm_check_intercept() argument
4254 static void svm_handle_external_intr(struct kvm_vcpu *vcpu) svm_handle_external_intr() argument
4259 static void svm_sched_in(struct kvm_vcpu *vcpu, int cpu) svm_sched_in() argument
H A Dmmu.c226 static unsigned int kvm_current_mmio_generation(struct kvm_vcpu *vcpu) kvm_current_mmio_generation() argument
231 static void mark_mmio_spte(struct kvm_vcpu *vcpu, u64 *sptep, u64 gfn, mark_mmio_spte() argument
261 static bool set_mmio_spte(struct kvm_vcpu *vcpu, u64 *sptep, gfn_t gfn, set_mmio_spte() argument
272 static bool check_mmio_spte(struct kvm_vcpu *vcpu, u64 spte) check_mmio_spte() argument
299 static int is_nx(struct kvm_vcpu *vcpu) is_nx() argument
632 static void walk_shadow_page_lockless_begin(struct kvm_vcpu *vcpu) walk_shadow_page_lockless_begin() argument
647 static void walk_shadow_page_lockless_end(struct kvm_vcpu *vcpu) walk_shadow_page_lockless_end() argument
709 static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu) mmu_topup_memory_caches() argument
726 static void mmu_free_memory_caches(struct kvm_vcpu *vcpu) mmu_free_memory_caches() argument
744 static struct pte_list_desc *mmu_alloc_pte_list_desc(struct kvm_vcpu *vcpu) mmu_alloc_pte_list_desc() argument
834 static int has_wrprotected_page(struct kvm_vcpu *vcpu, gfn_t gfn, int level) has_wrprotected_page() argument
871 gfn_to_memslot_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t gfn, gfn_to_memslot_dirty_bitmap() argument
883 static int mapping_level(struct kvm_vcpu *vcpu, gfn_t large_gfn, mapping_level() argument
923 static int pte_list_add(struct kvm_vcpu *vcpu, u64 *spte, pte_list_add() argument
1057 static bool rmap_can_add(struct kvm_vcpu *vcpu) rmap_can_add() argument
1065 static int rmap_add(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn) rmap_add() argument
1174 static void drop_large_spte(struct kvm_vcpu *vcpu, u64 *sptep) drop_large_spte() argument
1342 static bool rmap_write_protect(struct kvm_vcpu *vcpu, u64 gfn) rmap_write_protect() argument
1614 static void rmap_recycle(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn) rmap_recycle() argument
1701 static void mmu_page_add_parent_pte(struct kvm_vcpu *vcpu, mmu_page_add_parent_pte() argument
1723 static struct kvm_mmu_page *kvm_mmu_alloc_page(struct kvm_vcpu *vcpu, kvm_mmu_alloc_page() argument
1766 static int nonpaging_sync_page(struct kvm_vcpu *vcpu, nonpaging_sync_page() argument
1772 static void nonpaging_invlpg(struct kvm_vcpu *vcpu, gva_t gva) nonpaging_invlpg() argument
1776 static void nonpaging_update_pte(struct kvm_vcpu *vcpu, nonpaging_update_pte() argument
1896 static int __kvm_sync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, __kvm_sync_page() argument
1916 static int kvm_sync_page_transient(struct kvm_vcpu *vcpu, kvm_sync_page_transient() argument
1932 static void kvm_mmu_audit(struct kvm_vcpu *vcpu, int point) { } mmu_audit_disable() argument
1936 static int kvm_sync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, kvm_sync_page() argument
1943 static void kvm_sync_pages(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_sync_pages() argument
2027 static void mmu_sync_children(struct kvm_vcpu *vcpu, mmu_sync_children() argument
2081 static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu, kvm_mmu_get_page() argument
2217 static void validate_direct_spte(struct kvm_vcpu *vcpu, u64 *sptep, validate_direct_spte() argument
2437 static void __kvm_unsync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp) __kvm_unsync_page() argument
2446 static void kvm_unsync_pages(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_unsync_pages() argument
2458 static int mmu_need_write_protect(struct kvm_vcpu *vcpu, gfn_t gfn, mmu_need_write_protect() argument
2487 static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep, set_spte() argument
2567 static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *sptep, mmu_set_spte() argument
2629 static pfn_t pte_prefetch_gfn_to_pfn(struct kvm_vcpu *vcpu, gfn_t gfn, pte_prefetch_gfn_to_pfn() argument
2641 static int direct_pte_prefetch_many(struct kvm_vcpu *vcpu, direct_pte_prefetch_many() argument
2668 static void __direct_pte_prefetch(struct kvm_vcpu *vcpu, __direct_pte_prefetch() argument
2691 static void direct_pte_prefetch(struct kvm_vcpu *vcpu, u64 *sptep) direct_pte_prefetch() argument
2711 static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write, __direct_map() argument
2762 static int kvm_handle_bad_page(struct kvm_vcpu *vcpu, gfn_t gfn, pfn_t pfn) kvm_handle_bad_page() argument
2781 static void transparent_hugepage_adjust(struct kvm_vcpu *vcpu, transparent_hugepage_adjust() argument
2822 static bool handle_abnormal_pfn(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn, handle_abnormal_pfn() argument
2863 fast_pf_fix_direct_spte(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, fast_pf_fix_direct_spte() argument
2899 static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level, fast_page_fault() argument
2980 static int nonpaging_map(struct kvm_vcpu *vcpu, gva_t v, u32 error_code, nonpaging_map() argument
3035 static void mmu_free_roots(struct kvm_vcpu *vcpu) mmu_free_roots() argument
3080 static int mmu_check_root(struct kvm_vcpu *vcpu, gfn_t root_gfn) mmu_check_root() argument
3092 static int mmu_alloc_direct_roots(struct kvm_vcpu *vcpu) mmu_alloc_direct_roots() argument
3128 static int mmu_alloc_shadow_roots(struct kvm_vcpu *vcpu) mmu_alloc_shadow_roots() argument
3224 static int mmu_alloc_roots(struct kvm_vcpu *vcpu) mmu_alloc_roots() argument
3232 static void mmu_sync_roots(struct kvm_vcpu *vcpu) mmu_sync_roots() argument
3264 void kvm_mmu_sync_roots(struct kvm_vcpu *vcpu) kvm_mmu_sync_roots() argument
3272 static gpa_t nonpaging_gva_to_gpa(struct kvm_vcpu *vcpu, gva_t vaddr, nonpaging_gva_to_gpa() argument
3280 static gpa_t nonpaging_gva_to_gpa_nested(struct kvm_vcpu *vcpu, gva_t vaddr, nonpaging_gva_to_gpa_nested() argument
3308 static bool quickly_check_mmio_pf(struct kvm_vcpu *vcpu, u64 addr, bool direct) quickly_check_mmio_pf() argument
3318 walk_shadow_page_get_mmio_spte(struct kvm_vcpu *vcpu, u64 addr, u64 *sptep) walk_shadow_page_get_mmio_spte() argument
3362 int handle_mmio_page_fault(struct kvm_vcpu *vcpu, u64 addr, bool direct) handle_mmio_page_fault() argument
3397 static int nonpaging_page_fault(struct kvm_vcpu *vcpu, gva_t gva, nonpaging_page_fault() argument
3424 static int kvm_arch_setup_async_pf(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn) kvm_arch_setup_async_pf() argument
3436 static bool can_do_async_pf(struct kvm_vcpu *vcpu) can_do_async_pf() argument
3445 static bool try_async_pf(struct kvm_vcpu *vcpu, bool prefault, gfn_t gfn, try_async_pf() argument
3472 check_hugepage_cache_consistency(struct kvm_vcpu *vcpu, gfn_t gfn, int level) check_hugepage_cache_consistency() argument
3481 static int tdp_page_fault(struct kvm_vcpu *vcpu, gva_t gpa, u32 error_code, tdp_page_fault() argument
3546 static void nonpaging_init_context(struct kvm_vcpu *vcpu, nonpaging_init_context() argument
3561 void kvm_mmu_new_cr3(struct kvm_vcpu *vcpu) kvm_mmu_new_cr3() argument
3566 static unsigned long get_cr3(struct kvm_vcpu *vcpu) get_cr3() argument
3571 static void inject_page_fault(struct kvm_vcpu *vcpu, inject_page_fault() argument
3577 static bool sync_mmio_spte(struct kvm_vcpu *vcpu, u64 *sptep, gfn_t gfn, sync_mmio_spte() argument
3617 __reset_rsvds_bits_mask(struct kvm_vcpu *vcpu, __reset_rsvds_bits_mask() argument
3699 static void reset_rsvds_bits_mask(struct kvm_vcpu *vcpu, reset_rsvds_bits_mask() argument
3742 static void reset_rsvds_bits_mask_ept(struct kvm_vcpu *vcpu, reset_rsvds_bits_mask_ept() argument
3755 reset_shadow_zero_bits_mask(struct kvm_vcpu *vcpu, struct kvm_mmu *context) reset_shadow_zero_bits_mask() argument
3782 reset_tdp_shadow_zero_bits_mask(struct kvm_vcpu *vcpu, reset_tdp_shadow_zero_bits_mask() argument
3802 reset_ept_shadow_zero_bits_mask(struct kvm_vcpu *vcpu, reset_ept_shadow_zero_bits_mask() argument
3809 static void update_permission_bitmask(struct kvm_vcpu *vcpu, update_permission_bitmask() argument
3874 static void update_last_pte_bitmap(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu) update_last_pte_bitmap() argument
3892 static void paging64_init_context_common(struct kvm_vcpu *vcpu, paging64_init_context_common() argument
3914 static void paging64_init_context(struct kvm_vcpu *vcpu, paging64_init_context() argument
3920 static void paging32_init_context(struct kvm_vcpu *vcpu, paging32_init_context() argument
3940 static void paging32E_init_context(struct kvm_vcpu *vcpu, paging32E_init_context() argument
3946 static void init_kvm_tdp_mmu(struct kvm_vcpu *vcpu) init_kvm_tdp_mmu() argument
3990 void kvm_init_shadow_mmu(struct kvm_vcpu *vcpu) kvm_init_shadow_mmu() argument
4019 void kvm_init_shadow_ept_mmu(struct kvm_vcpu *vcpu, bool execonly) kvm_init_shadow_ept_mmu() argument
4043 static void init_kvm_softmmu(struct kvm_vcpu *vcpu) init_kvm_softmmu() argument
4054 static void init_kvm_nested_mmu(struct kvm_vcpu *vcpu) init_kvm_nested_mmu() argument
4093 static void init_kvm_mmu(struct kvm_vcpu *vcpu) init_kvm_mmu() argument
4103 void kvm_mmu_reset_context(struct kvm_vcpu *vcpu) kvm_mmu_reset_context() argument
4110 int kvm_mmu_load(struct kvm_vcpu *vcpu) kvm_mmu_load() argument
4128 void kvm_mmu_unload(struct kvm_vcpu *vcpu) kvm_mmu_unload() argument
4135 static void mmu_pte_write_new_pte(struct kvm_vcpu *vcpu, mmu_pte_write_new_pte() argument
4161 static void mmu_pte_write_flush_tlb(struct kvm_vcpu *vcpu, bool zap_page, mmu_pte_write_flush_tlb() argument
4173 static u64 mmu_pte_write_fetch_gpte(struct kvm_vcpu *vcpu, gpa_t *gpa, mmu_pte_write_fetch_gpte() argument
4284 void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, kvm_mmu_pte_write() argument
4358 int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva) kvm_mmu_unprotect_page_virt() argument
4374 static void make_mmu_pages_available(struct kvm_vcpu *vcpu) make_mmu_pages_available() argument
4390 static bool is_mmio_page_fault(struct kvm_vcpu *vcpu, gva_t addr) is_mmio_page_fault() argument
4398 int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t cr2, u32 error_code, kvm_mmu_page_fault() argument
4434 void kvm_mmu_invlpg(struct kvm_vcpu *vcpu, gva_t gva) kvm_mmu_invlpg() argument
4454 static void free_mmu_pages(struct kvm_vcpu *vcpu) free_mmu_pages() argument
4461 static int alloc_mmu_pages(struct kvm_vcpu *vcpu) alloc_mmu_pages() argument
4482 int kvm_mmu_create(struct kvm_vcpu *vcpu) kvm_mmu_create() argument
4492 void kvm_mmu_setup(struct kvm_vcpu *vcpu) kvm_mmu_setup() argument
4961 void kvm_mmu_destroy(struct kvm_vcpu *vcpu) kvm_mmu_destroy() argument
2152 shadow_walk_init(struct kvm_shadow_walk_iterator *iterator, struct kvm_vcpu *vcpu, u64 addr) shadow_walk_init() argument
H A Dvmx.c521 struct kvm_vcpu vcpu; member in struct:vcpu_vmx
611 static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu) to_vmx() argument
616 static struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu) vcpu_to_pi_desc() argument
837 static inline struct vmcs12 *get_vmcs12(struct kvm_vcpu *vcpu) get_vmcs12() argument
842 static struct page *nested_get_page(struct kvm_vcpu *vcpu, gpa_t addr) nested_get_page() argument
1011 static inline bool cpu_need_tpr_shadow(struct kvm_vcpu *vcpu) cpu_need_tpr_shadow() argument
1128 static inline bool cpu_need_virtualize_apic_accesses(struct kvm_vcpu *vcpu) cpu_need_virtualize_apic_accesses() argument
1639 static void update_exception_bitmap(struct kvm_vcpu *vcpu) update_exception_bitmap() argument
1883 static void vmx_save_host_state(struct kvm_vcpu *vcpu) vmx_save_host_state() argument
1989 static void vmx_vcpu_pi_load(struct kvm_vcpu *vcpu, int cpu) vmx_vcpu_pi_load() argument
2039 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) vmx_vcpu_load() argument
2097 static void vmx_vcpu_pi_put(struct kvm_vcpu *vcpu) vmx_vcpu_pi_put() argument
2110 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) vmx_vcpu_put() argument
2122 static void vmx_fpu_activate(struct kvm_vcpu *vcpu) vmx_fpu_activate() argument
2159 static void vmx_fpu_deactivate(struct kvm_vcpu *vcpu) vmx_fpu_deactivate() argument
2186 static unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) vmx_get_rflags() argument
2203 static void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) vmx_set_rflags() argument
2214 static u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu) vmx_get_interrupt_shadow() argument
2227 static void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) vmx_set_interrupt_shadow() argument
2243 static void skip_emulated_instruction(struct kvm_vcpu *vcpu) skip_emulated_instruction() argument
2259 static int nested_vmx_check_exception(struct kvm_vcpu *vcpu, unsigned nr) nested_vmx_check_exception() argument
2272 static void vmx_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, vmx_queue_exception() argument
2329 static void vmx_set_msr_bitmap(struct kvm_vcpu *vcpu) vmx_set_msr_bitmap() argument
2398 static u64 guest_read_tsc(struct kvm_vcpu *vcpu) guest_read_tsc() argument
2411 static u64 vmx_read_l1_tsc(struct kvm_vcpu *vcpu, u64 host_tsc) vmx_read_l1_tsc() argument
2421 static u64 vmx_read_tsc_offset(struct kvm_vcpu *vcpu) vmx_read_tsc_offset() argument
2429 static void vmx_write_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) vmx_write_tsc_offset() argument
2452 static void vmx_adjust_tsc_offset_guest(struct kvm_vcpu *vcpu, s64 adjustment) vmx_adjust_tsc_offset_guest() argument
2465 static bool guest_cpuid_has_vmx(struct kvm_vcpu *vcpu) guest_cpuid_has_vmx() argument
2477 static inline bool nested_vmx_allowed(struct kvm_vcpu *vcpu) nested_vmx_allowed() argument
2682 static int vmx_get_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) vmx_get_vmx_msr() argument
2783 static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) vmx_get_msr() argument
2856 static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) vmx_set_msr() argument
2967 static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) vmx_cache_reg() argument
3409 static bool emulation_required(struct kvm_vcpu *vcpu) emulation_required() argument
3414 static void fix_pmode_seg(struct kvm_vcpu *vcpu, int seg, fix_pmode_seg() argument
3433 static void enter_pmode(struct kvm_vcpu *vcpu) enter_pmode() argument
3506 static void enter_rmode(struct kvm_vcpu *vcpu) enter_rmode() argument
3554 static void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) vmx_set_efer() argument
3581 static void enter_lmode(struct kvm_vcpu *vcpu) enter_lmode() argument
3598 static void exit_lmode(struct kvm_vcpu *vcpu) exit_lmode() argument
3606 static inline void __vmx_flush_tlb(struct kvm_vcpu *vcpu, int vpid) __vmx_flush_tlb() argument
3616 static void vmx_flush_tlb(struct kvm_vcpu *vcpu) vmx_flush_tlb() argument
3621 static void vmx_decache_cr0_guest_bits(struct kvm_vcpu *vcpu) vmx_decache_cr0_guest_bits() argument
3629 static void vmx_decache_cr3(struct kvm_vcpu *vcpu) vmx_decache_cr3() argument
3636 static void vmx_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) vmx_decache_cr4_guest_bits() argument
3644 static void ept_load_pdptrs(struct kvm_vcpu *vcpu) ept_load_pdptrs() argument
3660 static void ept_save_pdptrs(struct kvm_vcpu *vcpu) ept_save_pdptrs() argument
3707 static void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) vmx_set_cr0() argument
3762 static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) vmx_set_cr3() argument
3782 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) vmx_set_cr4() argument
3834 static void vmx_get_segment(struct kvm_vcpu *vcpu, vmx_get_segment() argument
3871 static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) vmx_get_segment_base() argument
3882 static int vmx_get_cpl(struct kvm_vcpu *vcpu) vmx_get_cpl() argument
3914 static void vmx_set_segment(struct kvm_vcpu *vcpu, vmx_set_segment() argument
3955 static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) vmx_get_cs_db_l_bits() argument
3963 static void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_get_idt() argument
3969 static void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_set_idt() argument
3975 static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_get_gdt() argument
3981 static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_set_gdt() argument
3987 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) rmode_segment_valid() argument
4008 static bool code_segment_valid(struct kvm_vcpu *vcpu) code_segment_valid() argument
4036 static bool stack_segment_valid(struct kvm_vcpu *vcpu) stack_segment_valid() argument
4058 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) data_segment_valid() argument
4083 static bool tr_valid(struct kvm_vcpu *vcpu) tr_valid() argument
4101 static bool ldtr_valid(struct kvm_vcpu *vcpu) ldtr_valid() argument
4119 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) cs_ss_rpl_check() argument
4135 static bool guest_state_valid(struct kvm_vcpu *vcpu) guest_state_valid() argument
4493 static int vmx_cpu_uses_apicv(struct kvm_vcpu *vcpu) vmx_cpu_uses_apicv() argument
4498 static int vmx_complete_nested_posted_interrupt(struct kvm_vcpu *vcpu) vmx_complete_nested_posted_interrupt() argument
4535 static inline bool kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu) kvm_vcpu_trigger_posted_interrupt() argument
4563 static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, vmx_deliver_nested_posted_interrupt() argument
4589 static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) vmx_deliver_posted_interrupt() argument
4607 static void vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu) vmx_sync_pir_to_irr() argument
4617 static void vmx_sync_pir_to_irr_dummy(struct kvm_vcpu *vcpu) vmx_sync_pir_to_irr_dummy() argument
4872 static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) vmx_vcpu_reset() argument
4971 static bool nested_exit_on_intr(struct kvm_vcpu *vcpu) nested_exit_on_intr() argument
4981 static bool nested_exit_intr_ack_set(struct kvm_vcpu *vcpu) nested_exit_intr_ack_set() argument
4987 static bool nested_exit_on_nmi(struct kvm_vcpu *vcpu) nested_exit_on_nmi() argument
4993 static void enable_irq_window(struct kvm_vcpu *vcpu) enable_irq_window() argument
5002 static void enable_nmi_window(struct kvm_vcpu *vcpu) enable_nmi_window() argument
5017 static void vmx_inject_irq(struct kvm_vcpu *vcpu) vmx_inject_irq() argument
5044 static void vmx_inject_nmi(struct kvm_vcpu *vcpu) vmx_inject_nmi() argument
5075 static bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu) vmx_get_nmi_mask() argument
5084 static void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) vmx_set_nmi_mask() argument
5104 static int vmx_nmi_allowed(struct kvm_vcpu *vcpu) vmx_nmi_allowed() argument
5117 static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu) vmx_interrupt_allowed() argument
5137 static bool rmode_exception(struct kvm_vcpu *vcpu, int vec) rmode_exception() argument
5169 static int handle_rmode_exception(struct kvm_vcpu *vcpu, handle_rmode_exception() argument
5215 static int handle_machine_check(struct kvm_vcpu *vcpu) handle_machine_check() argument
5221 static int handle_exception(struct kvm_vcpu *vcpu) handle_exception() argument
5332 static int handle_external_interrupt(struct kvm_vcpu *vcpu) handle_external_interrupt() argument
5338 static int handle_triple_fault(struct kvm_vcpu *vcpu) handle_triple_fault() argument
5344 static int handle_io(struct kvm_vcpu *vcpu) handle_io() argument
5367 vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) vmx_patch_hypercall() argument
5377 static bool nested_cr0_valid(struct kvm_vcpu *vcpu, unsigned long val) nested_cr0_valid() argument
5390 static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) handle_set_cr0() argument
5422 static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val) handle_set_cr4() argument
5440 static void handle_clts(struct kvm_vcpu *vcpu) handle_clts() argument
5455 static int handle_cr(struct kvm_vcpu *vcpu) handle_cr() argument
5534 static int handle_dr(struct kvm_vcpu *vcpu) handle_dr() argument
5602 static u64 vmx_get_dr6(struct kvm_vcpu *vcpu) vmx_get_dr6() argument
5607 static void vmx_set_dr6(struct kvm_vcpu *vcpu, unsigned long val) vmx_set_dr6() argument
5611 static void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) vmx_sync_dirty_debug_regs() argument
5629 static void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val) vmx_set_dr7() argument
5634 static int handle_cpuid(struct kvm_vcpu *vcpu) handle_cpuid() argument
5640 static int handle_rdmsr(struct kvm_vcpu *vcpu) handle_rdmsr() argument
5662 static int handle_wrmsr(struct kvm_vcpu *vcpu) handle_wrmsr() argument
5683 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu) handle_tpr_below_threshold() argument
5689 static int handle_interrupt_window(struct kvm_vcpu *vcpu) handle_interrupt_window() argument
5704 static int handle_halt(struct kvm_vcpu *vcpu) handle_halt() argument
5709 static int handle_vmcall(struct kvm_vcpu *vcpu) handle_vmcall() argument
5715 static int handle_invd(struct kvm_vcpu *vcpu) handle_invd() argument
5720 static int handle_invlpg(struct kvm_vcpu *vcpu) handle_invlpg() argument
5729 static int handle_rdpmc(struct kvm_vcpu *vcpu) handle_rdpmc() argument
5739 static int handle_wbinvd(struct kvm_vcpu *vcpu) handle_wbinvd() argument
5745 static int handle_xsetbv(struct kvm_vcpu *vcpu) handle_xsetbv() argument
5755 static int handle_xsaves(struct kvm_vcpu *vcpu) handle_xsaves() argument
5762 static int handle_xrstors(struct kvm_vcpu *vcpu) handle_xrstors() argument
5769 static int handle_apic_access(struct kvm_vcpu *vcpu) handle_apic_access() argument
5792 static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu) handle_apic_eoi_induced() argument
5802 static int handle_apic_write(struct kvm_vcpu *vcpu) handle_apic_write() argument
5812 static int handle_task_switch(struct kvm_vcpu *vcpu) handle_task_switch() argument
5877 static int handle_ept_violation(struct kvm_vcpu *vcpu) handle_ept_violation() argument
5925 static int handle_ept_misconfig(struct kvm_vcpu *vcpu) handle_ept_misconfig() argument
5957 static int handle_nmi_window(struct kvm_vcpu *vcpu) handle_nmi_window() argument
5971 static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) handle_invalid_guest_state() argument
6049 static void grow_ple_window(struct kvm_vcpu *vcpu) grow_ple_window() argument
6062 static void shrink_ple_window(struct kvm_vcpu *vcpu) shrink_ple_window() argument
6096 struct kvm_vcpu *vcpu; wakeup_handler() local
6349 static int handle_pause(struct kvm_vcpu *vcpu) handle_pause() argument
6360 static int handle_nop(struct kvm_vcpu *vcpu) handle_nop() argument
6366 static int handle_mwait(struct kvm_vcpu *vcpu) handle_mwait() argument
6372 static int handle_monitor_trap(struct kvm_vcpu *vcpu) handle_monitor_trap() argument
6377 static int handle_monitor(struct kvm_vcpu *vcpu) handle_monitor() argument
6475 static void nested_vmx_succeed(struct kvm_vcpu *vcpu) nested_vmx_succeed() argument
6482 static void nested_vmx_failInvalid(struct kvm_vcpu *vcpu) nested_vmx_failInvalid() argument
6490 static void nested_vmx_failValid(struct kvm_vcpu *vcpu, nested_vmx_failValid() argument
6512 static void nested_vmx_abort(struct kvm_vcpu *vcpu, u32 indicator) nested_vmx_abort() argument
6537 static int get_vmx_mem_address(struct kvm_vcpu *vcpu, get_vmx_mem_address() argument
6636 static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, nested_vmx_check_vmptr() argument
6732 static int handle_vmon(struct kvm_vcpu *vcpu) handle_vmon() argument
6808 static int nested_vmx_check_permission(struct kvm_vcpu *vcpu) nested_vmx_check_permission() argument
6892 static int handle_vmoff(struct kvm_vcpu *vcpu) handle_vmoff() argument
6903 static int handle_vmclear(struct kvm_vcpu *vcpu) handle_vmclear() argument
6946 static int handle_vmlaunch(struct kvm_vcpu *vcpu) handle_vmlaunch() argument
6952 static int handle_vmresume(struct kvm_vcpu *vcpu) handle_vmresume() argument
6984 static inline int vmcs12_read_any(struct kvm_vcpu *vcpu, vmcs12_read_any() argument
7015 static inline int vmcs12_write_any(struct kvm_vcpu *vcpu, vmcs12_write_any() argument
7133 static int nested_vmx_check_vmcs12(struct kvm_vcpu *vcpu) nested_vmx_check_vmcs12() argument
7144 static int handle_vmread(struct kvm_vcpu *vcpu) handle_vmread() argument
7187 static int handle_vmwrite(struct kvm_vcpu *vcpu) handle_vmwrite() argument
7241 static int handle_vmptrld(struct kvm_vcpu *vcpu) handle_vmptrld() argument
7290 static int handle_vmptrst(struct kvm_vcpu *vcpu) handle_vmptrst() argument
7316 static int handle_invept(struct kvm_vcpu *vcpu) handle_invept() argument
7382 static int handle_invvpid(struct kvm_vcpu *vcpu) handle_invvpid() argument
7445 static int handle_pml_full(struct kvm_vcpu *vcpu) handle_pml_full() argument
7470 static int handle_pcommit(struct kvm_vcpu *vcpu) handle_pcommit() argument
7533 static bool nested_vmx_exit_handled_io(struct kvm_vcpu *vcpu, nested_vmx_exit_handled_io() argument
7582 static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu, nested_vmx_exit_handled_msr() argument
7619 static bool nested_vmx_exit_handled_cr(struct kvm_vcpu *vcpu, nested_vmx_exit_handled_cr() argument
7700 static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) nested_vmx_exit_handled() argument
7836 static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2) vmx_get_exit_info() argument
7866 static void vmx_flush_pml_buffer(struct kvm_vcpu *vcpu) vmx_flush_pml_buffer() argument
7904 struct kvm_vcpu *vcpu; kvm_flush_pml_buffers() local
8074 static int vmx_handle_exit(struct kvm_vcpu *vcpu) vmx_handle_exit() argument
8167 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) update_cr8_intercept() argument
8183 static void vmx_set_virtual_x2apic_mode(struct kvm_vcpu *vcpu, bool set) vmx_set_virtual_x2apic_mode() argument
8212 static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu, hpa_t hpa) vmx_set_apic_access_page_addr() argument
8269 static void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr) vmx_hwapic_irr_update() argument
8297 static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu) vmx_load_eoi_exitmap() argument
8333 static void vmx_handle_external_intr(struct kvm_vcpu *vcpu) vmx_handle_external_intr() argument
8438 static void __vmx_complete_interrupts(struct kvm_vcpu *vcpu, __vmx_complete_interrupts() argument
8499 static void vmx_cancel_injection(struct kvm_vcpu *vcpu) vmx_cancel_injection() argument
8527 static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu) vmx_vcpu_run() argument
8724 static void vmx_load_vmcs01(struct kvm_vcpu *vcpu) vmx_load_vmcs01() argument
8740 static void vmx_free_vcpu(struct kvm_vcpu *vcpu) vmx_free_vcpu() argument
8868 static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) vmx_get_mt_mask() argument
8938 static void vmx_cpuid_update(struct kvm_vcpu *vcpu) vmx_cpuid_update() argument
8989 static void nested_ept_inject_page_fault(struct kvm_vcpu *vcpu, nested_ept_inject_page_fault() argument
9005 static unsigned long nested_ept_get_cr3(struct kvm_vcpu *vcpu) nested_ept_get_cr3() argument
9011 static void nested_ept_init_mmu_context(struct kvm_vcpu *vcpu) nested_ept_init_mmu_context() argument
9024 static void nested_ept_uninit_mmu_context(struct kvm_vcpu *vcpu) nested_ept_uninit_mmu_context() argument
9041 static void vmx_inject_page_fault_nested(struct kvm_vcpu *vcpu, vmx_inject_page_fault_nested() argument
9056 static bool nested_get_vmcs12_pages(struct kvm_vcpu *vcpu, nested_get_vmcs12_pages() argument
9132 static void vmx_start_preemption_timer(struct kvm_vcpu *vcpu) vmx_start_preemption_timer() argument
9154 static int nested_vmx_check_msr_bitmap_controls(struct kvm_vcpu *vcpu, nested_vmx_check_msr_bitmap_controls() argument
9180 static inline bool nested_vmx_merge_msr_bitmap(struct kvm_vcpu *vcpu, nested_vmx_merge_msr_bitmap() argument
9259 static int nested_vmx_check_apicv_controls(struct kvm_vcpu *vcpu, nested_vmx_check_apicv_controls() argument
9302 static int nested_vmx_check_msr_switch(struct kvm_vcpu *vcpu, nested_vmx_check_msr_switch() argument
9327 static int nested_vmx_check_msr_switch_controls(struct kvm_vcpu *vcpu, nested_vmx_check_msr_switch_controls() argument
9344 static int nested_vmx_msr_check_common(struct kvm_vcpu *vcpu, nested_vmx_msr_check_common() argument
9358 static int nested_vmx_load_msr_check(struct kvm_vcpu *vcpu, nested_vmx_load_msr_check() argument
9369 static int nested_vmx_store_msr_check(struct kvm_vcpu *vcpu, nested_vmx_store_msr_check() argument
9382 static u32 nested_vmx_load_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) nested_vmx_load_msr() argument
9417 static int nested_vmx_store_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) nested_vmx_store_msr() argument
9468 static void prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) prepare_vmcs02() argument
9796 static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch) nested_vmx_run() argument
10008 vmcs12_guest_cr0(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) vmcs12_guest_cr0() argument
10018 vmcs12_guest_cr4(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) vmcs12_guest_cr4() argument
10027 static void vmcs12_save_pending_event(struct kvm_vcpu *vcpu, vmcs12_save_pending_event() argument
10069 static int vmx_check_nested_events(struct kvm_vcpu *vcpu, bool external_intr) vmx_check_nested_events() argument
10108 static u32 vmx_get_preemption_timer_value(struct kvm_vcpu *vcpu) vmx_get_preemption_timer_value() argument
10133 static void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12, prepare_vmcs12() argument
10286 static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, load_vmcs12_host_state() argument
10423 static void nested_vmx_vmexit(struct kvm_vcpu *vcpu, u32 exit_reason, nested_vmx_vmexit() argument
10516 static void vmx_leave_nested(struct kvm_vcpu *vcpu) vmx_leave_nested() argument
10530 static void nested_vmx_entry_failure(struct kvm_vcpu *vcpu, nested_vmx_entry_failure() argument
10542 static int vmx_check_intercept(struct kvm_vcpu *vcpu, vmx_check_intercept() argument
10549 static void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu) vmx_sched_in() argument
10593 static int vmx_pre_block(struct kvm_vcpu *vcpu) vmx_pre_block() argument
10659 static void vmx_post_block(struct kvm_vcpu *vcpu) vmx_post_block() argument
10715 struct kvm_vcpu *vcpu; vmx_update_pi_irte() local
3679 ept_update_paging_mode_cr0(unsigned long *hw_cr0, unsigned long cr0, struct kvm_vcpu *vcpu) ept_update_paging_mode_cr0() argument
H A Dx86.c189 static inline void kvm_async_pf_hash_reset(struct kvm_vcpu *vcpu) kvm_async_pf_hash_reset() argument
279 u64 kvm_get_apic_base(struct kvm_vcpu *vcpu) kvm_get_apic_base() argument
285 int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_set_apic_base() argument
361 static void kvm_multiple_exception(struct kvm_vcpu *vcpu, kvm_multiple_exception() argument
405 void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr) kvm_queue_exception() argument
411 void kvm_requeue_exception(struct kvm_vcpu *vcpu, unsigned nr) kvm_requeue_exception() argument
417 void kvm_complete_insn_gp(struct kvm_vcpu *vcpu, int err) kvm_complete_insn_gp() argument
426 void kvm_inject_page_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) kvm_inject_page_fault() argument
434 static bool kvm_propagate_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) kvm_propagate_fault() argument
444 void kvm_inject_nmi(struct kvm_vcpu *vcpu) kvm_inject_nmi() argument
451 void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code) kvm_queue_exception_e() argument
457 void kvm_requeue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code) kvm_requeue_exception_e() argument
467 bool kvm_require_cpl(struct kvm_vcpu *vcpu, int required_cpl) kvm_require_cpl() argument
476 bool kvm_require_dr(struct kvm_vcpu *vcpu, int dr) kvm_require_dr() argument
491 int kvm_read_guest_page_mmu(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, kvm_read_guest_page_mmu() argument
510 static int kvm_read_nested_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn, kvm_read_nested_guest_page() argument
520 int load_pdptrs(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, unsigned long cr3) load_pdptrs() argument
556 static bool pdptrs_changed(struct kvm_vcpu *vcpu) pdptrs_changed() argument
583 int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) kvm_set_cr0() argument
642 void kvm_lmsw(struct kvm_vcpu *vcpu, unsigned long msw) kvm_lmsw() argument
648 static void kvm_load_guest_xcr0(struct kvm_vcpu *vcpu) kvm_load_guest_xcr0() argument
658 static void kvm_put_guest_xcr0(struct kvm_vcpu *vcpu) kvm_put_guest_xcr0() argument
667 static int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr) __kvm_set_xcr() argument
707 int kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr) kvm_set_xcr() argument
718 int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) kvm_set_cr4() argument
771 int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) kvm_set_cr3() argument
797 int kvm_set_cr8(struct kvm_vcpu *vcpu, unsigned long cr8) kvm_set_cr8() argument
809 unsigned long kvm_get_cr8(struct kvm_vcpu *vcpu) kvm_get_cr8() argument
818 static void kvm_update_dr0123(struct kvm_vcpu *vcpu) kvm_update_dr0123() argument
829 static void kvm_update_dr6(struct kvm_vcpu *vcpu) kvm_update_dr6() argument
835 static void kvm_update_dr7(struct kvm_vcpu *vcpu) kvm_update_dr7() argument
849 static u64 kvm_dr6_fixed(struct kvm_vcpu *vcpu) kvm_dr6_fixed() argument
858 static int __kvm_set_dr(struct kvm_vcpu *vcpu, int dr, unsigned long val) __kvm_set_dr() argument
887 int kvm_set_dr(struct kvm_vcpu *vcpu, int dr, unsigned long val) kvm_set_dr() argument
897 int kvm_get_dr(struct kvm_vcpu *vcpu, int dr, unsigned long *val) kvm_get_dr() argument
921 bool kvm_rdpmc(struct kvm_vcpu *vcpu) kvm_rdpmc() argument
981 bool kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer) kvm_valid_efer() argument
1006 static int set_efer(struct kvm_vcpu *vcpu, u64 efer) set_efer() argument
1040 int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) kvm_set_msr() argument
1074 static int do_get_msr(struct kvm_vcpu *vcpu, unsigned index, u64 *data) do_get_msr() argument
1089 static int do_set_msr(struct kvm_vcpu *vcpu, unsigned index, u64 *data) do_set_msr() argument
1140 void kvm_set_pending_timer(struct kvm_vcpu *vcpu) kvm_set_pending_timer() argument
1243 static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec) nsec_to_cycles() argument
1256 static int set_tsc_khz(struct kvm_vcpu *vcpu, u32 user_tsc_khz, bool scale) set_tsc_khz() argument
1292 static int kvm_set_tsc_khz(struct kvm_vcpu *vcpu, u32 this_tsc_khz) kvm_set_tsc_khz() argument
1325 static u64 compute_guest_tsc(struct kvm_vcpu *vcpu, s64 kernel_ns) compute_guest_tsc() argument
1334 static void kvm_track_tsc_matching(struct kvm_vcpu *vcpu) kvm_track_tsc_matching() argument
1362 static void update_ia32_tsc_adjust_msr(struct kvm_vcpu *vcpu, s64 offset) update_ia32_tsc_adjust_msr() argument
1383 u64 kvm_scale_tsc(struct kvm_vcpu *vcpu, u64 tsc) kvm_scale_tsc() argument
1395 static u64 kvm_compute_tsc_offset(struct kvm_vcpu *vcpu, u64 target_tsc) kvm_compute_tsc_offset() argument
1404 u64 kvm_read_l1_tsc(struct kvm_vcpu *vcpu, u64 host_tsc) kvm_read_l1_tsc() argument
1410 void kvm_write_tsc(struct kvm_vcpu *vcpu, struct msr_data *msr) kvm_write_tsc() argument
1535 static inline void adjust_tsc_offset_guest(struct kvm_vcpu *vcpu, adjust_tsc_offset_guest() argument
1541 static inline void adjust_tsc_offset_host(struct kvm_vcpu *vcpu, s64 adjustment) adjust_tsc_offset_host() argument
1689 struct kvm_vcpu *vcpu; kvm_gen_update_masterclock() local
1711 struct kvm_vcpu_arch *vcpu = &v->arch; kvm_guest_time_update() local
1865 struct kvm_vcpu *vcpu; kvmclock_update_fn() local
1899 static int set_msr_mce(struct kvm_vcpu *vcpu, u32 msr, u64 data) set_msr_mce() argument
1935 static int xen_hvm_config(struct kvm_vcpu *vcpu, u64 data) xen_hvm_config() argument
1966 static int kvm_pv_enable_async_pf(struct kvm_vcpu *vcpu, u64 data) kvm_pv_enable_async_pf() argument
1991 static void kvmclock_reset(struct kvm_vcpu *vcpu) kvmclock_reset() argument
1996 static void accumulate_steal_time(struct kvm_vcpu *vcpu) accumulate_steal_time() argument
2008 static void record_steal_time(struct kvm_vcpu *vcpu) record_steal_time() argument
2027 int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_set_msr_common() argument
2243 int kvm_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) kvm_get_msr() argument
2249 static int get_msr_mce(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) get_msr_mce() argument
2284 int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_get_msr_common() argument
2451 static int __msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs *msrs, __msr_io() argument
2472 static int msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs __user *user_msrs, msr_io() argument
2690 static bool need_emulate_wbinvd(struct kvm_vcpu *vcpu) need_emulate_wbinvd() argument
2695 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument
2741 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument
2748 static int kvm_vcpu_ioctl_get_lapic(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_get_lapic() argument
2757 static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_set_lapic() argument
2766 static int kvm_cpu_accept_dm_intr(struct kvm_vcpu *vcpu) kvm_cpu_accept_dm_intr() argument
2778 static int kvm_vcpu_ready_for_interrupt_injection(struct kvm_vcpu *vcpu) kvm_vcpu_ready_for_interrupt_injection() argument
2786 static int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_interrupt() argument
2813 static int kvm_vcpu_ioctl_nmi(struct kvm_vcpu *vcpu) kvm_vcpu_ioctl_nmi() argument
2820 static int kvm_vcpu_ioctl_smi(struct kvm_vcpu *vcpu) kvm_vcpu_ioctl_smi() argument
2827 static int vcpu_ioctl_tpr_access_reporting(struct kvm_vcpu *vcpu, vcpu_ioctl_tpr_access_reporting() argument
2836 static int kvm_vcpu_ioctl_x86_setup_mce(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_setup_mce() argument
2859 static int kvm_vcpu_ioctl_x86_set_mce(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_mce() argument
2907 static void kvm_vcpu_ioctl_x86_get_vcpu_events(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_vcpu_events() argument
2944 static int kvm_vcpu_ioctl_x86_set_vcpu_events(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_vcpu_events() argument
2998 static void kvm_vcpu_ioctl_x86_get_debugregs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_debugregs() argument
3011 static int kvm_vcpu_ioctl_x86_set_debugregs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_debugregs() argument
3034 static void fill_xsave(u8 *dest, struct kvm_vcpu *vcpu) fill_xsave() argument
3070 static void load_xsave(struct kvm_vcpu *vcpu, u8 *src) load_xsave() argument
3108 static void kvm_vcpu_ioctl_x86_get_xsave(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_xsave() argument
3123 static int kvm_vcpu_ioctl_x86_set_xsave(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_xsave() argument
3147 static void kvm_vcpu_ioctl_x86_get_xcrs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_xcrs() argument
3161 static int kvm_vcpu_ioctl_x86_set_xcrs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_xcrs() argument
3190 static int kvm_set_guest_paused(struct kvm_vcpu *vcpu) kvm_set_guest_paused() argument
3202 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local
3471 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument
4052 static int vcpu_mmio_write(struct kvm_vcpu *vcpu, gpa_t addr, int len, vcpu_mmio_write() argument
4073 static int vcpu_mmio_read(struct kvm_vcpu *vcpu, gpa_t addr, int len, void *v) vcpu_mmio_read() argument
4095 static void kvm_set_segment(struct kvm_vcpu *vcpu, kvm_set_segment() argument
4101 void kvm_get_segment(struct kvm_vcpu *vcpu, kvm_get_segment() argument
4107 gpa_t translate_nested_gpa(struct kvm_vcpu *vcpu, gpa_t gpa, u32 access, translate_nested_gpa() argument
4121 gpa_t kvm_mmu_gva_to_gpa_read(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_read() argument
4128 gpa_t kvm_mmu_gva_to_gpa_fetch(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_fetch() argument
4136 gpa_t kvm_mmu_gva_to_gpa_write(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_write() argument
4145 gpa_t kvm_mmu_gva_to_gpa_system(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_system() argument
4187 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_fetch_guest_virt() local
4213 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_read_guest_virt() local
4225 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_read_guest_virt_system() local
4232 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_read_guest_phys_system() local
4243 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_write_guest_virt_system() local
4272 static int vcpu_mmio_gva_to_gpa(struct kvm_vcpu *vcpu, unsigned long gva, vcpu_mmio_gva_to_gpa() argument
4305 int emulator_write_phys(struct kvm_vcpu *vcpu, gpa_t gpa, emulator_write_phys() argument
4329 static int read_prepare(struct kvm_vcpu *vcpu, void *val, int bytes) read_prepare() argument
4341 static int read_emulate(struct kvm_vcpu *vcpu, gpa_t gpa, read_emulate() argument
4347 static int write_emulate(struct kvm_vcpu *vcpu, gpa_t gpa, write_emulate() argument
4353 static int write_mmio(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes, void *val) write_mmio() argument
4359 static int read_exit_mmio(struct kvm_vcpu *vcpu, gpa_t gpa, read_exit_mmio() argument
4366 static int write_exit_mmio(struct kvm_vcpu *vcpu, gpa_t gpa, write_exit_mmio() argument
4438 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_read_write() local
4523 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_cmpxchg_emulated() local
4581 static int kernel_pio(struct kvm_vcpu *vcpu, void *pd) kernel_pio() argument
4596 static int emulator_pio_in_out(struct kvm_vcpu *vcpu, int size, emulator_pio_in_out() argument
4624 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_pio_in_emulated() local
4646 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_pio_out_emulated() local
4653 static unsigned long get_segment_base(struct kvm_vcpu *vcpu, int seg) get_segment_base() argument
4663 int kvm_emulate_wbinvd_noskip(struct kvm_vcpu *vcpu) kvm_emulate_wbinvd_noskip() argument
4681 int kvm_emulate_wbinvd(struct kvm_vcpu *vcpu) kvm_emulate_wbinvd() argument
4715 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_get_cr() local
4744 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_set_cr() local
4840 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_set_segment() local
4895 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_get_smbase() local
4902 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_set_smbase() local
5009 static void toggle_interruptibility(struct kvm_vcpu *vcpu, u32 mask) toggle_interruptibility() argument
5028 static bool inject_emulated_exception(struct kvm_vcpu *vcpu) inject_emulated_exception() argument
5042 static void init_emulate_ctxt(struct kvm_vcpu *vcpu) init_emulate_ctxt() argument
5065 int kvm_inject_realmode_interrupt(struct kvm_vcpu *vcpu, int irq, int inc_eip) kvm_inject_realmode_interrupt() argument
5093 static int handle_emulation_failure(struct kvm_vcpu *vcpu) handle_emulation_failure() argument
5110 static bool reexecute_instruction(struct kvm_vcpu *vcpu, gva_t cr2, reexecute_instruction() argument
5184 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); retry_instruction() local
5228 static void kvm_smm_changed(struct kvm_vcpu *vcpu) kvm_smm_changed() argument
5246 static void kvm_set_hflags(struct kvm_vcpu *vcpu, unsigned emul_flags) kvm_set_hflags() argument
5271 static void kvm_vcpu_check_singlestep(struct kvm_vcpu *vcpu, unsigned long rflags, int *r) kvm_vcpu_check_singlestep() argument
5305 static bool kvm_vcpu_check_breakpoint(struct kvm_vcpu *vcpu, int *r) kvm_vcpu_check_breakpoint() argument
5344 int x86_emulate_instruction(struct kvm_vcpu *vcpu, x86_emulate_instruction() argument
5479 int kvm_fast_pio_out(struct kvm_vcpu *vcpu, int size, unsigned short port) kvm_fast_pio_out() argument
5514 struct kvm_vcpu *vcpu; kvmclock_cpufreq_notifier() local
5681 void kvm_before_handle_nmi(struct kvm_vcpu *vcpu) kvm_before_handle_nmi() argument
5687 void kvm_after_handle_nmi(struct kvm_vcpu *vcpu) kvm_after_handle_nmi() argument
5728 struct kvm_vcpu *vcpu; pvclock_gtod_update_fn() local
5843 int kvm_vcpu_halt(struct kvm_vcpu *vcpu) kvm_vcpu_halt() argument
5856 int kvm_emulate_halt(struct kvm_vcpu *vcpu) kvm_emulate_halt() argument
5881 int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) kvm_emulate_hypercall() argument
5936 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_fix_hypercall() local
5945 static int dm_request_for_irq_injection(struct kvm_vcpu *vcpu) dm_request_for_irq_injection() argument
5951 static void post_kvm_run_save(struct kvm_vcpu *vcpu) post_kvm_run_save() argument
5964 static void update_cr8_intercept(struct kvm_vcpu *vcpu) update_cr8_intercept() argument
5987 static int inject_pending_event(struct kvm_vcpu *vcpu, bool req_int_win) inject_pending_event() argument
6057 static void process_nmi(struct kvm_vcpu *vcpu) process_nmi() argument
6091 static void process_smi_save_seg_32(struct kvm_vcpu *vcpu, char *buf, int n) process_smi_save_seg_32() argument
6110 static void process_smi_save_seg_64(struct kvm_vcpu *vcpu, char *buf, int n) process_smi_save_seg_64() argument
6127 static void process_smi_save_state_32(struct kvm_vcpu *vcpu, char *buf) process_smi_save_state_32() argument
6177 static void process_smi_save_state_64(struct kvm_vcpu *vcpu, char *buf) process_smi_save_state_64() argument
6234 static void process_smi(struct kvm_vcpu *vcpu) process_smi() argument
6308 static void vcpu_scan_ioapic(struct kvm_vcpu *vcpu) vcpu_scan_ioapic() argument
6324 static void kvm_vcpu_flush_tlb(struct kvm_vcpu *vcpu) kvm_vcpu_flush_tlb() argument
6330 void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu) kvm_vcpu_reload_apic_access_page() argument
6369 static int vcpu_enter_guest(struct kvm_vcpu *vcpu) vcpu_enter_guest() argument
6621 static inline int vcpu_block(struct kvm *kvm, struct kvm_vcpu *vcpu) vcpu_block() argument
6654 static inline bool kvm_vcpu_running(struct kvm_vcpu *vcpu) kvm_vcpu_running() argument
6660 static int vcpu_run(struct kvm_vcpu *vcpu) vcpu_run() argument
6709 static inline int complete_emulated_io(struct kvm_vcpu *vcpu) complete_emulated_io() argument
6720 static int complete_emulated_pio(struct kvm_vcpu *vcpu) complete_emulated_pio() argument
6745 static int complete_emulated_mmio(struct kvm_vcpu *vcpu) complete_emulated_mmio() argument
6791 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) kvm_arch_vcpu_ioctl_run() argument
6837 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument
6875 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument
6909 void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) kvm_get_cs_db_l_bits() argument
6919 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument
6958 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument
6971 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument
6987 int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index, kvm_task_switch() argument
7008 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument
7089 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument
7147 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
7165 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument
7182 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument
7199 static void fx_init(struct kvm_vcpu *vcpu) fx_init() argument
7214 void kvm_load_guest_fpu(struct kvm_vcpu *vcpu) kvm_load_guest_fpu() argument
7230 void kvm_put_guest_fpu(struct kvm_vcpu *vcpu) kvm_put_guest_fpu() argument
7254 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument
7265 struct kvm_vcpu *vcpu; kvm_arch_vcpu_create() local
7277 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument
7291 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument
7311 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument
7324 void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) kvm_vcpu_reset() argument
7365 void kvm_vcpu_deliver_sipi_vector(struct kvm_vcpu *vcpu, u8 vector) kvm_vcpu_deliver_sipi_vector() argument
7379 struct kvm_vcpu *vcpu; kvm_arch_hardware_enable() local
7509 bool kvm_vcpu_is_reset_bsp(struct kvm_vcpu *vcpu) kvm_vcpu_is_reset_bsp() argument
7515 bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu) kvm_vcpu_is_bsp() argument
7520 bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu) kvm_vcpu_compatible() argument
7527 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument
7607 void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) kvm_arch_vcpu_uninit() argument
7622 void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) kvm_arch_sched_in() argument
7656 static void kvm_unload_vcpu_mmu(struct kvm_vcpu *vcpu) kvm_unload_vcpu_mmu() argument
7668 struct kvm_vcpu *vcpu; kvm_free_vcpus() local
7984 static inline bool kvm_vcpu_has_events(struct kvm_vcpu *vcpu) kvm_vcpu_has_events() argument
8008 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) kvm_arch_vcpu_runnable() argument
8016 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument
8021 int kvm_arch_interrupt_allowed(struct kvm_vcpu *vcpu) kvm_arch_interrupt_allowed() argument
8026 unsigned long kvm_get_linear_rip(struct kvm_vcpu *vcpu) kvm_get_linear_rip() argument
8035 bool kvm_is_linear_rip(struct kvm_vcpu *vcpu, unsigned long linear_rip) kvm_is_linear_rip() argument
8041 unsigned long kvm_get_rflags(struct kvm_vcpu *vcpu) kvm_get_rflags() argument
8052 static void __kvm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) __kvm_set_rflags() argument
8060 void kvm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) kvm_set_rflags() argument
8067 void kvm_arch_async_page_ready(struct kvm_vcpu *vcpu, struct kvm_async_pf *work) kvm_arch_async_page_ready() argument
8096 static void kvm_add_async_pf_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_add_async_pf_gfn() argument
8106 static u32 kvm_async_pf_gfn_slot(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_async_pf_gfn_slot() argument
8119 bool kvm_find_async_pf_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_find_async_pf_gfn() argument
8124 static void kvm_del_async_pf_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_del_async_pf_gfn() argument
8147 static int apf_put_user(struct kvm_vcpu *vcpu, u32 val) apf_put_user() argument
8154 void kvm_arch_async_page_not_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_not_present() argument
8176 void kvm_arch_async_page_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_present() argument
8200 bool kvm_arch_can_inject_async_page_present(struct kvm_vcpu *vcpu) kvm_arch_can_inject_async_page_present() argument
4151 kvm_read_guest_virt_helper(gva_t addr, void *val, unsigned int bytes, struct kvm_vcpu *vcpu, u32 access, struct x86_exception *exception) kvm_read_guest_virt_helper() argument
4389 emulator_read_write_onepage(unsigned long addr, void *val, unsigned int bytes, struct x86_exception *exception, struct kvm_vcpu *vcpu, const struct read_write_emulator_ops *ops) emulator_read_write_onepage() argument
/linux-4.4.14/arch/x86/xen/
H A Dirq.c28 struct vcpu_info *vcpu; xen_save_fl() local
46 struct vcpu_info *vcpu; xen_restore_fl() local
79 struct vcpu_info *vcpu; xen_irq_enable() local
H A Dtime.c99 bool xen_vcpu_stolen(int vcpu) xen_vcpu_stolen() argument
/linux-4.4.14/include/kvm/
H A Diodev.h54 static inline int kvm_iodevice_read(struct kvm_vcpu *vcpu, kvm_iodevice_read() argument
62 static inline int kvm_iodevice_write(struct kvm_vcpu *vcpu, kvm_iodevice_write() argument
/linux-4.4.14/arch/powerpc/include/asm/
H A Dkvm_book3s_32.h23 static inline struct kvmppc_book3s_shadow_vcpu *svcpu_get(struct kvm_vcpu *vcpu) svcpu_get() argument
H A Dkvm_booke.h37 static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val) kvmppc_set_gpr() argument
42 static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) kvmppc_get_gpr() argument
47 static inline void kvmppc_set_cr(struct kvm_vcpu *vcpu, u32 val) kvmppc_set_cr() argument
52 static inline u32 kvmppc_get_cr(struct kvm_vcpu *vcpu) kvmppc_get_cr() argument
57 static inline void kvmppc_set_xer(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_xer() argument
62 static inline ulong kvmppc_get_xer(struct kvm_vcpu *vcpu) kvmppc_get_xer() argument
67 static inline bool kvmppc_need_byteswap(struct kvm_vcpu *vcpu) kvmppc_need_byteswap() argument
73 static inline void kvmppc_set_ctr(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_ctr() argument
78 static inline ulong kvmppc_get_ctr(struct kvm_vcpu *vcpu) kvmppc_get_ctr() argument
83 static inline void kvmppc_set_lr(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_lr() argument
88 static inline ulong kvmppc_get_lr(struct kvm_vcpu *vcpu) kvmppc_get_lr() argument
93 static inline void kvmppc_set_pc(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_pc() argument
98 static inline ulong kvmppc_get_pc(struct kvm_vcpu *vcpu) kvmppc_get_pc() argument
103 static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu) kvmppc_get_fault_dar() argument
108 static inline bool kvmppc_supports_magic_page(struct kvm_vcpu *vcpu) kvmppc_supports_magic_page() argument
H A Dfsl_hcalls.h565 static inline unsigned int fh_enter_nap(unsigned int handle, unsigned int vcpu) fh_enter_nap() argument
590 static inline unsigned int fh_exit_nap(unsigned int handle, unsigned int vcpu) fh_exit_nap() argument
534 fh_get_core_state(unsigned int handle, unsigned int vcpu, unsigned int *state) fh_get_core_state() argument
H A Dkvm_book3s_64.h24 static inline struct kvmppc_book3s_shadow_vcpu *svcpu_get(struct kvm_vcpu *vcpu) svcpu_get() argument
H A Dkvm_book3s.h195 static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu) to_book3s() argument
209 static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val) kvmppc_set_gpr() argument
214 static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) kvmppc_get_gpr() argument
219 static inline void kvmppc_set_cr(struct kvm_vcpu *vcpu, u32 val) kvmppc_set_cr() argument
224 static inline u32 kvmppc_get_cr(struct kvm_vcpu *vcpu) kvmppc_get_cr() argument
229 static inline void kvmppc_set_xer(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_xer() argument
234 static inline ulong kvmppc_get_xer(struct kvm_vcpu *vcpu) kvmppc_get_xer() argument
239 static inline void kvmppc_set_ctr(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_ctr() argument
244 static inline ulong kvmppc_get_ctr(struct kvm_vcpu *vcpu) kvmppc_get_ctr() argument
249 static inline void kvmppc_set_lr(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_lr() argument
254 static inline ulong kvmppc_get_lr(struct kvm_vcpu *vcpu) kvmppc_get_lr() argument
259 static inline void kvmppc_set_pc(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_pc() argument
264 static inline ulong kvmppc_get_pc(struct kvm_vcpu *vcpu) kvmppc_get_pc() argument
270 static inline bool kvmppc_need_byteswap(struct kvm_vcpu *vcpu) kvmppc_need_byteswap() argument
275 static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu) kvmppc_get_fault_dar() argument
286 static inline bool kvmppc_supports_magic_page(struct kvm_vcpu *vcpu) kvmppc_supports_magic_page() argument
H A Dkvm_ppc.h279 static inline int kvmppc_get_last_inst(struct kvm_vcpu *vcpu, kvmppc_get_last_inst() argument
402 static inline void kvmppc_fast_vcpu_kick(struct kvm_vcpu *vcpu) kvmppc_fast_vcpu_kick() argument
426 static inline void kvmppc_fast_vcpu_kick(struct kvm_vcpu *vcpu) kvmppc_fast_vcpu_kick() argument
436 static inline int kvmppc_xics_enabled(struct kvm_vcpu *vcpu) kvmppc_xics_enabled() argument
449 static inline int kvmppc_xics_enabled(struct kvm_vcpu *vcpu) kvmppc_xics_enabled() argument
451 static inline void kvmppc_xics_free_icp(struct kvm_vcpu *vcpu) { } kvmppc_xics_create_icp() argument
452 static inline int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu, kvmppc_xics_create_icp() argument
458 static inline int kvmppc_xics_hcall(struct kvm_vcpu *vcpu, u32 cmd) kvmppc_xics_hcall() argument
462 static inline unsigned long kvmppc_get_epr(struct kvm_vcpu *vcpu) kvmppc_get_epr() argument
473 static inline void kvmppc_set_epr(struct kvm_vcpu *vcpu, u32 epr) kvmppc_set_epr() argument
491 static inline void kvmppc_mpic_set_epr(struct kvm_vcpu *vcpu) kvmppc_mpic_set_epr() argument
540 static inline bool kvmppc_shared_big_endian(struct kvm_vcpu *vcpu) kvmppc_shared_big_endian() argument
613 static inline void kvmppc_set_msr_fast(struct kvm_vcpu *vcpu, u64 val) kvmppc_set_msr_fast() argument
627 static inline u32 kvmppc_get_sr(struct kvm_vcpu *vcpu, int nr) kvmppc_get_sr() argument
635 static inline void kvmppc_set_sr(struct kvm_vcpu *vcpu, int nr, u32 val) kvmppc_set_sr() argument
665 static inline ulong kvmppc_get_ea_indexed(struct kvm_vcpu *vcpu, int ra, int rb) kvmppc_get_ea_indexed() argument
495 kvmppc_mpic_connect_vcpu(struct kvm_device *dev, struct kvm_vcpu *vcpu, u32 cpu) kvmppc_mpic_connect_vcpu() argument
501 kvmppc_mpic_disconnect_vcpu(struct openpic *opp, struct kvm_vcpu *vcpu) kvmppc_mpic_disconnect_vcpu() argument
H A Dkvm_host.h717 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} kvm_arch_exit() argument
719 static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {} kvm_arch_vcpu_unblocking() argument
720 static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {} argument
/linux-4.4.14/virt/kvm/
H A Dasync_pf.c31 static inline void kvm_async_page_present_sync(struct kvm_vcpu *vcpu, kvm_async_page_present_sync() argument
38 static inline void kvm_async_page_present_async(struct kvm_vcpu *vcpu, kvm_async_page_present_async() argument
65 void kvm_async_pf_vcpu_init(struct kvm_vcpu *vcpu) kvm_async_pf_vcpu_init() argument
77 struct kvm_vcpu *vcpu = apf->vcpu; async_pf_execute() local
108 void kvm_clear_async_pf_completion_queue(struct kvm_vcpu *vcpu) kvm_clear_async_pf_completion_queue() argument
141 void kvm_check_async_pf_completion(struct kvm_vcpu *vcpu) kvm_check_async_pf_completion() argument
162 int kvm_setup_async_pf(struct kvm_vcpu *vcpu, gva_t gva, unsigned long hva, kvm_setup_async_pf() argument
209 int kvm_async_pf_wakeup_all(struct kvm_vcpu *vcpu) kvm_async_pf_wakeup_all() argument
H A Dcoalesced_mmio.c63 static int coalesced_mmio_write(struct kvm_vcpu *vcpu, coalesced_mmio_write() argument
H A Deventfd.c724 ioeventfd_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr, ioeventfd_write() argument
H A Dkvm_main.c133 int vcpu_load(struct kvm_vcpu *vcpu) vcpu_load() argument
146 void vcpu_put(struct kvm_vcpu *vcpu) vcpu_put() argument
164 struct kvm_vcpu *vcpu; kvm_make_all_cpus_request() local
219 int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) kvm_vcpu_init() argument
259 void kvm_vcpu_uninit(struct kvm_vcpu *vcpu) kvm_vcpu_uninit() argument
1163 struct kvm_memory_slot *kvm_vcpu_gfn_to_memslot(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_vcpu_gfn_to_memslot() argument
1243 unsigned long kvm_vcpu_gfn_to_hva(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_vcpu_gfn_to_hva() argument
1271 unsigned long kvm_vcpu_gfn_to_hva_prot(struct kvm_vcpu *vcpu, gfn_t gfn, bool *writable) kvm_vcpu_gfn_to_hva_prot() argument
1493 pfn_t kvm_vcpu_gfn_to_pfn_atomic(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_vcpu_gfn_to_pfn_atomic() argument
1505 pfn_t kvm_vcpu_gfn_to_pfn(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_vcpu_gfn_to_pfn() argument
1551 struct page *kvm_vcpu_gfn_to_page(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_vcpu_gfn_to_page() argument
1647 int kvm_vcpu_read_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn, void *data, kvm_vcpu_read_guest_page() argument
1676 int kvm_vcpu_read_guest(struct kvm_vcpu *vcpu, gpa_t gpa, void *data, unsigned long len) kvm_vcpu_read_guest() argument
1724 int kvm_vcpu_read_guest_atomic(struct kvm_vcpu *vcpu, gpa_t gpa, kvm_vcpu_read_guest_atomic() argument
1760 int kvm_vcpu_write_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn, kvm_vcpu_write_guest_page() argument
1790 int kvm_vcpu_write_guest(struct kvm_vcpu *vcpu, gpa_t gpa, const void *data, kvm_vcpu_write_guest() argument
1945 void kvm_vcpu_mark_page_dirty(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_vcpu_mark_page_dirty() argument
1954 static void grow_halt_poll_ns(struct kvm_vcpu *vcpu) grow_halt_poll_ns() argument
1972 static void shrink_halt_poll_ns(struct kvm_vcpu *vcpu) shrink_halt_poll_ns() argument
1986 static int kvm_vcpu_check_block(struct kvm_vcpu *vcpu) kvm_vcpu_check_block() argument
2003 void kvm_vcpu_block(struct kvm_vcpu *vcpu) kvm_vcpu_block() argument
2068 void kvm_vcpu_kick(struct kvm_vcpu *vcpu) kvm_vcpu_kick() argument
2131 static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) kvm_vcpu_eligible_for_directed_yield() argument
2151 struct kvm_vcpu *vcpu; kvm_vcpu_on_spin() local
2202 struct kvm_vcpu *vcpu = vma->vm_file->private_data; kvm_vcpu_fault() local
2234 struct kvm_vcpu *vcpu = filp->private_data; kvm_vcpu_release() local
2253 static int create_vcpu_fd(struct kvm_vcpu *vcpu) create_vcpu_fd() argument
2264 struct kvm_vcpu *vcpu, *v; kvm_vm_ioctl_create_vcpu() local
2325 static int kvm_vcpu_ioctl_set_sigmask(struct kvm_vcpu *vcpu, sigset_t *sigset) kvm_vcpu_ioctl_set_sigmask() argument
2339 struct kvm_vcpu *vcpu = filp->private_data; kvm_vcpu_ioctl() local
2543 struct kvm_vcpu *vcpu = filp->private_data; kvm_vcpu_compat_ioctl() local
3238 static int __kvm_io_bus_write(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, __kvm_io_bus_write() argument
3259 int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_write() argument
3277 int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, kvm_io_bus_write_cookie() argument
3304 static int __kvm_io_bus_read(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, __kvm_io_bus_read() argument
3326 int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_read() argument
3426 struct kvm_vcpu *vcpu; vcpu_stat_get() local
3508 struct kvm_vcpu *vcpu = preempt_notifier_to_vcpu(pn); kvm_sched_in() local
3521 struct kvm_vcpu *vcpu = preempt_notifier_to_vcpu(pn); kvm_sched_out() local
/linux-4.4.14/include/xen/interface/
H A Dxenpmu.h38 uint32_t vcpu; member in struct:xen_pmu_params
H A Devent_channel.h63 uint32_t vcpu; member in struct:evtchn_bind_virq
92 uint32_t vcpu; member in struct:evtchn_bind_ipi
139 uint32_t vcpu; /* VCPU to which this channel is bound. */ member in struct:evtchn_status
167 uint32_t vcpu; member in struct:evtchn_bind_vcpu
201 uint32_t vcpu; member in struct:evtchn_init_control
/linux-4.4.14/arch/s390/kvm/
H A Dgaccess.h30 static inline unsigned long kvm_s390_real_to_abs(struct kvm_vcpu *vcpu, kvm_s390_real_to_abs() argument
55 static inline unsigned long kvm_s390_logical_to_effective(struct kvm_vcpu *vcpu, kvm_s390_logical_to_effective() argument
124 int write_guest_lc(struct kvm_vcpu *vcpu, unsigned long gra, void *data, write_guest_lc() argument
150 int read_guest_lc(struct kvm_vcpu *vcpu, unsigned long gra, void *data, read_guest_lc() argument
215 int write_guest(struct kvm_vcpu *vcpu, unsigned long ga, ar_t ar, void *data, write_guest() argument
235 int read_guest(struct kvm_vcpu *vcpu, unsigned long ga, ar_t ar, void *data, read_guest() argument
258 int write_guest_abs(struct kvm_vcpu *vcpu, unsigned long gpa, void *data, write_guest_abs() argument
281 int read_guest_abs(struct kvm_vcpu *vcpu, unsigned long gpa, void *data, read_guest_abs() argument
304 int write_guest_real(struct kvm_vcpu *vcpu, unsigned long gra, void *data, write_guest_real() argument
327 int read_guest_real(struct kvm_vcpu *vcpu, unsigned long gra, void *data, read_guest_real() argument
H A Ddiag.c23 static int diag_release_pages(struct kvm_vcpu *vcpu) diag_release_pages() argument
61 static int __diag_page_ref_service(struct kvm_vcpu *vcpu) __diag_page_ref_service() argument
148 static int __diag_time_slice_end(struct kvm_vcpu *vcpu) __diag_time_slice_end() argument
156 static int __diag_time_slice_end_directed(struct kvm_vcpu *vcpu) __diag_time_slice_end_directed() argument
179 static int __diag_ipl_functions(struct kvm_vcpu *vcpu) __diag_ipl_functions() argument
209 static int __diag_virtio_hypercall(struct kvm_vcpu *vcpu) __diag_virtio_hypercall() argument
240 int kvm_s390_handle_diag(struct kvm_vcpu *vcpu) kvm_s390_handle_diag() argument
H A Dintercept.c41 void kvm_s390_rewind_psw(struct kvm_vcpu *vcpu, int ilc) kvm_s390_rewind_psw() argument
54 static int handle_noop(struct kvm_vcpu *vcpu) handle_noop() argument
69 static int handle_stop(struct kvm_vcpu *vcpu) handle_stop() argument
103 static int handle_validity(struct kvm_vcpu *vcpu) handle_validity() argument
113 static int handle_instruction(struct kvm_vcpu *vcpu) handle_instruction() argument
127 static void __extract_prog_irq(struct kvm_vcpu *vcpu, __extract_prog_irq() argument
192 static int handle_itdb(struct kvm_vcpu *vcpu) handle_itdb() argument
212 static int handle_prog(struct kvm_vcpu *vcpu) handle_prog() argument
252 static int handle_external_interrupt(struct kvm_vcpu *vcpu) handle_external_interrupt() argument
299 static int handle_mvpg_pei(struct kvm_vcpu *vcpu) handle_mvpg_pei() argument
329 static int handle_partial_execution(struct kvm_vcpu *vcpu) handle_partial_execution() argument
339 int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu) kvm_handle_sie_intercept() argument
H A Dguestdbg.c62 static void enable_all_hw_bp(struct kvm_vcpu *vcpu) enable_all_hw_bp() argument
102 static void enable_all_hw_wp(struct kvm_vcpu *vcpu) enable_all_hw_wp() argument
133 void kvm_s390_backup_guest_per_regs(struct kvm_vcpu *vcpu) kvm_s390_backup_guest_per_regs() argument
141 void kvm_s390_restore_guest_per_regs(struct kvm_vcpu *vcpu) kvm_s390_restore_guest_per_regs() argument
149 void kvm_s390_patch_guest_per_regs(struct kvm_vcpu *vcpu) kvm_s390_patch_guest_per_regs() argument
177 static int __import_wp_info(struct kvm_vcpu *vcpu, __import_wp_info() argument
206 int kvm_s390_import_bp_data(struct kvm_vcpu *vcpu, kvm_s390_import_bp_data() argument
290 void kvm_s390_clear_bp_data(struct kvm_vcpu *vcpu) kvm_s390_clear_bp_data() argument
321 static struct kvm_hw_bp_info_arch *find_hw_bp(struct kvm_vcpu *vcpu, find_hw_bp() argument
346 static struct kvm_hw_wp_info_arch *any_wp_changed(struct kvm_vcpu *vcpu) any_wp_changed() argument
379 void kvm_s390_prepare_debug_exit(struct kvm_vcpu *vcpu) kvm_s390_prepare_debug_exit() argument
390 static int debug_exit_required(struct kvm_vcpu *vcpu) debug_exit_required() argument
442 static void filter_guest_per_event(struct kvm_vcpu *vcpu) filter_guest_per_event() argument
481 void kvm_s390_handle_per_event(struct kvm_vcpu *vcpu) kvm_s390_handle_per_event() argument
H A Dkvm-s390.h51 static inline int is_vcpu_stopped(struct kvm_vcpu *vcpu) is_vcpu_stopped() argument
68 static inline u32 kvm_s390_get_prefix(struct kvm_vcpu *vcpu) kvm_s390_get_prefix() argument
73 static inline void kvm_s390_set_prefix(struct kvm_vcpu *vcpu, u32 prefix) kvm_s390_set_prefix() argument
84 static inline u64 kvm_s390_get_base_disp_s(struct kvm_vcpu *vcpu, ar_t *ar) kvm_s390_get_base_disp_s() argument
95 static inline void kvm_s390_get_base_disp_sse(struct kvm_vcpu *vcpu, kvm_s390_get_base_disp_sse() argument
113 static inline void kvm_s390_get_regs_rre(struct kvm_vcpu *vcpu, int *r1, int *r2) kvm_s390_get_regs_rre() argument
121 static inline u64 kvm_s390_get_base_disp_rsy(struct kvm_vcpu *vcpu, ar_t *ar) kvm_s390_get_base_disp_rsy() argument
136 static inline u64 kvm_s390_get_base_disp_rs(struct kvm_vcpu *vcpu, ar_t *ar) kvm_s390_get_base_disp_rs() argument
148 static inline void kvm_s390_set_psw_cc(struct kvm_vcpu *vcpu, unsigned long cc) kvm_s390_set_psw_cc() argument
189 static inline int kvm_s390_inject_prog_irq(struct kvm_vcpu *vcpu, kvm_s390_inject_prog_irq() argument
199 static inline int kvm_s390_inject_program_int(struct kvm_vcpu *vcpu, u16 code) kvm_s390_inject_program_int() argument
258 struct kvm_vcpu *vcpu; kvm_s390_vcpu_block_all() local
268 struct kvm_vcpu *vcpu; kvm_s390_vcpu_unblock_all() local
310 static inline int kvm_s390_inject_prog_cond(struct kvm_vcpu *vcpu, int rc) kvm_s390_inject_prog_cond() argument
H A Dsigp.c23 static int __sigp_sense(struct kvm_vcpu *vcpu, struct kvm_vcpu *dst_vcpu, __sigp_sense() argument
51 static int __inject_sigp_emergency(struct kvm_vcpu *vcpu, __inject_sigp_emergency() argument
68 static int __sigp_emergency(struct kvm_vcpu *vcpu, struct kvm_vcpu *dst_vcpu) __sigp_emergency() argument
73 static int __sigp_conditional_emergency(struct kvm_vcpu *vcpu, __sigp_conditional_emergency() argument
100 static int __sigp_external_call(struct kvm_vcpu *vcpu, __sigp_external_call() argument
122 static int __sigp_stop(struct kvm_vcpu *vcpu, struct kvm_vcpu *dst_vcpu) __sigp_stop() argument
139 static int __sigp_stop_and_store_status(struct kvm_vcpu *vcpu, __sigp_stop_and_store_status() argument
158 static int __sigp_set_arch(struct kvm_vcpu *vcpu, u32 parameter) __sigp_set_arch() argument
183 static int __sigp_set_prefix(struct kvm_vcpu *vcpu, struct kvm_vcpu *dst_vcpu, __sigp_set_prefix() argument
213 static int __sigp_store_status_at_addr(struct kvm_vcpu *vcpu, __sigp_store_status_at_addr() argument
237 static int __sigp_sense_running(struct kvm_vcpu *vcpu, __sigp_sense_running() argument
260 static int __prepare_sigp_re_start(struct kvm_vcpu *vcpu, __prepare_sigp_re_start() argument
276 static int __prepare_sigp_cpu_reset(struct kvm_vcpu *vcpu, __prepare_sigp_cpu_reset() argument
283 static int __prepare_sigp_unknown(struct kvm_vcpu *vcpu, __prepare_sigp_unknown() argument
290 static int handle_sigp_dst(struct kvm_vcpu *vcpu, u8 order_code, handle_sigp_dst() argument
367 static int handle_sigp_order_in_user_space(struct kvm_vcpu *vcpu, u8 order_code, handle_sigp_order_in_user_space() argument
417 int kvm_s390_handle_sigp(struct kvm_vcpu *vcpu) kvm_s390_handle_sigp() argument
467 int kvm_s390_handle_sigp_pei(struct kvm_vcpu *vcpu) kvm_s390_handle_sigp_pei() argument
H A Dpriv.c34 static int handle_set_clock(struct kvm_vcpu *vcpu) handle_set_clock() argument
57 static int handle_set_prefix(struct kvm_vcpu *vcpu) handle_set_prefix() argument
95 static int handle_store_prefix(struct kvm_vcpu *vcpu) handle_store_prefix() argument
125 static int handle_store_cpu_address(struct kvm_vcpu *vcpu) handle_store_cpu_address() argument
151 static int __skey_check_enable(struct kvm_vcpu *vcpu) __skey_check_enable() argument
165 static int handle_skey(struct kvm_vcpu *vcpu) handle_skey() argument
181 static int handle_ipte_interlock(struct kvm_vcpu *vcpu) handle_ipte_interlock() argument
192 static int handle_test_block(struct kvm_vcpu *vcpu) handle_test_block() argument
220 static int handle_tpi(struct kvm_vcpu *vcpu) handle_tpi() argument
284 static int handle_tsch(struct kvm_vcpu *vcpu) handle_tsch() argument
315 static int handle_io_inst(struct kvm_vcpu *vcpu) handle_io_inst() argument
343 static int handle_stfl(struct kvm_vcpu *vcpu) handle_stfl() argument
389 int kvm_s390_handle_lpsw(struct kvm_vcpu *vcpu) kvm_s390_handle_lpsw() argument
417 static int handle_lpswe(struct kvm_vcpu *vcpu) handle_lpswe() argument
439 static int handle_stidp(struct kvm_vcpu *vcpu) handle_stidp() argument
464 static void handle_stsi_3_2_2(struct kvm_vcpu *vcpu, struct sysinfo_3_2_2 *mem) handle_stsi_3_2_2() argument
491 static void insert_stsi_usr_data(struct kvm_vcpu *vcpu, u64 addr, ar_t ar, insert_stsi_usr_data() argument
502 static int handle_stsi(struct kvm_vcpu *vcpu) handle_stsi() argument
611 int kvm_s390_handle_b2(struct kvm_vcpu *vcpu) kvm_s390_handle_b2() argument
627 static int handle_epsw(struct kvm_vcpu *vcpu) handle_epsw() argument
654 static int handle_pfmf(struct kvm_vcpu *vcpu) handle_pfmf() argument
742 static int handle_essa(struct kvm_vcpu *vcpu) handle_essa() argument
790 int kvm_s390_handle_b9(struct kvm_vcpu *vcpu) kvm_s390_handle_b9() argument
802 int kvm_s390_handle_lctl(struct kvm_vcpu *vcpu) kvm_s390_handle_lctl() argument
841 int kvm_s390_handle_stctl(struct kvm_vcpu *vcpu) kvm_s390_handle_stctl() argument
875 static int handle_lctlg(struct kvm_vcpu *vcpu) handle_lctlg() argument
913 static int handle_stctg(struct kvm_vcpu *vcpu) handle_stctg() argument
952 int kvm_s390_handle_eb(struct kvm_vcpu *vcpu) kvm_s390_handle_eb() argument
962 static int handle_tprot(struct kvm_vcpu *vcpu) handle_tprot() argument
1016 int kvm_s390_handle_e5(struct kvm_vcpu *vcpu) kvm_s390_handle_e5() argument
1024 static int handle_sckpf(struct kvm_vcpu *vcpu) handle_sckpf() argument
1045 int kvm_s390_handle_01(struct kvm_vcpu *vcpu) kvm_s390_handle_01() argument
H A Dgaccess.c260 int ipte_lock_held(struct kvm_vcpu *vcpu) ipte_lock_held() argument
269 static void ipte_lock_simple(struct kvm_vcpu *vcpu) ipte_lock_simple() argument
291 static void ipte_unlock_simple(struct kvm_vcpu *vcpu) ipte_unlock_simple() argument
310 static void ipte_lock_siif(struct kvm_vcpu *vcpu) ipte_lock_siif() argument
327 static void ipte_unlock_siif(struct kvm_vcpu *vcpu) ipte_unlock_siif() argument
343 void ipte_lock(struct kvm_vcpu *vcpu) ipte_lock() argument
351 void ipte_unlock(struct kvm_vcpu *vcpu) ipte_unlock() argument
359 static int ar_translation(struct kvm_vcpu *vcpu, union asce *asce, ar_t ar, ar_translation() argument
463 static int get_vcpu_asce(struct kvm_vcpu *vcpu, union asce *asce, get_vcpu_asce() argument
539 static unsigned long guest_translate(struct kvm_vcpu *vcpu, unsigned long gva, guest_translate() argument
700 static int low_address_protection_enabled(struct kvm_vcpu *vcpu, low_address_protection_enabled() argument
713 static int guest_page_range(struct kvm_vcpu *vcpu, unsigned long ga, guest_page_range() argument
754 int access_guest(struct kvm_vcpu *vcpu, unsigned long ga, ar_t ar, void *data, access_guest() argument
798 int access_guest_real(struct kvm_vcpu *vcpu, unsigned long gra, access_guest_real() argument
827 int guest_translate_address(struct kvm_vcpu *vcpu, unsigned long gva, ar_t ar, guest_translate_address() argument
869 int check_gva_range(struct kvm_vcpu *vcpu, unsigned long gva, ar_t ar, check_gva_range() argument
897 int kvm_s390_check_low_addr_prot_real(struct kvm_vcpu *vcpu, unsigned long gra) kvm_s390_check_low_addr_prot_real() argument
H A Dinterrupt.c37 int psw_extint_disabled(struct kvm_vcpu *vcpu) psw_extint_disabled() argument
42 static int psw_ioint_disabled(struct kvm_vcpu *vcpu) psw_ioint_disabled() argument
47 static int psw_mchk_disabled(struct kvm_vcpu *vcpu) psw_mchk_disabled() argument
52 static int psw_interrupts_disabled(struct kvm_vcpu *vcpu) psw_interrupts_disabled() argument
59 static int ckc_interrupts_enabled(struct kvm_vcpu *vcpu) ckc_interrupts_enabled() argument
70 static int ckc_irq_pending(struct kvm_vcpu *vcpu) ckc_irq_pending() argument
77 static int cpu_timer_interrupts_enabled(struct kvm_vcpu *vcpu) cpu_timer_interrupts_enabled() argument
83 static int cpu_timer_irq_pending(struct kvm_vcpu *vcpu) cpu_timer_irq_pending() argument
105 static inline unsigned long pending_irqs(struct kvm_vcpu *vcpu) pending_irqs() argument
111 static unsigned long disable_iscs(struct kvm_vcpu *vcpu, disable_iscs() argument
123 static unsigned long deliverable_irqs(struct kvm_vcpu *vcpu) deliverable_irqs() argument
162 static void __set_cpu_idle(struct kvm_vcpu *vcpu) __set_cpu_idle() argument
168 static void __unset_cpu_idle(struct kvm_vcpu *vcpu) __unset_cpu_idle() argument
174 static void __reset_intercept_indicators(struct kvm_vcpu *vcpu) __reset_intercept_indicators() argument
188 static void __set_cpuflag(struct kvm_vcpu *vcpu, u32 flag) __set_cpuflag() argument
193 static void set_intercept_indicators_io(struct kvm_vcpu *vcpu) set_intercept_indicators_io() argument
203 static void set_intercept_indicators_ext(struct kvm_vcpu *vcpu) set_intercept_indicators_ext() argument
213 static void set_intercept_indicators_mchk(struct kvm_vcpu *vcpu) set_intercept_indicators_mchk() argument
223 static void set_intercept_indicators_stop(struct kvm_vcpu *vcpu) set_intercept_indicators_stop() argument
230 static void set_intercept_indicators(struct kvm_vcpu *vcpu) set_intercept_indicators() argument
238 static u16 get_ilc(struct kvm_vcpu *vcpu) get_ilc() argument
255 static int __must_check __deliver_cpu_timer(struct kvm_vcpu *vcpu) __deliver_cpu_timer() argument
274 static int __must_check __deliver_ckc(struct kvm_vcpu *vcpu) __deliver_ckc() argument
293 static int __must_check __deliver_pfault_init(struct kvm_vcpu *vcpu) __deliver_pfault_init() argument
321 static int __must_check __deliver_machine_check(struct kvm_vcpu *vcpu) __deliver_machine_check() argument
392 static int __must_check __deliver_restart(struct kvm_vcpu *vcpu) __deliver_restart() argument
410 static int __must_check __deliver_set_prefix(struct kvm_vcpu *vcpu) __deliver_set_prefix() argument
430 static int __must_check __deliver_emergency_signal(struct kvm_vcpu *vcpu) __deliver_emergency_signal() argument
458 static int __must_check __deliver_external_call(struct kvm_vcpu *vcpu) __deliver_external_call() argument
486 static int __must_check __deliver_prog(struct kvm_vcpu *vcpu) __deliver_prog() argument
599 static int __must_check __deliver_service(struct kvm_vcpu *vcpu) __deliver_service() argument
633 static int __must_check __deliver_pfault_done(struct kvm_vcpu *vcpu) __deliver_pfault_done() argument
675 static int __must_check __deliver_virtio(struct kvm_vcpu *vcpu) __deliver_virtio() argument
721 static int __must_check __deliver_io(struct kvm_vcpu *vcpu, __deliver_io() argument
792 int kvm_s390_ext_call_pending(struct kvm_vcpu *vcpu) kvm_s390_ext_call_pending() argument
804 int kvm_s390_vcpu_has_irq(struct kvm_vcpu *vcpu, int exclude_stop) kvm_s390_vcpu_has_irq() argument
823 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument
828 int kvm_s390_handle_wait(struct kvm_vcpu *vcpu) kvm_s390_handle_wait() argument
869 void kvm_s390_vcpu_wakeup(struct kvm_vcpu *vcpu) kvm_s390_vcpu_wakeup() argument
884 struct kvm_vcpu *vcpu; kvm_s390_idle_wakeup() local
902 void kvm_s390_clear_local_irqs(struct kvm_vcpu *vcpu) kvm_s390_clear_local_irqs() argument
917 int __must_check kvm_s390_deliver_pending_interrupts(struct kvm_vcpu *vcpu) kvm_s390_deliver_pending_interrupts() argument
958 static int __inject_prog(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_prog() argument
990 static int __inject_pfault_init(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_pfault_init() argument
1006 static int __inject_extcall_sigpif(struct kvm_vcpu *vcpu, uint16_t src_id) __inject_extcall_sigpif() argument
1021 static int __inject_extcall(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_extcall() argument
1046 static int __inject_set_prefix(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_set_prefix() argument
1065 static int __inject_sigp_stop(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_sigp_stop() argument
1090 static int __inject_sigp_restart(struct kvm_vcpu *vcpu, __inject_sigp_restart() argument
1102 static int __inject_sigp_emergency(struct kvm_vcpu *vcpu, __inject_sigp_emergency() argument
1122 static int __inject_mchk(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_mchk() argument
1153 static int __inject_ckc(struct kvm_vcpu *vcpu) __inject_ckc() argument
1166 static int __inject_cpu_timer(struct kvm_vcpu *vcpu) __inject_cpu_timer() argument
1494 int kvm_s390_is_stop_irq_pending(struct kvm_vcpu *vcpu) kvm_s390_is_stop_irq_pending() argument
1501 void kvm_s390_clear_stop_irq(struct kvm_vcpu *vcpu) kvm_s390_clear_stop_irq() argument
1511 static int do_inject_vcpu(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) do_inject_vcpu() argument
1556 int kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) kvm_s390_inject_vcpu() argument
1942 struct kvm_vcpu *vcpu; flic_set_attr() local
2122 int kvm_s390_set_irq_state(struct kvm_vcpu *vcpu, void __user *irqstate, int len) kvm_s390_set_irq_state() argument
2204 int kvm_s390_get_irq_state(struct kvm_vcpu *vcpu, __u8 __user *buf, int len) kvm_s390_get_irq_state() argument
H A Dkvm-s390.c153 struct kvm_vcpu *vcpu; kvm_clock_sync() local
464 struct kvm_vcpu *vcpu; kvm_s390_vm_set_crypto() local
1185 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument
1214 struct kvm_vcpu *vcpu; kvm_free_vcpus() local
1242 static int __kvm_ucontrol_vcpu_init(struct kvm_vcpu *vcpu) __kvm_ucontrol_vcpu_init() argument
1252 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument
1271 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument
1293 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument
1310 static void kvm_s390_vcpu_initial_reset(struct kvm_vcpu *vcpu) kvm_s390_vcpu_initial_reset() argument
1334 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument
1345 static void kvm_s390_vcpu_crypto_setup(struct kvm_vcpu *vcpu) kvm_s390_vcpu_crypto_setup() argument
1360 void kvm_s390_vcpu_unsetup_cmma(struct kvm_vcpu *vcpu) kvm_s390_vcpu_unsetup_cmma() argument
1366 int kvm_s390_vcpu_setup_cmma(struct kvm_vcpu *vcpu) kvm_s390_vcpu_setup_cmma() argument
1377 static void kvm_s390_vcpu_setup_model(struct kvm_vcpu *vcpu) kvm_s390_vcpu_setup_model() argument
1386 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument
1433 struct kvm_vcpu *vcpu; kvm_arch_vcpu_create() local
1489 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) kvm_arch_vcpu_runnable() argument
1494 void kvm_s390_vcpu_block(struct kvm_vcpu *vcpu) kvm_s390_vcpu_block() argument
1500 void kvm_s390_vcpu_unblock(struct kvm_vcpu *vcpu) kvm_s390_vcpu_unblock() argument
1505 static void kvm_s390_vcpu_request(struct kvm_vcpu *vcpu) kvm_s390_vcpu_request() argument
1511 static void kvm_s390_vcpu_request_handled(struct kvm_vcpu *vcpu) kvm_s390_vcpu_request_handled() argument
1520 void exit_sie(struct kvm_vcpu *vcpu) exit_sie() argument
1528 void kvm_s390_sync_request(int req, struct kvm_vcpu *vcpu) kvm_s390_sync_request() argument
1538 struct kvm_vcpu *vcpu; kvm_gmap_notifier() local
1549 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument
1556 static int kvm_arch_vcpu_ioctl_get_one_reg(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_one_reg() argument
1605 static int kvm_arch_vcpu_ioctl_set_one_reg(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_one_reg() argument
1656 static int kvm_arch_vcpu_ioctl_initial_reset(struct kvm_vcpu *vcpu) kvm_arch_vcpu_ioctl_initial_reset() argument
1662 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument
1668 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument
1674 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument
1683 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument
1691 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument
1705 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument
1717 static int kvm_arch_vcpu_ioctl_set_initial_psw(struct kvm_vcpu *vcpu, psw_t psw) kvm_arch_vcpu_ioctl_set_initial_psw() argument
1730 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
1740 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument
1772 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument
1780 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument
1805 static bool ibs_enabled(struct kvm_vcpu *vcpu) ibs_enabled() argument
1810 static int kvm_s390_handle_requests(struct kvm_vcpu *vcpu) kvm_s390_handle_requests() argument
1864 struct kvm_vcpu *vcpu; kvm_s390_set_tod_clock() local
1888 long kvm_arch_fault_in_page(struct kvm_vcpu *vcpu, gpa_t gpa, int writable) kvm_arch_fault_in_page() argument
1894 static void __kvm_inject_pfault_token(struct kvm_vcpu *vcpu, bool start_token, __kvm_inject_pfault_token() argument
1911 void kvm_arch_async_page_not_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_not_present() argument
1918 void kvm_arch_async_page_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_present() argument
1925 void kvm_arch_async_page_ready(struct kvm_vcpu *vcpu, kvm_arch_async_page_ready() argument
1931 bool kvm_arch_can_inject_async_page_present(struct kvm_vcpu *vcpu) kvm_arch_can_inject_async_page_present() argument
1940 static int kvm_arch_setup_async_pf(struct kvm_vcpu *vcpu) kvm_arch_setup_async_pf() argument
1969 static int vcpu_pre_run(struct kvm_vcpu *vcpu) vcpu_pre_run() argument
2011 static int vcpu_post_run_fault_in_sie(struct kvm_vcpu *vcpu) vcpu_post_run_fault_in_sie() argument
2036 static int vcpu_post_run(struct kvm_vcpu *vcpu, int exit_reason) vcpu_post_run() argument
2083 static int __vcpu_run(struct kvm_vcpu *vcpu) __vcpu_run() argument
2120 static void sync_regs(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) sync_regs() argument
2148 static void store_regs(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) store_regs() argument
2164 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) kvm_arch_vcpu_ioctl_run() argument
2230 int kvm_s390_store_status_unloaded(struct kvm_vcpu *vcpu, unsigned long gpa) kvm_s390_store_status_unloaded() argument
2281 int kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, unsigned long addr) kvm_s390_vcpu_store_status() argument
2298 int kvm_s390_store_adtl_status_unloaded(struct kvm_vcpu *vcpu, kvm_s390_store_adtl_status_unloaded() argument
2309 int kvm_s390_vcpu_store_adtl_status(struct kvm_vcpu *vcpu, unsigned long addr) kvm_s390_vcpu_store_adtl_status() argument
2327 static void __disable_ibs_on_vcpu(struct kvm_vcpu *vcpu) __disable_ibs_on_vcpu() argument
2336 struct kvm_vcpu *vcpu; __disable_ibs_on_all_vcpus() local
2343 static void __enable_ibs_on_vcpu(struct kvm_vcpu *vcpu) __enable_ibs_on_vcpu() argument
2349 void kvm_s390_vcpu_start(struct kvm_vcpu *vcpu) kvm_s390_vcpu_start() argument
2388 void kvm_s390_vcpu_stop(struct kvm_vcpu *vcpu) kvm_s390_vcpu_stop() argument
2426 static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_enable_cap() argument
2450 static long kvm_s390_guest_mem_op(struct kvm_vcpu *vcpu, kvm_s390_guest_mem_op() argument
2512 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local
2664 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument
/linux-4.4.14/virt/kvm/arm/
H A Dvgic-v2.c33 static struct vgic_lr vgic_v2_get_lr(const struct kvm_vcpu *vcpu, int lr) vgic_v2_get_lr() argument
59 static void vgic_v2_set_lr(struct kvm_vcpu *vcpu, int lr, vgic_v2_set_lr() argument
89 static u64 vgic_v2_get_elrsr(const struct kvm_vcpu *vcpu) vgic_v2_get_elrsr() argument
94 static u64 vgic_v2_get_eisr(const struct kvm_vcpu *vcpu) vgic_v2_get_eisr() argument
99 static void vgic_v2_clear_eisr(struct kvm_vcpu *vcpu) vgic_v2_clear_eisr() argument
104 static u32 vgic_v2_get_interrupt_status(const struct kvm_vcpu *vcpu) vgic_v2_get_interrupt_status() argument
117 static void vgic_v2_enable_underflow(struct kvm_vcpu *vcpu) vgic_v2_enable_underflow() argument
122 static void vgic_v2_disable_underflow(struct kvm_vcpu *vcpu) vgic_v2_disable_underflow() argument
127 static void vgic_v2_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v2_get_vmcr() argument
137 static void vgic_v2_set_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v2_set_vmcr() argument
149 static void vgic_v2_enable(struct kvm_vcpu *vcpu) vgic_v2_enable() argument
H A Dvgic-v3.c47 static struct vgic_lr vgic_v3_get_lr(const struct kvm_vcpu *vcpu, int lr) vgic_v3_get_lr() argument
78 static void vgic_v3_set_lr(struct kvm_vcpu *vcpu, int lr, vgic_v3_set_lr() argument
122 static u64 vgic_v3_get_elrsr(const struct kvm_vcpu *vcpu) vgic_v3_get_elrsr() argument
127 static u64 vgic_v3_get_eisr(const struct kvm_vcpu *vcpu) vgic_v3_get_eisr() argument
132 static void vgic_v3_clear_eisr(struct kvm_vcpu *vcpu) vgic_v3_clear_eisr() argument
137 static u32 vgic_v3_get_interrupt_status(const struct kvm_vcpu *vcpu) vgic_v3_get_interrupt_status() argument
150 static void vgic_v3_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v3_get_vmcr() argument
160 static void vgic_v3_enable_underflow(struct kvm_vcpu *vcpu) vgic_v3_enable_underflow() argument
165 static void vgic_v3_disable_underflow(struct kvm_vcpu *vcpu) vgic_v3_disable_underflow() argument
170 static void vgic_v3_set_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v3_set_vmcr() argument
182 static void vgic_v3_enable(struct kvm_vcpu *vcpu) vgic_v3_enable() argument
H A Darch_timer.c66 struct kvm_vcpu *vcpu = *(struct kvm_vcpu **)dev_id; kvm_arch_timer_handler() local
84 struct kvm_vcpu *vcpu; kvm_timer_inject_irq_work() local
98 static u64 kvm_timer_compute_delta(struct kvm_vcpu *vcpu) kvm_timer_compute_delta() argument
121 struct kvm_vcpu *vcpu; kvm_timer_expire() local
142 static bool kvm_timer_irq_can_fire(struct kvm_vcpu *vcpu) kvm_timer_irq_can_fire() argument
150 bool kvm_timer_should_fire(struct kvm_vcpu *vcpu) kvm_timer_should_fire() argument
164 static void kvm_timer_update_irq(struct kvm_vcpu *vcpu, bool new_level) kvm_timer_update_irq() argument
184 static int kvm_timer_update_state(struct kvm_vcpu *vcpu) kvm_timer_update_state() argument
208 void kvm_timer_schedule(struct kvm_vcpu *vcpu) kvm_timer_schedule() argument
233 void kvm_timer_unschedule(struct kvm_vcpu *vcpu) kvm_timer_unschedule() argument
246 void kvm_timer_flush_hwstate(struct kvm_vcpu *vcpu) kvm_timer_flush_hwstate() argument
290 void kvm_timer_sync_hwstate(struct kvm_vcpu *vcpu) kvm_timer_sync_hwstate() argument
303 int kvm_timer_vcpu_reset(struct kvm_vcpu *vcpu, kvm_timer_vcpu_reset() argument
338 void kvm_timer_vcpu_init(struct kvm_vcpu *vcpu) kvm_timer_vcpu_init() argument
352 int kvm_arm_timer_set_reg(struct kvm_vcpu *vcpu, u64 regid, u64 value) kvm_arm_timer_set_reg() argument
374 u64 kvm_arm_timer_get_reg(struct kvm_vcpu *vcpu, u64 regid) kvm_arm_timer_get_reg() argument
472 void kvm_timer_vcpu_terminate(struct kvm_vcpu *vcpu) kvm_timer_vcpu_terminate() argument
H A Dvgic-v2-emul.c43 static bool handle_mmio_misc(struct kvm_vcpu *vcpu, handle_mmio_misc() argument
78 static bool handle_mmio_set_enable_reg(struct kvm_vcpu *vcpu, handle_mmio_set_enable_reg() argument
86 static bool handle_mmio_clear_enable_reg(struct kvm_vcpu *vcpu, handle_mmio_clear_enable_reg() argument
94 static bool handle_mmio_set_pending_reg(struct kvm_vcpu *vcpu, handle_mmio_set_pending_reg() argument
102 static bool handle_mmio_clear_pending_reg(struct kvm_vcpu *vcpu, handle_mmio_clear_pending_reg() argument
110 static bool handle_mmio_set_active_reg(struct kvm_vcpu *vcpu, handle_mmio_set_active_reg() argument
118 static bool handle_mmio_clear_active_reg(struct kvm_vcpu *vcpu, handle_mmio_clear_active_reg() argument
126 static bool handle_mmio_priority_reg(struct kvm_vcpu *vcpu, handle_mmio_priority_reg() argument
157 struct kvm_vcpu *vcpu; vgic_set_target_reg() local
185 static bool handle_mmio_target_reg(struct kvm_vcpu *vcpu, handle_mmio_target_reg() argument
216 static bool handle_mmio_cfg_reg(struct kvm_vcpu *vcpu, handle_mmio_cfg_reg() argument
227 static bool handle_mmio_sgi_reg(struct kvm_vcpu *vcpu, handle_mmio_sgi_reg() argument
244 static bool read_set_clear_sgi_pend_reg(struct kvm_vcpu *vcpu, read_set_clear_sgi_pend_reg() argument
266 static bool write_set_clear_sgi_pend_reg(struct kvm_vcpu *vcpu, write_set_clear_sgi_pend_reg() argument
302 static bool handle_mmio_sgi_set(struct kvm_vcpu *vcpu, handle_mmio_sgi_set() argument
312 static bool handle_mmio_sgi_clear(struct kvm_vcpu *vcpu, handle_mmio_sgi_clear() argument
407 static void vgic_dispatch_sgi(struct kvm_vcpu *vcpu, u32 reg) vgic_dispatch_sgi() argument
449 static bool vgic_v2_queue_sgi(struct kvm_vcpu *vcpu, int irq) vgic_v2_queue_sgi() argument
544 static void vgic_v2_add_sgi_source(struct kvm_vcpu *vcpu, int irq, int source) vgic_v2_add_sgi_source() argument
573 static bool handle_cpu_mmio_misc(struct kvm_vcpu *vcpu, handle_cpu_mmio_misc() argument
614 static bool handle_mmio_abpr(struct kvm_vcpu *vcpu, handle_mmio_abpr() argument
620 static bool handle_cpu_mmio_ident(struct kvm_vcpu *vcpu, handle_cpu_mmio_ident() argument
671 struct kvm_vcpu *vcpu, *tmp_vcpu; vgic_attr_regs_access() local
H A Dvgic-v3-emul.c52 static bool handle_mmio_rao_wi(struct kvm_vcpu *vcpu, handle_mmio_rao_wi() argument
63 static bool handle_mmio_ctlr(struct kvm_vcpu *vcpu, handle_mmio_ctlr() argument
93 static bool handle_mmio_typer(struct kvm_vcpu *vcpu, handle_mmio_typer() argument
108 static bool handle_mmio_iidr(struct kvm_vcpu *vcpu, handle_mmio_iidr() argument
120 static bool handle_mmio_set_enable_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_set_enable_reg_dist() argument
134 static bool handle_mmio_clear_enable_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_clear_enable_reg_dist() argument
148 static bool handle_mmio_set_pending_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_set_pending_reg_dist() argument
161 static bool handle_mmio_clear_pending_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_clear_pending_reg_dist() argument
174 static bool handle_mmio_set_active_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_set_active_reg_dist() argument
187 static bool handle_mmio_clear_active_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_clear_active_reg_dist() argument
200 static bool handle_mmio_priority_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_priority_reg_dist() argument
219 static bool handle_mmio_cfg_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_cfg_reg_dist() argument
274 static bool handle_mmio_route_reg(struct kvm_vcpu *vcpu, handle_mmio_route_reg() argument
349 static bool handle_mmio_idregs(struct kvm_vcpu *vcpu, handle_mmio_idregs() argument
529 static bool handle_mmio_ctlr_redist(struct kvm_vcpu *vcpu, handle_mmio_ctlr_redist() argument
539 static bool handle_mmio_typer_redist(struct kvm_vcpu *vcpu, handle_mmio_typer_redist() argument
566 static bool handle_mmio_set_enable_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_set_enable_reg_redist() argument
577 static bool handle_mmio_clear_enable_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_clear_enable_reg_redist() argument
588 static bool handle_mmio_set_active_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_set_active_reg_redist() argument
598 static bool handle_mmio_clear_active_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_clear_active_reg_redist() argument
608 static bool handle_mmio_set_pending_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_set_pending_reg_redist() argument
618 static bool handle_mmio_clear_pending_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_clear_pending_reg_redist() argument
628 static bool handle_mmio_priority_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_priority_reg_redist() argument
642 static bool handle_mmio_cfg_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_cfg_reg_redist() argument
755 static bool vgic_v3_queue_sgi(struct kvm_vcpu *vcpu, int irq) vgic_v3_queue_sgi() argument
866 static void vgic_v3_add_sgi_source(struct kvm_vcpu *vcpu, int irq, int source) vgic_v3_add_sgi_source() argument
888 static int match_mpidr(u64 sgi_aff, u16 sgi_cpu_mask, struct kvm_vcpu *vcpu) match_mpidr() argument
929 void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg) vgic_v3_dispatch_sgi() argument
H A Dvgic.c119 static void add_sgi_source(struct kvm_vcpu *vcpu, int irq, int source) add_sgi_source() argument
124 static bool queue_sgi(struct kvm_vcpu *vcpu, int irq) queue_sgi() argument
274 static bool vgic_irq_is_edge(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_edge() argument
283 static int vgic_irq_is_enabled(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_enabled() argument
290 static int vgic_irq_is_queued(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_queued() argument
297 static int vgic_irq_is_active(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_active() argument
304 static void vgic_irq_set_queued(struct kvm_vcpu *vcpu, int irq) vgic_irq_set_queued() argument
311 static void vgic_irq_clear_queued(struct kvm_vcpu *vcpu, int irq) vgic_irq_clear_queued() argument
318 static void vgic_irq_set_active(struct kvm_vcpu *vcpu, int irq) vgic_irq_set_active() argument
325 static void vgic_irq_clear_active(struct kvm_vcpu *vcpu, int irq) vgic_irq_clear_active() argument
332 static int vgic_dist_irq_get_level(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_get_level() argument
339 static void vgic_dist_irq_set_level(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_set_level() argument
346 static void vgic_dist_irq_clear_level(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_clear_level() argument
353 static int vgic_dist_irq_soft_pend(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_soft_pend() argument
360 static void vgic_dist_irq_clear_soft_pend(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_clear_soft_pend() argument
372 static int vgic_dist_irq_is_pending(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_is_pending() argument
379 void vgic_dist_irq_set_pending(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_set_pending() argument
386 void vgic_dist_irq_clear_pending(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_clear_pending() argument
393 static void vgic_cpu_irq_set(struct kvm_vcpu *vcpu, int irq) vgic_cpu_irq_set() argument
402 void vgic_cpu_irq_clear(struct kvm_vcpu *vcpu, int irq) vgic_cpu_irq_clear() argument
411 static bool vgic_can_sample_irq(struct kvm_vcpu *vcpu, int irq) vgic_can_sample_irq() argument
477 bool handle_mmio_raz_wi(struct kvm_vcpu *vcpu, struct kvm_exit_mmio *mmio, handle_mmio_raz_wi() argument
692 void vgic_unqueue_irqs(struct kvm_vcpu *vcpu) vgic_unqueue_irqs() argument
774 static bool call_range_handler(struct kvm_vcpu *vcpu, call_range_handler() argument
817 static int vgic_handle_mmio_access(struct kvm_vcpu *vcpu, vgic_handle_mmio_access() argument
866 static int vgic_handle_mmio_read(struct kvm_vcpu *vcpu, vgic_handle_mmio_read() argument
873 static int vgic_handle_mmio_write(struct kvm_vcpu *vcpu, vgic_handle_mmio_write() argument
907 struct kvm_vcpu *vcpu = NULL; vgic_register_kvm_io_dev() local
938 static int compute_active_for_cpu(struct kvm_vcpu *vcpu) compute_active_for_cpu() argument
968 static int compute_pending_for_cpu(struct kvm_vcpu *vcpu) compute_pending_for_cpu() argument
1010 struct kvm_vcpu *vcpu; vgic_update_state() local
1024 static struct vgic_lr vgic_get_lr(const struct kvm_vcpu *vcpu, int lr) vgic_get_lr() argument
1029 static void vgic_set_lr(struct kvm_vcpu *vcpu, int lr, vgic_set_lr() argument
1035 static inline u64 vgic_get_elrsr(struct kvm_vcpu *vcpu) vgic_get_elrsr() argument
1040 static inline u64 vgic_get_eisr(struct kvm_vcpu *vcpu) vgic_get_eisr() argument
1045 static inline void vgic_clear_eisr(struct kvm_vcpu *vcpu) vgic_clear_eisr() argument
1050 static inline u32 vgic_get_interrupt_status(struct kvm_vcpu *vcpu) vgic_get_interrupt_status() argument
1055 static inline void vgic_enable_underflow(struct kvm_vcpu *vcpu) vgic_enable_underflow() argument
1060 static inline void vgic_disable_underflow(struct kvm_vcpu *vcpu) vgic_disable_underflow() argument
1065 void vgic_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcr) vgic_get_vmcr() argument
1070 void vgic_set_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcr) vgic_set_vmcr() argument
1075 static inline void vgic_enable(struct kvm_vcpu *vcpu) vgic_enable() argument
1080 static void vgic_retire_lr(int lr_nr, struct kvm_vcpu *vcpu) vgic_retire_lr() argument
1099 static bool dist_active_irq(struct kvm_vcpu *vcpu) dist_active_irq() argument
1106 bool kvm_vgic_map_is_active(struct kvm_vcpu *vcpu, struct irq_phys_map *map) kvm_vgic_map_is_active() argument
1129 static void vgic_retire_disabled_irqs(struct kvm_vcpu *vcpu) vgic_retire_disabled_irqs() argument
1143 static void vgic_queue_irq_to_lr(struct kvm_vcpu *vcpu, int irq, vgic_queue_irq_to_lr() argument
1186 bool vgic_queue_irq(struct kvm_vcpu *vcpu, u8 sgi_source_id, int irq) vgic_queue_irq() argument
1226 static bool vgic_queue_hwirq(struct kvm_vcpu *vcpu, int irq) vgic_queue_hwirq() argument
1249 static void __kvm_vgic_flush_hwstate(struct kvm_vcpu *vcpu) __kvm_vgic_flush_hwstate() argument
1311 static int process_queued_irq(struct kvm_vcpu *vcpu, process_queued_irq() argument
1359 static bool vgic_process_maintenance(struct kvm_vcpu *vcpu) vgic_process_maintenance() argument
1417 static bool vgic_sync_hwirq(struct kvm_vcpu *vcpu, int lr, struct vgic_lr vlr) vgic_sync_hwirq() argument
1435 static void __kvm_vgic_sync_hwstate(struct kvm_vcpu *vcpu) __kvm_vgic_sync_hwstate() argument
1461 void kvm_vgic_flush_hwstate(struct kvm_vcpu *vcpu) kvm_vgic_flush_hwstate() argument
1473 void kvm_vgic_sync_hwstate(struct kvm_vcpu *vcpu) kvm_vgic_sync_hwstate() argument
1481 int kvm_vgic_vcpu_pending_irq(struct kvm_vcpu *vcpu) kvm_vgic_vcpu_pending_irq() argument
1493 struct kvm_vcpu *vcpu; vgic_kick_vcpus() local
1506 static int vgic_validate_injection(struct kvm_vcpu *vcpu, int irq, int level) vgic_validate_injection() argument
1529 struct kvm_vcpu *vcpu; vgic_update_irq_pending() local
1704 static struct list_head *vgic_get_irq_phys_map_list(struct kvm_vcpu *vcpu, vgic_get_irq_phys_map_list() argument
1726 struct irq_phys_map *kvm_vgic_map_phys_irq(struct kvm_vcpu *vcpu, kvm_vgic_map_phys_irq() argument
1784 static struct irq_phys_map *vgic_irq_map_search(struct kvm_vcpu *vcpu, vgic_irq_map_search() argument
1821 int kvm_vgic_unmap_phys_irq(struct kvm_vcpu *vcpu, struct irq_phys_map *map) kvm_vgic_unmap_phys_irq() argument
1862 void kvm_vgic_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_vgic_vcpu_destroy() argument
1875 static int vgic_vcpu_init_maps(struct kvm_vcpu *vcpu, int nr_irqs) vgic_vcpu_init_maps() argument
1906 void kvm_vgic_vcpu_early_init(struct kvm_vcpu *vcpu) kvm_vgic_vcpu_early_init() argument
1926 struct kvm_vcpu *vcpu; kvm_vgic_destroy() local
1965 struct kvm_vcpu *vcpu; vgic_init() local
2098 struct kvm_vcpu *vcpu; kvm_vgic_create() local
/linux-4.4.14/arch/arm64/include/asm/
H A Dkvm_emulate.h44 static inline void vcpu_reset_hcr(struct kvm_vcpu *vcpu) vcpu_reset_hcr() argument
51 static inline unsigned long vcpu_get_hcr(struct kvm_vcpu *vcpu) vcpu_get_hcr() argument
56 static inline void vcpu_set_hcr(struct kvm_vcpu *vcpu, unsigned long hcr) vcpu_set_hcr() argument
61 static inline unsigned long *vcpu_pc(const struct kvm_vcpu *vcpu) vcpu_pc() argument
66 static inline unsigned long *vcpu_elr_el1(const struct kvm_vcpu *vcpu) vcpu_elr_el1() argument
71 static inline unsigned long *vcpu_cpsr(const struct kvm_vcpu *vcpu) vcpu_cpsr() argument
76 static inline bool vcpu_mode_is_32bit(const struct kvm_vcpu *vcpu) vcpu_mode_is_32bit() argument
81 static inline bool kvm_condition_valid(const struct kvm_vcpu *vcpu) kvm_condition_valid() argument
89 static inline void kvm_skip_instr(struct kvm_vcpu *vcpu, bool is_wide_instr) kvm_skip_instr() argument
97 static inline void vcpu_set_thumb(struct kvm_vcpu *vcpu) vcpu_set_thumb() argument
107 static inline unsigned long vcpu_get_reg(const struct kvm_vcpu *vcpu, vcpu_get_reg() argument
113 static inline void vcpu_set_reg(struct kvm_vcpu *vcpu, u8 reg_num, vcpu_set_reg() argument
121 static inline unsigned long *vcpu_spsr(const struct kvm_vcpu *vcpu) vcpu_spsr() argument
129 static inline bool vcpu_mode_priv(const struct kvm_vcpu *vcpu) vcpu_mode_priv() argument
139 static inline u32 kvm_vcpu_get_hsr(const struct kvm_vcpu *vcpu) kvm_vcpu_get_hsr() argument
144 static inline unsigned long kvm_vcpu_get_hfar(const struct kvm_vcpu *vcpu) kvm_vcpu_get_hfar() argument
149 static inline phys_addr_t kvm_vcpu_get_fault_ipa(const struct kvm_vcpu *vcpu) kvm_vcpu_get_fault_ipa() argument
154 static inline u32 kvm_vcpu_hvc_get_imm(const struct kvm_vcpu *vcpu) kvm_vcpu_hvc_get_imm() argument
159 static inline bool kvm_vcpu_dabt_isvalid(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isvalid() argument
164 static inline bool kvm_vcpu_dabt_iswrite(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iswrite() argument
169 static inline bool kvm_vcpu_dabt_issext(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_issext() argument
174 static inline int kvm_vcpu_dabt_get_rd(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_rd() argument
179 static inline bool kvm_vcpu_dabt_isextabt(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isextabt() argument
184 static inline bool kvm_vcpu_dabt_iss1tw(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iss1tw() argument
189 static inline int kvm_vcpu_dabt_get_as(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_as() argument
195 static inline bool kvm_vcpu_trap_il_is32bit(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_il_is32bit() argument
200 static inline u8 kvm_vcpu_trap_get_class(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_class() argument
205 static inline bool kvm_vcpu_trap_is_iabt(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_is_iabt() argument
210 static inline u8 kvm_vcpu_trap_get_fault(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault() argument
215 static inline u8 kvm_vcpu_trap_get_fault_type(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault_type() argument
220 static inline unsigned long kvm_vcpu_get_mpidr_aff(struct kvm_vcpu *vcpu) kvm_vcpu_get_mpidr_aff() argument
225 static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu) kvm_vcpu_set_be() argument
233 static inline bool kvm_vcpu_is_be(struct kvm_vcpu *vcpu) kvm_vcpu_is_be() argument
241 static inline unsigned long vcpu_data_guest_to_host(struct kvm_vcpu *vcpu, vcpu_data_guest_to_host() argument
272 static inline unsigned long vcpu_data_host_to_guest(struct kvm_vcpu *vcpu, vcpu_data_host_to_guest() argument
H A Dkvm_host.h253 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument
254 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} argument
/linux-4.4.14/arch/arm/include/asm/
H A Dkvm_emulate.h31 static inline unsigned long vcpu_get_reg(struct kvm_vcpu *vcpu, vcpu_get_reg() argument
37 static inline void vcpu_set_reg(struct kvm_vcpu *vcpu, u8 reg_num, vcpu_set_reg() argument
49 static inline void vcpu_reset_hcr(struct kvm_vcpu *vcpu) vcpu_reset_hcr() argument
54 static inline unsigned long vcpu_get_hcr(struct kvm_vcpu *vcpu) vcpu_get_hcr() argument
59 static inline void vcpu_set_hcr(struct kvm_vcpu *vcpu, unsigned long hcr) vcpu_set_hcr() argument
64 static inline bool vcpu_mode_is_32bit(struct kvm_vcpu *vcpu) vcpu_mode_is_32bit() argument
69 static inline unsigned long *vcpu_pc(struct kvm_vcpu *vcpu) vcpu_pc() argument
74 static inline unsigned long *vcpu_cpsr(struct kvm_vcpu *vcpu) vcpu_cpsr() argument
79 static inline void vcpu_set_thumb(struct kvm_vcpu *vcpu) vcpu_set_thumb() argument
84 static inline bool mode_has_spsr(struct kvm_vcpu *vcpu) mode_has_spsr() argument
90 static inline bool vcpu_mode_priv(struct kvm_vcpu *vcpu) vcpu_mode_priv() argument
96 static inline u32 kvm_vcpu_get_hsr(struct kvm_vcpu *vcpu) kvm_vcpu_get_hsr() argument
101 static inline unsigned long kvm_vcpu_get_hfar(struct kvm_vcpu *vcpu) kvm_vcpu_get_hfar() argument
106 static inline phys_addr_t kvm_vcpu_get_fault_ipa(struct kvm_vcpu *vcpu) kvm_vcpu_get_fault_ipa() argument
111 static inline unsigned long kvm_vcpu_get_hyp_pc(struct kvm_vcpu *vcpu) kvm_vcpu_get_hyp_pc() argument
116 static inline bool kvm_vcpu_dabt_isvalid(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isvalid() argument
121 static inline bool kvm_vcpu_dabt_iswrite(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iswrite() argument
126 static inline bool kvm_vcpu_dabt_issext(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_issext() argument
131 static inline int kvm_vcpu_dabt_get_rd(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_rd() argument
136 static inline bool kvm_vcpu_dabt_isextabt(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isextabt() argument
141 static inline bool kvm_vcpu_dabt_iss1tw(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iss1tw() argument
147 static inline int kvm_vcpu_dabt_get_as(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_as() argument
163 static inline bool kvm_vcpu_trap_il_is32bit(struct kvm_vcpu *vcpu) kvm_vcpu_trap_il_is32bit() argument
168 static inline u8 kvm_vcpu_trap_get_class(struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_class() argument
173 static inline bool kvm_vcpu_trap_is_iabt(struct kvm_vcpu *vcpu) kvm_vcpu_trap_is_iabt() argument
178 static inline u8 kvm_vcpu_trap_get_fault(struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault() argument
183 static inline u8 kvm_vcpu_trap_get_fault_type(struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault_type() argument
188 static inline u32 kvm_vcpu_hvc_get_imm(struct kvm_vcpu *vcpu) kvm_vcpu_hvc_get_imm() argument
193 static inline unsigned long kvm_vcpu_get_mpidr_aff(struct kvm_vcpu *vcpu) kvm_vcpu_get_mpidr_aff() argument
198 static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu) kvm_vcpu_set_be() argument
203 static inline bool kvm_vcpu_is_be(struct kvm_vcpu *vcpu) kvm_vcpu_is_be() argument
208 static inline unsigned long vcpu_data_guest_to_host(struct kvm_vcpu *vcpu, vcpu_data_guest_to_host() argument
233 static inline unsigned long vcpu_data_host_to_guest(struct kvm_vcpu *vcpu, vcpu_data_host_to_guest() argument
H A Dkvm_mmu.h180 static inline bool vcpu_has_cache_enabled(struct kvm_vcpu *vcpu) vcpu_has_cache_enabled() argument
185 static inline void __coherent_cache_guest_page(struct kvm_vcpu *vcpu, pfn_t pfn, __coherent_cache_guest_page() argument
H A Dkvm_host.h232 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument
233 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} kvm_arch_sched_in() argument
236 static inline void kvm_arm_setup_debug(struct kvm_vcpu *vcpu) {} kvm_arm_clear_debug() argument
237 static inline void kvm_arm_clear_debug(struct kvm_vcpu *vcpu) {} kvm_arm_reset_debug_ptr() argument
238 static inline void kvm_arm_reset_debug_ptr(struct kvm_vcpu *vcpu) {} argument
/linux-4.4.14/tools/perf/util/
H A Dkvm-stat.h33 struct kvm_event_stats *vcpu; member in struct:kvm_event
/linux-4.4.14/drivers/irqchip/
H A Dirq-gic-v3.c313 static int gic_irq_set_vcpu_affinity(struct irq_data *d, void *vcpu) gic_irq_set_vcpu_affinity() argument
H A Dirq-gic.c288 static int gic_irq_set_vcpu_affinity(struct irq_data *d, void *vcpu) gic_irq_set_vcpu_affinity() argument
/linux-4.4.14/drivers/iommu/
H A Dfsl_pamu.c519 u32 get_stash_id(u32 stash_dest_hint, u32 vcpu) get_stash_id() argument
/linux-4.4.14/tools/perf/
H A Dbuiltin-kvm.c319 int vcpu; handle_end_event() local
500 int vcpu = kvm->trace_vcpu; update_total_count() local
506 static bool event_is_valid(struct kvm_event *event, int vcpu) event_is_valid() argument
514 int vcpu = kvm->trace_vcpu; sort_result() local
542 int vcpu = kvm->trace_vcpu; print_vcpu_info() local
579 int vcpu = kvm->trace_vcpu; print_result() local
702 static bool verify_vcpu(int vcpu) verify_vcpu() argument
1099 int vcpu = kvm->trace_vcpu; kvm_events_report_vcpu() local
476 insert_to_result(struct rb_root *result, struct kvm_event *event, key_cmp_fun bigger, int vcpu) insert_to_result() argument
/linux-4.4.14/include/linux/
H A Dkvm_host.h193 struct kvm_vcpu *vcpu; member in struct:kvm_async_pf
287 static inline int kvm_vcpu_exiting_guest_mode(struct kvm_vcpu *vcpu) kvm_vcpu_exiting_guest_mode() argument
359 static inline int kvm_arch_vcpu_memslots_id(struct kvm_vcpu *vcpu) kvm_arch_vcpu_memslots_id() argument
465 struct kvm_vcpu *vcpu; kvm_get_vcpu_by_id() local
529 static inline struct kvm_memslots *kvm_vcpu_memslots(struct kvm_vcpu *vcpu) kvm_vcpu_memslots() argument
797 static inline wait_queue_head_t *kvm_arch_vcpu_wq(struct kvm_vcpu *vcpu) kvm_arch_vcpu_wq() argument
993 static inline void kvm_migrate_timers(struct kvm_vcpu *vcpu) kvm_migrate_timers() argument
1105 static inline bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu) { return true; } kvm_vcpu_compatible() argument
1108 static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu) kvm_make_request() argument
1113 static inline bool kvm_check_request(int req, struct kvm_vcpu *vcpu) kvm_check_request() argument
1167 static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_in_spin_loop() argument
1171 static inline void kvm_vcpu_set_dy_eligible(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_dy_eligible() argument
1178 static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_in_spin_loop() argument
1182 static inline void kvm_vcpu_set_dy_eligible(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_dy_eligible() argument
/linux-4.4.14/arch/mips/include/asm/
H A Dkvm_host.h576 static inline bool kvm_mips_guest_can_have_fpu(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_can_have_fpu() argument
582 static inline bool kvm_mips_guest_has_fpu(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_has_fpu() argument
588 static inline bool kvm_mips_guest_can_have_msa(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_can_have_msa() argument
594 static inline bool kvm_mips_guest_has_msa(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_has_msa() argument
848 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument
849 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} kvm_arch_vcpu_blocking() argument
850 static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {} kvm_arch_vcpu_unblocking() argument
851 static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {} argument
/linux-4.4.14/arch/s390/include/asm/
H A Dkvm_host.h638 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument
639 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} kvm_arch_free_memslot() argument
646 static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {} kvm_arch_vcpu_unblocking() argument
647 static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {} argument
/linux-4.4.14/arch/x86/include/asm/
H A Dkvm_host.h334 struct kvm_vcpu *vcpu; member in struct:kvm_pmc
998 static inline int emulate_instruction(struct kvm_vcpu *vcpu, emulate_instruction() argument
1099 static inline gpa_t translate_gpa(struct kvm_vcpu *vcpu, gpa_t gpa, u32 access, translate_gpa() argument
1139 static inline void kvm_inject_gp(struct kvm_vcpu *vcpu, u32 error_code) kvm_inject_gp() argument
1258 static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {} kvm_arch_vcpu_unblocking() argument
1259 static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {} argument

Completed in 2924 milliseconds