/linux-4.1.27/arch/mips/kvm/ |
H A D | commpage.c | 27 void kvm_mips_commpage_init(struct kvm_vcpu *vcpu) kvm_mips_commpage_init() argument
|
H A D | stats.c | 70 void kvm_mips_dump_stats(struct kvm_vcpu *vcpu) kvm_mips_dump_stats() argument
|
H A D | dyntrans.c | 73 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 D | interrupt.c | 25 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 D | trap_emul.c | 40 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 D | tlb.c | 50 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 D | emulate.c | 42 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 D | mips.c | 62 static int kvm_mips_reset_vcpu(struct kvm_vcpu *vcpu) kvm_mips_reset_vcpu() argument 78 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) kvm_arch_vcpu_runnable() argument 83 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument 143 struct kvm_vcpu *vcpu; kvm_mips_free_vcpus() local 250 struct kvm_vcpu *vcpu = kzalloc(sizeof(struct kvm_vcpu), GFP_KERNEL); kvm_arch_vcpu_create() local 354 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument 367 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument 372 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument 378 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_arch_vcpu_ioctl_run() argument 418 int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_interrupt() argument 452 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument 458 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument 530 static int kvm_mips_get_reg(struct kvm_vcpu *vcpu, kvm_mips_get_reg() argument 709 static int kvm_mips_set_reg(struct kvm_vcpu *vcpu, kvm_mips_set_reg() argument 870 static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_enable_cap() argument 900 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local 1034 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument 1040 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument 1046 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument 1050 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument 1055 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument 1060 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument 1102 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument 1107 int kvm_arch_vcpu_dump_regs(struct kvm_vcpu *vcpu) kvm_arch_vcpu_dump_regs() argument 1138 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument 1152 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument 1168 struct kvm_vcpu *vcpu = (struct kvm_vcpu *)data; kvm_mips_comparecount_func() local 1180 struct kvm_vcpu *vcpu; kvm_mips_comparecount_wakeup() local 1187 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument 1196 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument 1203 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument 1222 int kvm_mips_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) kvm_mips_handle_exit() argument 1418 void kvm_own_fpu(struct kvm_vcpu *vcpu) kvm_own_fpu() argument 1463 void kvm_own_msa(struct kvm_vcpu *vcpu) kvm_own_msa() argument 1521 void kvm_drop_fpu(struct kvm_vcpu *vcpu) kvm_drop_fpu() argument 1536 void kvm_lose_fpu(struct kvm_vcpu *vcpu) kvm_lose_fpu() argument
|
/linux-4.1.27/arch/arm/kvm/ |
H A D | interrupts_head.S | 15 vcpu .req r0 @ vcpu pointer always in r0 label
|
H A D | perf.c | 32 struct kvm_vcpu *vcpu; kvm_is_user_mode() local 44 struct kvm_vcpu *vcpu; kvm_get_guest_ip() local
|
H A D | reset.c | 57 int kvm_reset_vcpu(struct kvm_vcpu *vcpu) kvm_reset_vcpu() argument
|
H A D | handle_exit.c | 31 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 D | mmio.c | 96 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 D | coproc.h | 71 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 D | psci.c | 42 static unsigned long kvm_psci_vcpu_suspend(struct kvm_vcpu *vcpu) kvm_psci_vcpu_suspend() argument 62 static void kvm_psci_vcpu_off(struct kvm_vcpu *vcpu) kvm_psci_vcpu_off() argument 70 struct kvm_vcpu *vcpu = NULL; kvm_psci_vcpu_on() local 125 static unsigned long kvm_psci_vcpu_affinity_info(struct kvm_vcpu *vcpu) kvm_psci_vcpu_affinity_info() argument 161 static void kvm_prepare_system_event(struct kvm_vcpu *vcpu, u32 type) kvm_prepare_system_event() argument 185 static void kvm_psci_system_off(struct kvm_vcpu *vcpu) kvm_psci_system_off() argument 190 static void kvm_psci_system_reset(struct kvm_vcpu *vcpu) kvm_psci_system_reset() argument 195 int kvm_psci_version(struct kvm_vcpu *vcpu) kvm_psci_version() argument 203 static int kvm_psci_0_2_call(struct kvm_vcpu *vcpu) kvm_psci_0_2_call() argument 274 static int kvm_psci_0_1_call(struct kvm_vcpu *vcpu) kvm_psci_0_1_call() argument 310 int kvm_psci_call(struct kvm_vcpu *vcpu) kvm_psci_call() argument
|
H A D | emulate.c | 113 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 D | guest.c | 39 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
|
H A D | coproc.c | 53 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 D | arm.c | 64 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 143 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 255 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument 263 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument 268 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument 273 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument 285 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument 293 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument 305 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument 312 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument 323 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument 439 static int kvm_vcpu_first_run_init(struct kvm_vcpu *vcpu) kvm_vcpu_first_run_init() argument 475 static void vcpu_pause(struct kvm_vcpu *vcpu) vcpu_pause() argument 482 static int kvm_vcpu_initialized(struct kvm_vcpu *vcpu) kvm_vcpu_initialized() argument 498 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_arch_vcpu_ioctl_run() argument 591 static int vcpu_interrupt_line(struct kvm_vcpu *vcpu, int number, bool level) vcpu_interrupt_line() argument 630 struct kvm_vcpu *vcpu = NULL; kvm_vm_ioctl_irq_line() local 683 static int kvm_vcpu_set_target(struct kvm_vcpu *vcpu, kvm_vcpu_set_target() argument 725 static int kvm_arch_vcpu_ioctl_vcpu_init(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_vcpu_init() argument 757 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local 1087 struct kvm_vcpu *vcpu; kvm_mpidr_to_vcpu() local
|
H A D | mmu.c | 1041 static bool kvm_is_write_fault(struct kvm_vcpu *vcpu) kvm_is_write_fault() argument 1208 static void coherent_cache_guest_page(struct kvm_vcpu *vcpu, pfn_t pfn, coherent_cache_guest_page() argument 1214 static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, user_mem_abort() argument 1349 static void handle_access_fault(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa) handle_access_fault() argument 1396 int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_guest_abort() argument 1624 void kvm_mmu_free_memory_caches(struct kvm_vcpu *vcpu) kvm_mmu_free_memory_caches() argument 1894 void kvm_set_way_flush(struct kvm_vcpu *vcpu) kvm_set_way_flush() argument 1915 void kvm_toggle_cache(struct kvm_vcpu *vcpu, bool was_enabled) kvm_toggle_cache() argument
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | irq.c | 34 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument 118 void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu) kvm_inject_pending_timer_irqs() argument 125 void __kvm_migrate_timers(struct kvm_vcpu *vcpu) __kvm_migrate_timers() argument
|
H A D | cpuid.h | 25 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_tsc_adjust(struct kvm_vcpu *vcpu) guest_cpuid_has_tsc_adjust() argument 49 static inline bool guest_cpuid_has_smep(struct kvm_vcpu *vcpu) guest_cpuid_has_smep() argument 57 static inline bool guest_cpuid_has_smap(struct kvm_vcpu *vcpu) guest_cpuid_has_smap() argument 65 static inline bool guest_cpuid_has_fsgsbase(struct kvm_vcpu *vcpu) guest_cpuid_has_fsgsbase() argument 73 static inline bool guest_cpuid_has_osvw(struct kvm_vcpu *vcpu) guest_cpuid_has_osvw() argument 81 static inline bool guest_cpuid_has_pcid(struct kvm_vcpu *vcpu) guest_cpuid_has_pcid() argument 89 static inline bool guest_cpuid_has_x2apic(struct kvm_vcpu *vcpu) guest_cpuid_has_x2apic() argument 97 static inline bool guest_cpuid_is_amd(struct kvm_vcpu *vcpu) guest_cpuid_is_amd() argument 105 static inline bool guest_cpuid_has_gbpages(struct kvm_vcpu *vcpu) guest_cpuid_has_gbpages() argument 113 static inline bool guest_cpuid_has_rtm(struct kvm_vcpu *vcpu) guest_cpuid_has_rtm() argument 121 static inline bool guest_cpuid_has_mpx(struct kvm_vcpu *vcpu) guest_cpuid_has_mpx() argument
|
H A D | kvm_cache_regs.h | 9 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
|
H A D | lapic.h | 26 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 151 static inline bool kvm_apic_has_events(struct kvm_vcpu *vcpu) kvm_apic_has_events() argument
|
H A D | x86.h | 7 static inline void kvm_clear_exception_queue(struct kvm_vcpu *vcpu) kvm_clear_exception_queue() argument 12 static inline void kvm_queue_interrupt(struct kvm_vcpu *vcpu, u8 vector, kvm_queue_interrupt() argument 20 static inline void kvm_clear_interrupt_queue(struct kvm_vcpu *vcpu) kvm_clear_interrupt_queue() argument 25 static inline bool kvm_event_needs_reinjection(struct kvm_vcpu *vcpu) kvm_event_needs_reinjection() argument 36 static inline bool is_protmode(struct kvm_vcpu *vcpu) is_protmode() argument 41 static inline int is_long_mode(struct kvm_vcpu *vcpu) is_long_mode() argument 50 static inline bool is_64_bit_mode(struct kvm_vcpu *vcpu) is_64_bit_mode() argument 60 static inline bool mmu_is_nested(struct kvm_vcpu *vcpu) mmu_is_nested() argument 65 static inline int is_pae(struct kvm_vcpu *vcpu) is_pae() argument 70 static inline int is_pse(struct kvm_vcpu *vcpu) is_pse() argument 75 static inline int is_paging(struct kvm_vcpu *vcpu) is_paging() argument 85 static inline void vcpu_cache_mmio_info(struct kvm_vcpu *vcpu, vcpu_cache_mmio_info() argument 94 static inline bool vcpu_match_mmio_gen(struct kvm_vcpu *vcpu) vcpu_match_mmio_gen() argument 105 static inline void vcpu_clear_mmio_info(struct kvm_vcpu *vcpu, gva_t gva) vcpu_clear_mmio_info() argument 113 static inline bool vcpu_match_mmio_gva(struct kvm_vcpu *vcpu, unsigned long gva) vcpu_match_mmio_gva() argument 122 static inline bool vcpu_match_mmio_gpa(struct kvm_vcpu *vcpu, gpa_t gpa) vcpu_match_mmio_gpa() argument 131 static inline unsigned long kvm_register_readl(struct kvm_vcpu *vcpu, kvm_register_readl() argument 139 static inline void kvm_register_writel(struct kvm_vcpu *vcpu, kvm_register_writel() argument
|
H A D | i8259.c | 52 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 D | irq_comm.c | 60 struct kvm_vcpu *vcpu, *lowest = NULL; kvm_irq_delivery_to_apic() local
|
H A D | mmu.h | 84 static inline int kvm_mmu_reload(struct kvm_vcpu *vcpu) kvm_mmu_reload() argument 135 static inline bool is_write_protection(struct kvm_vcpu *vcpu) is_write_protection() argument 144 static inline bool permission_fault(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, permission_fault() argument
|
H A D | mmu_audit.c | 37 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 159 static void audit_sptes_have_rmaps(struct kvm_vcpu *vcpu, u64 *sptep, int level) audit_sptes_have_rmaps() argument 165 static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level) audit_spte_after_sync() argument 220 static void audit_spte(struct kvm_vcpu *vcpu, u64 *sptep, int level) audit_spte() argument 227 static void audit_vcpu_spte(struct kvm_vcpu *vcpu) audit_vcpu_spte() argument 235 static void __kvm_mmu_audit(struct kvm_vcpu *vcpu, int point) __kvm_mmu_audit() argument 247 static inline void kvm_mmu_audit(struct kvm_vcpu *vcpu, int point) kvm_mmu_audit() argument
|
H A D | i8254.c | 256 void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) __kvm_migrate_pit_timer() argument 281 struct kvm_vcpu *vcpu; pit_do_work() local 448 static int pit_ioport_write(struct kvm_vcpu *vcpu, pit_ioport_write() argument 525 static int pit_ioport_read(struct kvm_vcpu *vcpu, pit_ioport_read() argument 596 static int speaker_ioport_write(struct kvm_vcpu *vcpu, speaker_ioport_write() argument 614 static int speaker_ioport_read(struct kvm_vcpu *vcpu, speaker_ioport_read() argument
|
H A D | ioapic.c | 108 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 249 void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap, kvm_ioapic_scan_entry() argument 423 static void __kvm_ioapic_update_eoi(struct kvm_vcpu *vcpu, __kvm_ioapic_update_eoi() argument 478 void kvm_ioapic_update_eoi(struct kvm_vcpu *vcpu, int vector, int trigger_mode) kvm_ioapic_update_eoi() argument 498 static int ioapic_mmio_read(struct kvm_vcpu *vcpu, struct kvm_io_device *this, ioapic_mmio_read() argument 541 static int ioapic_mmio_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, ioapic_mmio_write() argument
|
H A D | pmu.c | 90 void kvm_deliver_pmi(struct kvm_vcpu *vcpu) kvm_deliver_pmi() argument 100 struct kvm_vcpu *vcpu = container_of(pmu, struct kvm_vcpu, trigger_pmi() local 323 bool kvm_pmu_msr(struct kvm_vcpu *vcpu, u32 msr) kvm_pmu_msr() argument 344 int kvm_pmu_get_msr(struct kvm_vcpu *vcpu, u32 index, u64 *data) kvm_pmu_get_msr() argument 375 int kvm_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_pmu_set_msr() argument 432 int kvm_pmu_check_pmc(struct kvm_vcpu *vcpu, unsigned pmc) kvm_pmu_check_pmc() argument 441 int kvm_pmu_read_pmc(struct kvm_vcpu *vcpu, unsigned pmc, u64 *data) kvm_pmu_read_pmc() argument 463 void kvm_pmu_cpuid_update(struct kvm_vcpu *vcpu) kvm_pmu_cpuid_update() argument 514 void kvm_pmu_init(struct kvm_vcpu *vcpu) kvm_pmu_init() argument 534 void kvm_pmu_reset(struct kvm_vcpu *vcpu) kvm_pmu_reset() argument 553 void kvm_pmu_destroy(struct kvm_vcpu *vcpu) kvm_pmu_destroy() argument 558 void kvm_handle_pmu_event(struct kvm_vcpu *vcpu) kvm_handle_pmu_event() argument
|
H A D | cpuid.c | 61 int kvm_update_cpuid(struct kvm_vcpu *vcpu) kvm_update_cpuid() argument 126 static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu) cpuid_fix_nx_cap() argument 145 int cpuid_query_maxphyaddr(struct kvm_vcpu *vcpu) cpuid_query_maxphyaddr() argument 161 int kvm_vcpu_ioctl_set_cpuid(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_set_cpuid() argument 203 int kvm_vcpu_ioctl_set_cpuid2(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_set_cpuid2() argument 224 int kvm_vcpu_ioctl_get_cpuid2(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_get_cpuid2() argument 729 static int move_to_next_stateful_cpuid_entry(struct kvm_vcpu *vcpu, int i) move_to_next_stateful_cpuid_entry() argument 761 struct kvm_cpuid_entry2 *kvm_find_cpuid_entry(struct kvm_vcpu *vcpu, kvm_find_cpuid_entry() argument 787 static struct kvm_cpuid_entry2* check_cpuid_limit(struct kvm_vcpu *vcpu, check_cpuid_limit() argument 803 void kvm_cpuid(struct kvm_vcpu *vcpu, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx) kvm_cpuid() argument 830 void kvm_emulate_cpuid(struct kvm_vcpu *vcpu) kvm_emulate_cpuid() argument
|
H A D | paging_tmpl.h | 148 static int FNAME(cmpxchg_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, cmpxchg_gpte() argument 171 static bool FNAME(prefetch_invalid_gpte)(struct kvm_vcpu *vcpu, prefetch_invalid_gpte() argument 192 static inline unsigned FNAME(gpte_access)(struct kvm_vcpu *vcpu, u64 gpte) gpte_access() argument 207 static int FNAME(update_accessed_dirty_bits)(struct kvm_vcpu *vcpu, update_accessed_dirty_bits() argument 463 FNAME(prefetch_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, prefetch_gpte() argument 493 static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, update_pte() argument 501 static bool FNAME(gpte_changed)(struct kvm_vcpu *vcpu, gpte_changed() argument 524 static void FNAME(pte_prefetch)(struct kvm_vcpu *vcpu, struct guest_walker *gw, pte_prefetch() argument 560 static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr, fetch() argument 665 FNAME(is_self_change_mapping)(struct kvm_vcpu *vcpu, is_self_change_mapping() argument 701 static int FNAME(page_fault)(struct kvm_vcpu *vcpu, gva_t addr, u32 error_code, page_fault() argument 830 static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva) invlpg() argument 885 static gpa_t FNAME(gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t vaddr, u32 access, gva_to_gpa() argument 904 static gpa_t FNAME(gva_to_gpa_nested)(struct kvm_vcpu *vcpu, gva_t vaddr, gva_to_gpa_nested() argument 937 static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp) sync_page() argument 268 walk_addr_generic(struct guest_walker *walker, struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, gva_t addr, u32 access) walk_addr_generic() argument 445 walk_addr(struct guest_walker *walker, struct kvm_vcpu *vcpu, gva_t addr, u32 access) walk_addr() argument 453 walk_addr_nested(struct guest_walker *walker, struct kvm_vcpu *vcpu, gva_t addr, u32 access) walk_addr_nested() argument
|
H A D | lapic.c | 88 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 273 void kvm_apic_set_version(struct kvm_vcpu *vcpu) kvm_apic_set_version() argument 337 void kvm_apic_update_irr(struct kvm_vcpu *vcpu, u32 *pir) kvm_apic_update_irr() argument 382 struct kvm_vcpu *vcpu; apic_clear_irr() local 400 struct kvm_vcpu *vcpu; apic_set_isr() local 447 struct kvm_vcpu *vcpu; apic_clear_isr() local 470 int kvm_lapic_find_highest_irr(struct kvm_vcpu *vcpu) kvm_lapic_find_highest_irr() argument 490 int kvm_apic_set_irq(struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq, kvm_apic_set_irq() argument 499 static int pv_eoi_put_user(struct kvm_vcpu *vcpu, u8 val) pv_eoi_put_user() argument 506 static int pv_eoi_get_user(struct kvm_vcpu *vcpu, u8 *val) pv_eoi_get_user() argument 513 static inline bool pv_eoi_enabled(struct kvm_vcpu *vcpu) pv_eoi_enabled() argument 518 static bool pv_eoi_get_pending(struct kvm_vcpu *vcpu) pv_eoi_get_pending() argument 527 static void pv_eoi_set_pending(struct kvm_vcpu *vcpu) pv_eoi_set_pending() argument 537 static void pv_eoi_clr_pending(struct kvm_vcpu *vcpu) pv_eoi_clr_pending() argument 547 void kvm_apic_update_tmr(struct kvm_vcpu *vcpu, u32 *tmr) kvm_apic_update_tmr() argument 651 bool kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source, kvm_apic_match_dest() argument 769 struct kvm_vcpu *vcpu = apic->vcpu; __apic_accept_irq() local 899 void kvm_apic_set_eoi_accelerated(struct kvm_vcpu *vcpu, int vector) kvm_apic_set_eoi_accelerated() argument 965 struct kvm_vcpu *vcpu = apic->vcpu; __report_tpr_access() local 1068 static int apic_mmio_read(struct kvm_vcpu *vcpu, struct kvm_io_device *this, apic_mmio_read() argument 1108 struct kvm_vcpu *vcpu = apic->vcpu; apic_timer_expired() local 1130 static bool lapic_timer_int_injected(struct kvm_vcpu *vcpu) lapic_timer_int_injected() argument 1148 void wait_lapic_expire(struct kvm_vcpu *vcpu) wait_lapic_expire() argument 1222 struct kvm_vcpu *vcpu = apic->vcpu; start_apic_timer() local 1393 static int apic_mmio_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, apic_mmio_write() argument 1426 void kvm_lapic_set_eoi(struct kvm_vcpu *vcpu) kvm_lapic_set_eoi() argument 1434 void kvm_apic_write_nodecode(struct kvm_vcpu *vcpu, u32 offset) kvm_apic_write_nodecode() argument 1448 void kvm_free_lapic(struct kvm_vcpu *vcpu) kvm_free_lapic() argument 1475 u64 kvm_get_lapic_tscdeadline_msr(struct kvm_vcpu *vcpu) kvm_get_lapic_tscdeadline_msr() argument 1486 void kvm_set_lapic_tscdeadline_msr(struct kvm_vcpu *vcpu, u64 data) kvm_set_lapic_tscdeadline_msr() argument 1499 void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8) kvm_lapic_set_tpr() argument 1510 u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu) kvm_lapic_get_cr8() argument 1522 void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value) kvm_lapic_set_base() argument 1567 void kvm_lapic_reset(struct kvm_vcpu *vcpu) kvm_lapic_reset() argument 1635 int apic_has_pending_timer(struct kvm_vcpu *vcpu) apic_has_pending_timer() argument 1661 void kvm_apic_nmi_wd_deliver(struct kvm_vcpu *vcpu) kvm_apic_nmi_wd_deliver() argument 1688 int kvm_create_lapic(struct kvm_vcpu *vcpu) kvm_create_lapic() argument 1732 int kvm_apic_has_interrupt(struct kvm_vcpu *vcpu) kvm_apic_has_interrupt() argument 1748 int kvm_apic_accept_pic_intr(struct kvm_vcpu *vcpu) kvm_apic_accept_pic_intr() argument 1761 void kvm_inject_apic_timer_irqs(struct kvm_vcpu *vcpu) kvm_inject_apic_timer_irqs() argument 1776 int kvm_get_apic_interrupt(struct kvm_vcpu *vcpu) kvm_get_apic_interrupt() argument 1797 void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu, kvm_apic_post_state_restore() argument 1830 void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu) __kvm_migrate_apic_timer() argument 1849 static void apic_sync_pv_eoi_from_guest(struct kvm_vcpu *vcpu, apic_sync_pv_eoi_from_guest() argument 1879 void kvm_lapic_sync_from_vapic(struct kvm_vcpu *vcpu) kvm_lapic_sync_from_vapic() argument 1901 static void apic_sync_pv_eoi_to_guest(struct kvm_vcpu *vcpu, apic_sync_pv_eoi_to_guest() argument 1921 void kvm_lapic_sync_to_vapic(struct kvm_vcpu *vcpu) kvm_lapic_sync_to_vapic() argument 1945 int kvm_lapic_set_vapic_addr(struct kvm_vcpu *vcpu, gpa_t vapic_addr) kvm_lapic_set_vapic_addr() argument 1961 int kvm_x2apic_msr_write(struct kvm_vcpu *vcpu, u32 msr, u64 data) kvm_x2apic_msr_write() argument 1978 int kvm_x2apic_msr_read(struct kvm_vcpu *vcpu, u32 msr, u64 *data) kvm_x2apic_msr_read() argument 2002 int kvm_hv_vapic_msr_write(struct kvm_vcpu *vcpu, u32 reg, u64 data) kvm_hv_vapic_msr_write() argument 2015 int kvm_hv_vapic_msr_read(struct kvm_vcpu *vcpu, u32 reg, u64 *data) kvm_hv_vapic_msr_read() argument 2033 int kvm_lapic_enable_pv_eoi(struct kvm_vcpu *vcpu, u64 data) kvm_lapic_enable_pv_eoi() argument 2046 void kvm_apic_accept_events(struct kvm_vcpu *vcpu) kvm_apic_accept_events() argument
|
H A D | svm.c | 130 struct kvm_vcpu vcpu; member in struct:vcpu_svm 249 static inline struct vcpu_svm *to_svm(struct kvm_vcpu *vcpu) to_svm() argument 473 static void svm_set_efer(struct kvm_vcpu *vcpu, u64 efer) svm_set_efer() argument 489 static u32 svm_get_interrupt_shadow(struct kvm_vcpu *vcpu) svm_get_interrupt_shadow() argument 499 static void svm_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) svm_set_interrupt_shadow() argument 510 static void skip_emulated_instruction(struct kvm_vcpu *vcpu) skip_emulated_instruction() argument 533 static void svm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, svm_queue_exception() argument 594 static void svm_init_osvw(struct kvm_vcpu *vcpu) svm_init_osvw() argument 984 static u64 svm_scale_tsc(struct kvm_vcpu *vcpu, u64 tsc) svm_scale_tsc() argument 995 static void svm_set_tsc_khz(struct kvm_vcpu *vcpu, u32 user_tsc_khz, bool scale) svm_set_tsc_khz() argument 1031 static u64 svm_read_tsc_offset(struct kvm_vcpu *vcpu) svm_read_tsc_offset() argument 1038 static void svm_write_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) svm_write_tsc_offset() argument 1057 static void svm_adjust_tsc_offset(struct kvm_vcpu *vcpu, s64 adjustment, bool host) svm_adjust_tsc_offset() argument 1078 static u64 svm_compute_tsc_offset(struct kvm_vcpu *vcpu, u64 target_tsc) svm_compute_tsc_offset() argument 1202 static void svm_vcpu_reset(struct kvm_vcpu *vcpu) svm_vcpu_reset() argument 1289 static void svm_free_vcpu(struct kvm_vcpu *vcpu) svm_free_vcpu() argument 1301 static void svm_vcpu_load(struct kvm_vcpu *vcpu, int cpu) svm_vcpu_load() argument 1328 static void svm_vcpu_put(struct kvm_vcpu *vcpu) svm_vcpu_put() argument 1348 static unsigned long svm_get_rflags(struct kvm_vcpu *vcpu) svm_get_rflags() argument 1353 static void svm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) svm_set_rflags() argument 1363 static void svm_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) svm_cache_reg() argument 1385 static struct vmcb_seg *svm_seg(struct kvm_vcpu *vcpu, int seg) svm_seg() argument 1403 static u64 svm_get_segment_base(struct kvm_vcpu *vcpu, int seg) svm_get_segment_base() argument 1410 static void svm_get_segment(struct kvm_vcpu *vcpu, svm_get_segment() argument 1478 static int svm_get_cpl(struct kvm_vcpu *vcpu) svm_get_cpl() argument 1485 static void svm_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_get_idt() argument 1493 static void svm_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_set_idt() argument 1502 static void svm_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_get_gdt() argument 1510 static void svm_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) svm_set_gdt() argument 1519 static void svm_decache_cr0_guest_bits(struct kvm_vcpu *vcpu) svm_decache_cr0_guest_bits() argument 1523 static void svm_decache_cr3(struct kvm_vcpu *vcpu) svm_decache_cr3() argument 1527 static void svm_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) svm_decache_cr4_guest_bits() argument 1553 static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) svm_set_cr0() argument 1588 static int svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) svm_set_cr4() argument 1608 static void svm_set_segment(struct kvm_vcpu *vcpu, svm_set_segment() argument 1642 static void update_bp_intercept(struct kvm_vcpu *vcpu) update_bp_intercept() argument 1669 static u64 svm_get_dr6(struct kvm_vcpu *vcpu) svm_get_dr6() argument 1674 static void svm_set_dr6(struct kvm_vcpu *vcpu, unsigned long value) svm_set_dr6() argument 1682 static void svm_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) svm_sync_dirty_debug_regs() argument 1697 static void svm_set_dr7(struct kvm_vcpu *vcpu, unsigned long value) svm_set_dr7() argument 1794 static void svm_fpu_activate(struct kvm_vcpu *vcpu) svm_fpu_activate() argument 1896 struct kvm_vcpu *vcpu = &svm->vcpu; io_interception() local 1944 static unsigned long nested_svm_get_tdp_cr3(struct kvm_vcpu *vcpu) nested_svm_get_tdp_cr3() argument 1951 static u64 nested_svm_get_tdp_pdptr(struct kvm_vcpu *vcpu, int index) nested_svm_get_tdp_pdptr() argument 1965 static void nested_svm_set_tdp_cr3(struct kvm_vcpu *vcpu, nested_svm_set_tdp_cr3() argument 1975 static void nested_svm_inject_npf_exit(struct kvm_vcpu *vcpu, nested_svm_inject_npf_exit() argument 2004 static void nested_svm_init_mmu_context(struct kvm_vcpu *vcpu) nested_svm_init_mmu_context() argument 2016 static void nested_svm_uninit_mmu_context(struct kvm_vcpu *vcpu) nested_svm_uninit_mmu_context() argument 2758 struct kvm_vcpu *vcpu = &svm->vcpu; invlpga_interception() local 3065 static u64 svm_read_l1_tsc(struct kvm_vcpu *vcpu, u64 host_tsc) svm_read_l1_tsc() argument 3072 static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data) svm_get_msr() argument 3163 static int svm_set_vm_cr(struct kvm_vcpu *vcpu, u64 data) svm_set_vm_cr() argument 3188 static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) svm_set_msr() argument 3396 static void dump_vmcb(struct kvm_vcpu *vcpu) dump_vmcb() argument 3501 static void svm_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2) svm_get_exit_info() argument 3509 static int handle_exit(struct kvm_vcpu *vcpu) handle_exit() argument 3576 static void reload_tss(struct kvm_vcpu *vcpu) reload_tss() argument 3596 static void svm_inject_nmi(struct kvm_vcpu *vcpu) svm_inject_nmi() argument 3618 static void svm_set_irq(struct kvm_vcpu *vcpu) svm_set_irq() argument 3631 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) update_cr8_intercept() argument 3647 static void svm_set_virtual_x2apic_mode(struct kvm_vcpu *vcpu, bool set) svm_set_virtual_x2apic_mode() argument 3657 static void svm_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) svm_load_eoi_exitmap() argument 3662 static void svm_sync_pir_to_irr(struct kvm_vcpu *vcpu) svm_sync_pir_to_irr() argument 3667 static int svm_nmi_allowed(struct kvm_vcpu *vcpu) svm_nmi_allowed() argument 3679 static bool svm_get_nmi_mask(struct kvm_vcpu *vcpu) svm_get_nmi_mask() argument 3686 static void svm_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) svm_set_nmi_mask() argument 3699 static int svm_interrupt_allowed(struct kvm_vcpu *vcpu) svm_interrupt_allowed() argument 3717 static void enable_irq_window(struct kvm_vcpu *vcpu) enable_irq_window() argument 3733 static void enable_nmi_window(struct kvm_vcpu *vcpu) enable_nmi_window() argument 3754 static void svm_flush_tlb(struct kvm_vcpu *vcpu) svm_flush_tlb() argument 3764 static void svm_prepare_guest_switch(struct kvm_vcpu *vcpu) svm_prepare_guest_switch() argument 3768 static inline void sync_cr8_to_lapic(struct kvm_vcpu *vcpu) sync_cr8_to_lapic() argument 3781 static inline void sync_lapic_to_cr8(struct kvm_vcpu *vcpu) sync_lapic_to_cr8() argument 3858 static void svm_cancel_injection(struct kvm_vcpu *vcpu) svm_cancel_injection() argument 3869 static void svm_vcpu_run(struct kvm_vcpu *vcpu) svm_vcpu_run() argument 4023 static void svm_set_cr3(struct kvm_vcpu *vcpu, unsigned long root) svm_set_cr3() argument 4032 static void set_tdp_cr3(struct kvm_vcpu *vcpu, unsigned long root) set_tdp_cr3() argument 4058 svm_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) svm_patch_hypercall() argument 4078 static u64 svm_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) svm_get_mt_mask() argument 4083 static void svm_cpuid_update(struct kvm_vcpu *vcpu) svm_cpuid_update() argument 4144 static void svm_fpu_deactivate(struct kvm_vcpu *vcpu) svm_fpu_deactivate() argument 4215 static int svm_check_intercept(struct kvm_vcpu *vcpu, svm_check_intercept() argument 4335 static void svm_handle_external_intr(struct kvm_vcpu *vcpu) svm_handle_external_intr() argument 4340 static void svm_sched_in(struct kvm_vcpu *vcpu, int cpu) svm_sched_in() argument
|
H A D | mmu.c | 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 850 gfn_to_memslot_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t gfn, gfn_to_memslot_dirty_bitmap() argument 863 static bool mapping_level_dirty_bitmap(struct kvm_vcpu *vcpu, gfn_t large_gfn) mapping_level_dirty_bitmap() argument 868 static int mapping_level(struct kvm_vcpu *vcpu, gfn_t large_gfn) mapping_level() argument 898 static int pte_list_add(struct kvm_vcpu *vcpu, u64 *spte, pte_list_add() argument 1030 static bool rmap_can_add(struct kvm_vcpu *vcpu) rmap_can_add() argument 1038 static int rmap_add(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn) rmap_add() argument 1142 static void drop_large_spte(struct kvm_vcpu *vcpu, u64 *sptep) drop_large_spte() argument 1543 static void rmap_recycle(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn) rmap_recycle() argument 1630 static void mmu_page_add_parent_pte(struct kvm_vcpu *vcpu, mmu_page_add_parent_pte() argument 1652 static struct kvm_mmu_page *kvm_mmu_alloc_page(struct kvm_vcpu *vcpu, kvm_mmu_alloc_page() argument 1695 static int nonpaging_sync_page(struct kvm_vcpu *vcpu, nonpaging_sync_page() argument 1701 static void nonpaging_invlpg(struct kvm_vcpu *vcpu, gva_t gva) nonpaging_invlpg() argument 1705 static void nonpaging_update_pte(struct kvm_vcpu *vcpu, nonpaging_update_pte() argument 1825 static int __kvm_sync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, __kvm_sync_page() argument 1845 static int kvm_sync_page_transient(struct kvm_vcpu *vcpu, kvm_sync_page_transient() argument 1861 static void kvm_mmu_audit(struct kvm_vcpu *vcpu, int point) { } mmu_audit_disable() argument 1865 static int kvm_sync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, kvm_sync_page() argument 1872 static void kvm_sync_pages(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_sync_pages() argument 1956 static void mmu_sync_children(struct kvm_vcpu *vcpu, mmu_sync_children() argument 2010 static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu, kvm_mmu_get_page() argument 2146 static void validate_direct_spte(struct kvm_vcpu *vcpu, u64 *sptep, validate_direct_spte() argument 2459 u8 kvm_get_guest_memory_type(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_get_guest_memory_type() argument 2471 static void __kvm_unsync_page(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp) __kvm_unsync_page() argument 2480 static void kvm_unsync_pages(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_unsync_pages() argument 2492 static int mmu_need_write_protect(struct kvm_vcpu *vcpu, gfn_t gfn, mmu_need_write_protect() argument 2513 static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep, set_spte() argument 2593 static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *sptep, mmu_set_spte() argument 2655 static pfn_t pte_prefetch_gfn_to_pfn(struct kvm_vcpu *vcpu, gfn_t gfn, pte_prefetch_gfn_to_pfn() argument 2667 static int direct_pte_prefetch_many(struct kvm_vcpu *vcpu, direct_pte_prefetch_many() argument 2692 static void __direct_pte_prefetch(struct kvm_vcpu *vcpu, __direct_pte_prefetch() argument 2715 static void direct_pte_prefetch(struct kvm_vcpu *vcpu, u64 *sptep) direct_pte_prefetch() argument 2735 static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write, __direct_map() argument 2786 static int kvm_handle_bad_page(struct kvm_vcpu *vcpu, gfn_t gfn, pfn_t pfn) kvm_handle_bad_page() argument 2805 static void transparent_hugepage_adjust(struct kvm_vcpu *vcpu, transparent_hugepage_adjust() argument 2846 static bool handle_abnormal_pfn(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn, handle_abnormal_pfn() argument 2887 fast_pf_fix_direct_spte(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, fast_pf_fix_direct_spte() argument 2923 static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level, fast_page_fault() argument 3004 static int nonpaging_map(struct kvm_vcpu *vcpu, gva_t v, u32 error_code, nonpaging_map() argument 3061 static void mmu_free_roots(struct kvm_vcpu *vcpu) mmu_free_roots() argument 3106 static int mmu_check_root(struct kvm_vcpu *vcpu, gfn_t root_gfn) mmu_check_root() argument 3118 static int mmu_alloc_direct_roots(struct kvm_vcpu *vcpu) mmu_alloc_direct_roots() argument 3154 static int mmu_alloc_shadow_roots(struct kvm_vcpu *vcpu) mmu_alloc_shadow_roots() argument 3250 static int mmu_alloc_roots(struct kvm_vcpu *vcpu) mmu_alloc_roots() argument 3258 static void mmu_sync_roots(struct kvm_vcpu *vcpu) mmu_sync_roots() argument 3290 void kvm_mmu_sync_roots(struct kvm_vcpu *vcpu) kvm_mmu_sync_roots() argument 3298 static gpa_t nonpaging_gva_to_gpa(struct kvm_vcpu *vcpu, gva_t vaddr, nonpaging_gva_to_gpa() argument 3306 static gpa_t nonpaging_gva_to_gpa_nested(struct kvm_vcpu *vcpu, gva_t vaddr, nonpaging_gva_to_gpa_nested() argument 3315 static bool quickly_check_mmio_pf(struct kvm_vcpu *vcpu, u64 addr, bool direct) quickly_check_mmio_pf() argument 3323 static u64 walk_shadow_page_get_mmio_spte(struct kvm_vcpu *vcpu, u64 addr) walk_shadow_page_get_mmio_spte() argument 3340 int handle_mmio_page_fault_common(struct kvm_vcpu *vcpu, u64 addr, bool direct) handle_mmio_page_fault_common() argument 3372 static int handle_mmio_page_fault(struct kvm_vcpu *vcpu, u64 addr, handle_mmio_page_fault() argument 3382 static int nonpaging_page_fault(struct kvm_vcpu *vcpu, gva_t gva, nonpaging_page_fault() argument 3409 static int kvm_arch_setup_async_pf(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn) kvm_arch_setup_async_pf() argument 3421 static bool can_do_async_pf(struct kvm_vcpu *vcpu) can_do_async_pf() argument 3430 static bool try_async_pf(struct kvm_vcpu *vcpu, bool prefault, gfn_t gfn, try_async_pf() argument 3455 static int tdp_page_fault(struct kvm_vcpu *vcpu, gva_t gpa, u32 error_code, tdp_page_fault() argument 3517 static void nonpaging_init_context(struct kvm_vcpu *vcpu, nonpaging_init_context() argument 3532 void kvm_mmu_new_cr3(struct kvm_vcpu *vcpu) kvm_mmu_new_cr3() argument 3537 static unsigned long get_cr3(struct kvm_vcpu *vcpu) get_cr3() argument 3542 static void inject_page_fault(struct kvm_vcpu *vcpu, inject_page_fault() argument 3587 static void reset_rsvds_bits_mask(struct kvm_vcpu *vcpu, reset_rsvds_bits_mask() argument 3662 static void reset_rsvds_bits_mask_ept(struct kvm_vcpu *vcpu, reset_rsvds_bits_mask_ept() argument 3694 static void update_permission_bitmask(struct kvm_vcpu *vcpu, update_permission_bitmask() argument 3759 static void update_last_pte_bitmap(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu) update_last_pte_bitmap() argument 3777 static void paging64_init_context_common(struct kvm_vcpu *vcpu, paging64_init_context_common() argument 3799 static void paging64_init_context(struct kvm_vcpu *vcpu, paging64_init_context() argument 3805 static void paging32_init_context(struct kvm_vcpu *vcpu, paging32_init_context() argument 3825 static void paging32E_init_context(struct kvm_vcpu *vcpu, paging32E_init_context() argument 3831 static void init_kvm_tdp_mmu(struct kvm_vcpu *vcpu) init_kvm_tdp_mmu() argument 3873 void kvm_init_shadow_mmu(struct kvm_vcpu *vcpu) kvm_init_shadow_mmu() argument 3900 void kvm_init_shadow_ept_mmu(struct kvm_vcpu *vcpu, bool execonly) kvm_init_shadow_ept_mmu() argument 3923 static void init_kvm_softmmu(struct kvm_vcpu *vcpu) init_kvm_softmmu() argument 3934 static void init_kvm_nested_mmu(struct kvm_vcpu *vcpu) init_kvm_nested_mmu() argument 3973 static void init_kvm_mmu(struct kvm_vcpu *vcpu) init_kvm_mmu() argument 3983 void kvm_mmu_reset_context(struct kvm_vcpu *vcpu) kvm_mmu_reset_context() argument 3990 int kvm_mmu_load(struct kvm_vcpu *vcpu) kvm_mmu_load() argument 4008 void kvm_mmu_unload(struct kvm_vcpu *vcpu) kvm_mmu_unload() argument 4015 static void mmu_pte_write_new_pte(struct kvm_vcpu *vcpu, mmu_pte_write_new_pte() argument 4041 static void mmu_pte_write_flush_tlb(struct kvm_vcpu *vcpu, bool zap_page, mmu_pte_write_flush_tlb() argument 4053 static u64 mmu_pte_write_fetch_gpte(struct kvm_vcpu *vcpu, gpa_t *gpa, mmu_pte_write_fetch_gpte() argument 4164 void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, kvm_mmu_pte_write() argument 4237 int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva) kvm_mmu_unprotect_page_virt() argument 4253 static void make_mmu_pages_available(struct kvm_vcpu *vcpu) make_mmu_pages_available() argument 4269 static bool is_mmio_page_fault(struct kvm_vcpu *vcpu, gva_t addr) is_mmio_page_fault() argument 4277 int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t cr2, u32 error_code, kvm_mmu_page_fault() argument 4313 void kvm_mmu_invlpg(struct kvm_vcpu *vcpu, gva_t gva) kvm_mmu_invlpg() argument 4333 static void free_mmu_pages(struct kvm_vcpu *vcpu) free_mmu_pages() argument 4340 static int alloc_mmu_pages(struct kvm_vcpu *vcpu) alloc_mmu_pages() argument 4361 int kvm_mmu_create(struct kvm_vcpu *vcpu) kvm_mmu_create() argument 4371 void kvm_mmu_setup(struct kvm_vcpu *vcpu) kvm_mmu_setup() argument 4840 int kvm_mmu_get_spte_hierarchy(struct kvm_vcpu *vcpu, u64 addr, u64 sptes[4]) kvm_mmu_get_spte_hierarchy() argument 4862 void kvm_mmu_destroy(struct kvm_vcpu *vcpu) kvm_mmu_destroy() argument 2081 shadow_walk_init(struct kvm_shadow_walk_iterator *iterator, struct kvm_vcpu *vcpu, u64 addr) shadow_walk_init() argument
|
H A D | vmx.c | 471 struct kvm_vcpu vcpu; member in struct:vcpu_vmx 561 static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu) to_vmx() argument 782 static inline struct vmcs12 *get_vmcs12(struct kvm_vcpu *vcpu) get_vmcs12() argument 787 static struct page *nested_get_page(struct kvm_vcpu *vcpu, gpa_t addr) nested_get_page() argument 1565 static void update_exception_bitmap(struct kvm_vcpu *vcpu) update_exception_bitmap() argument 1809 static void vmx_save_host_state(struct kvm_vcpu *vcpu) vmx_save_host_state() argument 1919 static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) vmx_vcpu_load() argument 1967 static void vmx_vcpu_put(struct kvm_vcpu *vcpu) vmx_vcpu_put() argument 1977 static void vmx_fpu_activate(struct kvm_vcpu *vcpu) vmx_fpu_activate() argument 2014 static void vmx_fpu_deactivate(struct kvm_vcpu *vcpu) vmx_fpu_deactivate() argument 2041 static unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu) vmx_get_rflags() argument 2058 static void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) vmx_set_rflags() argument 2069 static u32 vmx_get_interrupt_shadow(struct kvm_vcpu *vcpu) vmx_get_interrupt_shadow() argument 2082 static void vmx_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) vmx_set_interrupt_shadow() argument 2098 static void skip_emulated_instruction(struct kvm_vcpu *vcpu) skip_emulated_instruction() argument 2114 static int nested_vmx_check_exception(struct kvm_vcpu *vcpu, unsigned nr) nested_vmx_check_exception() argument 2127 static void vmx_queue_exception(struct kvm_vcpu *vcpu, unsigned nr, vmx_queue_exception() argument 2184 static void vmx_set_msr_bitmap(struct kvm_vcpu *vcpu) vmx_set_msr_bitmap() argument 2266 static u64 vmx_read_l1_tsc(struct kvm_vcpu *vcpu, u64 host_tsc) vmx_read_l1_tsc() argument 2280 static void vmx_set_tsc_khz(struct kvm_vcpu *vcpu, u32 user_tsc_khz, bool scale) vmx_set_tsc_khz() argument 2292 static u64 vmx_read_tsc_offset(struct kvm_vcpu *vcpu) vmx_read_tsc_offset() argument 2300 static void vmx_write_tsc_offset(struct kvm_vcpu *vcpu, u64 offset) vmx_write_tsc_offset() argument 2323 static void vmx_adjust_tsc_offset(struct kvm_vcpu *vcpu, s64 adjustment, bool host) vmx_adjust_tsc_offset() argument 2336 static u64 vmx_compute_tsc_offset(struct kvm_vcpu *vcpu, u64 target_tsc) vmx_compute_tsc_offset() argument 2341 static bool guest_cpuid_has_vmx(struct kvm_vcpu *vcpu) guest_cpuid_has_vmx() argument 2353 static inline bool nested_vmx_allowed(struct kvm_vcpu *vcpu) nested_vmx_allowed() argument 2543 static int vmx_get_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) vmx_get_vmx_msr() argument 2643 static int vmx_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) vmx_get_msr() argument 2723 static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) vmx_set_msr() argument 2834 static void vmx_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) vmx_cache_reg() argument 3272 static bool emulation_required(struct kvm_vcpu *vcpu) emulation_required() argument 3277 static void fix_pmode_seg(struct kvm_vcpu *vcpu, int seg, fix_pmode_seg() argument 3296 static void enter_pmode(struct kvm_vcpu *vcpu) enter_pmode() argument 3369 static void enter_rmode(struct kvm_vcpu *vcpu) enter_rmode() argument 3417 static void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) vmx_set_efer() argument 3444 static void enter_lmode(struct kvm_vcpu *vcpu) enter_lmode() argument 3461 static void exit_lmode(struct kvm_vcpu *vcpu) exit_lmode() argument 3469 static void vmx_flush_tlb(struct kvm_vcpu *vcpu) vmx_flush_tlb() argument 3479 static void vmx_decache_cr0_guest_bits(struct kvm_vcpu *vcpu) vmx_decache_cr0_guest_bits() argument 3487 static void vmx_decache_cr3(struct kvm_vcpu *vcpu) vmx_decache_cr3() argument 3494 static void vmx_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) vmx_decache_cr4_guest_bits() argument 3502 static void ept_load_pdptrs(struct kvm_vcpu *vcpu) ept_load_pdptrs() argument 3518 static void ept_save_pdptrs(struct kvm_vcpu *vcpu) ept_save_pdptrs() argument 3565 static void vmx_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) vmx_set_cr0() argument 3620 static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) vmx_set_cr3() argument 3640 static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) vmx_set_cr4() argument 3692 static void vmx_get_segment(struct kvm_vcpu *vcpu, vmx_get_segment() argument 3729 static u64 vmx_get_segment_base(struct kvm_vcpu *vcpu, int seg) vmx_get_segment_base() argument 3740 static int vmx_get_cpl(struct kvm_vcpu *vcpu) vmx_get_cpl() argument 3772 static void vmx_set_segment(struct kvm_vcpu *vcpu, vmx_set_segment() argument 3813 static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) vmx_get_cs_db_l_bits() argument 3821 static void vmx_get_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_get_idt() argument 3827 static void vmx_set_idt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_set_idt() argument 3833 static void vmx_get_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_get_gdt() argument 3839 static void vmx_set_gdt(struct kvm_vcpu *vcpu, struct desc_ptr *dt) vmx_set_gdt() argument 3845 static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) rmode_segment_valid() argument 3866 static bool code_segment_valid(struct kvm_vcpu *vcpu) code_segment_valid() argument 3894 static bool stack_segment_valid(struct kvm_vcpu *vcpu) stack_segment_valid() argument 3916 static bool data_segment_valid(struct kvm_vcpu *vcpu, int seg) data_segment_valid() argument 3941 static bool tr_valid(struct kvm_vcpu *vcpu) tr_valid() argument 3959 static bool ldtr_valid(struct kvm_vcpu *vcpu) ldtr_valid() argument 3977 static bool cs_ss_rpl_check(struct kvm_vcpu *vcpu) cs_ss_rpl_check() argument 3993 static bool guest_state_valid(struct kvm_vcpu *vcpu) guest_state_valid() argument 4366 static int vmx_complete_nested_posted_interrupt(struct kvm_vcpu *vcpu) vmx_complete_nested_posted_interrupt() argument 4403 static inline bool kvm_vcpu_trigger_posted_interrupt(struct kvm_vcpu *vcpu) kvm_vcpu_trigger_posted_interrupt() argument 4415 static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, vmx_deliver_nested_posted_interrupt() argument 4441 static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) vmx_deliver_posted_interrupt() argument 4459 static void vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu) vmx_sync_pir_to_irr() argument 4469 static void vmx_sync_pir_to_irr_dummy(struct kvm_vcpu *vcpu) vmx_sync_pir_to_irr_dummy() argument 4729 static void vmx_vcpu_reset(struct kvm_vcpu *vcpu) vmx_vcpu_reset() argument 4822 static bool nested_exit_on_intr(struct kvm_vcpu *vcpu) nested_exit_on_intr() argument 4832 static bool nested_exit_intr_ack_set(struct kvm_vcpu *vcpu) nested_exit_intr_ack_set() argument 4838 static bool nested_exit_on_nmi(struct kvm_vcpu *vcpu) nested_exit_on_nmi() argument 4844 static void enable_irq_window(struct kvm_vcpu *vcpu) enable_irq_window() argument 4853 static void enable_nmi_window(struct kvm_vcpu *vcpu) enable_nmi_window() argument 4868 static void vmx_inject_irq(struct kvm_vcpu *vcpu) vmx_inject_irq() argument 4895 static void vmx_inject_nmi(struct kvm_vcpu *vcpu) vmx_inject_nmi() argument 4926 static bool vmx_get_nmi_mask(struct kvm_vcpu *vcpu) vmx_get_nmi_mask() argument 4935 static void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked) vmx_set_nmi_mask() argument 4955 static int vmx_nmi_allowed(struct kvm_vcpu *vcpu) vmx_nmi_allowed() argument 4968 static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu) vmx_interrupt_allowed() argument 4993 static bool rmode_exception(struct kvm_vcpu *vcpu, int vec) rmode_exception() argument 5025 static int handle_rmode_exception(struct kvm_vcpu *vcpu, handle_rmode_exception() argument 5071 static int handle_machine_check(struct kvm_vcpu *vcpu) handle_machine_check() argument 5077 static int handle_exception(struct kvm_vcpu *vcpu) handle_exception() argument 5188 static int handle_external_interrupt(struct kvm_vcpu *vcpu) handle_external_interrupt() argument 5194 static int handle_triple_fault(struct kvm_vcpu *vcpu) handle_triple_fault() argument 5200 static int handle_io(struct kvm_vcpu *vcpu) handle_io() argument 5223 vmx_patch_hypercall(struct kvm_vcpu *vcpu, unsigned char *hypercall) vmx_patch_hypercall() argument 5233 static bool nested_cr0_valid(struct kvm_vcpu *vcpu, unsigned long val) nested_cr0_valid() argument 5246 static int handle_set_cr0(struct kvm_vcpu *vcpu, unsigned long val) handle_set_cr0() argument 5278 static int handle_set_cr4(struct kvm_vcpu *vcpu, unsigned long val) handle_set_cr4() argument 5296 static void handle_clts(struct kvm_vcpu *vcpu) handle_clts() argument 5311 static int handle_cr(struct kvm_vcpu *vcpu) handle_cr() argument 5390 static int handle_dr(struct kvm_vcpu *vcpu) handle_dr() argument 5458 static u64 vmx_get_dr6(struct kvm_vcpu *vcpu) vmx_get_dr6() argument 5463 static void vmx_set_dr6(struct kvm_vcpu *vcpu, unsigned long val) vmx_set_dr6() argument 5467 static void vmx_sync_dirty_debug_regs(struct kvm_vcpu *vcpu) vmx_sync_dirty_debug_regs() argument 5485 static void vmx_set_dr7(struct kvm_vcpu *vcpu, unsigned long val) vmx_set_dr7() argument 5490 static int handle_cpuid(struct kvm_vcpu *vcpu) handle_cpuid() argument 5496 static int handle_rdmsr(struct kvm_vcpu *vcpu) handle_rdmsr() argument 5516 static int handle_wrmsr(struct kvm_vcpu *vcpu) handle_wrmsr() argument 5537 static int handle_tpr_below_threshold(struct kvm_vcpu *vcpu) handle_tpr_below_threshold() argument 5543 static int handle_interrupt_window(struct kvm_vcpu *vcpu) handle_interrupt_window() argument 5569 static int handle_halt(struct kvm_vcpu *vcpu) handle_halt() argument 5574 static int handle_vmcall(struct kvm_vcpu *vcpu) handle_vmcall() argument 5580 static int handle_invd(struct kvm_vcpu *vcpu) handle_invd() argument 5585 static int handle_invlpg(struct kvm_vcpu *vcpu) handle_invlpg() argument 5594 static int handle_rdpmc(struct kvm_vcpu *vcpu) handle_rdpmc() argument 5604 static int handle_wbinvd(struct kvm_vcpu *vcpu) handle_wbinvd() argument 5610 static int handle_xsetbv(struct kvm_vcpu *vcpu) handle_xsetbv() argument 5620 static int handle_xsaves(struct kvm_vcpu *vcpu) handle_xsaves() argument 5627 static int handle_xrstors(struct kvm_vcpu *vcpu) handle_xrstors() argument 5634 static int handle_apic_access(struct kvm_vcpu *vcpu) handle_apic_access() argument 5657 static int handle_apic_eoi_induced(struct kvm_vcpu *vcpu) handle_apic_eoi_induced() argument 5667 static int handle_apic_write(struct kvm_vcpu *vcpu) handle_apic_write() argument 5677 static int handle_task_switch(struct kvm_vcpu *vcpu) handle_task_switch() argument 5745 static int handle_ept_violation(struct kvm_vcpu *vcpu) handle_ept_violation() argument 5817 static void ept_misconfig_inspect_spte(struct kvm_vcpu *vcpu, u64 spte, ept_misconfig_inspect_spte() argument 5856 static int handle_ept_misconfig(struct kvm_vcpu *vcpu) handle_ept_misconfig() argument 5894 static int handle_nmi_window(struct kvm_vcpu *vcpu) handle_nmi_window() argument 5908 static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) handle_invalid_guest_state() argument 5986 static void grow_ple_window(struct kvm_vcpu *vcpu) grow_ple_window() argument 5999 static void shrink_ple_window(struct kvm_vcpu *vcpu) shrink_ple_window() argument 6259 static int handle_pause(struct kvm_vcpu *vcpu) handle_pause() argument 6270 static int handle_nop(struct kvm_vcpu *vcpu) handle_nop() argument 6276 static int handle_mwait(struct kvm_vcpu *vcpu) handle_mwait() argument 6282 static int handle_monitor(struct kvm_vcpu *vcpu) handle_monitor() argument 6380 static void nested_vmx_succeed(struct kvm_vcpu *vcpu) nested_vmx_succeed() argument 6387 static void nested_vmx_failInvalid(struct kvm_vcpu *vcpu) nested_vmx_failInvalid() argument 6395 static void nested_vmx_failValid(struct kvm_vcpu *vcpu, nested_vmx_failValid() argument 6417 static void nested_vmx_abort(struct kvm_vcpu *vcpu, u32 indicator) nested_vmx_abort() argument 6442 static int get_vmx_mem_address(struct kvm_vcpu *vcpu, get_vmx_mem_address() argument 6496 static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, nested_vmx_check_vmptr() argument 6592 static int handle_vmon(struct kvm_vcpu *vcpu) handle_vmon() argument 6668 static int nested_vmx_check_permission(struct kvm_vcpu *vcpu) nested_vmx_check_permission() argument 6753 static int handle_vmoff(struct kvm_vcpu *vcpu) handle_vmoff() argument 6764 static int handle_vmclear(struct kvm_vcpu *vcpu) handle_vmclear() argument 6807 static int handle_vmlaunch(struct kvm_vcpu *vcpu) handle_vmlaunch() argument 6813 static int handle_vmresume(struct kvm_vcpu *vcpu) handle_vmresume() argument 6845 static inline int vmcs12_read_any(struct kvm_vcpu *vcpu, vmcs12_read_any() argument 6876 static inline int vmcs12_write_any(struct kvm_vcpu *vcpu, vmcs12_write_any() argument 6994 static int nested_vmx_check_vmcs12(struct kvm_vcpu *vcpu) nested_vmx_check_vmcs12() argument 7005 static int handle_vmread(struct kvm_vcpu *vcpu) handle_vmread() argument 7048 static int handle_vmwrite(struct kvm_vcpu *vcpu) handle_vmwrite() argument 7102 static int handle_vmptrld(struct kvm_vcpu *vcpu) handle_vmptrld() argument 7153 static int handle_vmptrst(struct kvm_vcpu *vcpu) handle_vmptrst() argument 7179 static int handle_invept(struct kvm_vcpu *vcpu) handle_invept() argument 7245 static int handle_invvpid(struct kvm_vcpu *vcpu) handle_invvpid() argument 7251 static int handle_pml_full(struct kvm_vcpu *vcpu) handle_pml_full() argument 7330 static bool nested_vmx_exit_handled_io(struct kvm_vcpu *vcpu, nested_vmx_exit_handled_io() argument 7379 static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu, nested_vmx_exit_handled_msr() argument 7416 static bool nested_vmx_exit_handled_cr(struct kvm_vcpu *vcpu, nested_vmx_exit_handled_cr() argument 7497 static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu) nested_vmx_exit_handled() argument 7629 static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2) vmx_get_exit_info() argument 7707 struct kvm_vcpu *vcpu; kvm_flush_pml_buffers() local 7722 static int vmx_handle_exit(struct kvm_vcpu *vcpu) vmx_handle_exit() argument 7812 static void update_cr8_intercept(struct kvm_vcpu *vcpu, int tpr, int irr) update_cr8_intercept() argument 7828 static void vmx_set_virtual_x2apic_mode(struct kvm_vcpu *vcpu, bool set) vmx_set_virtual_x2apic_mode() argument 7857 static void vmx_set_apic_access_page_addr(struct kvm_vcpu *vcpu, hpa_t hpa) vmx_set_apic_access_page_addr() argument 7914 static void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr) vmx_hwapic_irr_update() argument 7942 static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) vmx_load_eoi_exitmap() argument 7977 static void vmx_handle_external_intr(struct kvm_vcpu *vcpu) vmx_handle_external_intr() argument 8077 static void __vmx_complete_interrupts(struct kvm_vcpu *vcpu, __vmx_complete_interrupts() argument 8138 static void vmx_cancel_injection(struct kvm_vcpu *vcpu) vmx_cancel_injection() argument 8166 static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu) vmx_vcpu_run() argument 8364 static void vmx_load_vmcs01(struct kvm_vcpu *vcpu) vmx_load_vmcs01() argument 8380 static void vmx_free_vcpu(struct kvm_vcpu *vcpu) vmx_free_vcpu() argument 8505 static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) vmx_get_mt_mask() argument 8541 static void vmx_cpuid_update(struct kvm_vcpu *vcpu) vmx_cpuid_update() argument 8592 static void nested_ept_inject_page_fault(struct kvm_vcpu *vcpu, nested_ept_inject_page_fault() argument 8608 static unsigned long nested_ept_get_cr3(struct kvm_vcpu *vcpu) nested_ept_get_cr3() argument 8614 static void nested_ept_init_mmu_context(struct kvm_vcpu *vcpu) nested_ept_init_mmu_context() argument 8627 static void nested_ept_uninit_mmu_context(struct kvm_vcpu *vcpu) nested_ept_uninit_mmu_context() argument 8644 static void vmx_inject_page_fault_nested(struct kvm_vcpu *vcpu, vmx_inject_page_fault_nested() argument 8659 static bool nested_get_vmcs12_pages(struct kvm_vcpu *vcpu, nested_get_vmcs12_pages() argument 8735 static void vmx_start_preemption_timer(struct kvm_vcpu *vcpu) vmx_start_preemption_timer() argument 8757 static int nested_vmx_check_msr_bitmap_controls(struct kvm_vcpu *vcpu, nested_vmx_check_msr_bitmap_controls() argument 8783 static inline bool nested_vmx_merge_msr_bitmap(struct kvm_vcpu *vcpu, nested_vmx_merge_msr_bitmap() argument 8862 static int nested_vmx_check_apicv_controls(struct kvm_vcpu *vcpu, nested_vmx_check_apicv_controls() argument 8905 static int nested_vmx_check_msr_switch(struct kvm_vcpu *vcpu, nested_vmx_check_msr_switch() argument 8930 static int nested_vmx_check_msr_switch_controls(struct kvm_vcpu *vcpu, nested_vmx_check_msr_switch_controls() argument 8947 static int nested_vmx_msr_check_common(struct kvm_vcpu *vcpu, nested_vmx_msr_check_common() argument 8961 static int nested_vmx_load_msr_check(struct kvm_vcpu *vcpu, nested_vmx_load_msr_check() argument 8972 static int nested_vmx_store_msr_check(struct kvm_vcpu *vcpu, nested_vmx_store_msr_check() argument 8985 static u32 nested_vmx_load_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) nested_vmx_load_msr() argument 9020 static int nested_vmx_store_msr(struct kvm_vcpu *vcpu, u64 gpa, u32 count) nested_vmx_store_msr() argument 9068 static void prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) prepare_vmcs02() argument 9384 static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch) nested_vmx_run() argument 9596 vmcs12_guest_cr0(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) vmcs12_guest_cr0() argument 9606 vmcs12_guest_cr4(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) vmcs12_guest_cr4() argument 9615 static void vmcs12_save_pending_event(struct kvm_vcpu *vcpu, vmcs12_save_pending_event() argument 9657 static int vmx_check_nested_events(struct kvm_vcpu *vcpu, bool external_intr) vmx_check_nested_events() argument 9696 static u32 vmx_get_preemption_timer_value(struct kvm_vcpu *vcpu) vmx_get_preemption_timer_value() argument 9721 static void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12, prepare_vmcs12() argument 9874 static void load_vmcs12_host_state(struct kvm_vcpu *vcpu, load_vmcs12_host_state() argument 10011 static void nested_vmx_vmexit(struct kvm_vcpu *vcpu, u32 exit_reason, nested_vmx_vmexit() argument 10104 static void vmx_leave_nested(struct kvm_vcpu *vcpu) vmx_leave_nested() argument 10118 static void nested_vmx_entry_failure(struct kvm_vcpu *vcpu, nested_vmx_entry_failure() argument 10130 static int vmx_check_intercept(struct kvm_vcpu *vcpu, vmx_check_intercept() argument 10137 static void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu) vmx_sched_in() argument 3537 ept_update_paging_mode_cr0(unsigned long *hw_cr0, unsigned long cr0, struct kvm_vcpu *vcpu) ept_update_paging_mode_cr0() argument
|
H A D | x86.c | 177 static inline void kvm_async_pf_hash_reset(struct kvm_vcpu *vcpu) kvm_async_pf_hash_reset() argument 269 u64 kvm_get_apic_base(struct kvm_vcpu *vcpu) kvm_get_apic_base() argument 275 int kvm_set_apic_base(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_set_apic_base() argument 351 static void kvm_multiple_exception(struct kvm_vcpu *vcpu, kvm_multiple_exception() argument 395 void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr) kvm_queue_exception() argument 401 void kvm_requeue_exception(struct kvm_vcpu *vcpu, unsigned nr) kvm_requeue_exception() argument 407 void kvm_complete_insn_gp(struct kvm_vcpu *vcpu, int err) kvm_complete_insn_gp() argument 416 void kvm_inject_page_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) kvm_inject_page_fault() argument 424 static bool kvm_propagate_fault(struct kvm_vcpu *vcpu, struct x86_exception *fault) kvm_propagate_fault() argument 434 void kvm_inject_nmi(struct kvm_vcpu *vcpu) kvm_inject_nmi() argument 441 void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code) kvm_queue_exception_e() argument 447 void kvm_requeue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code) kvm_requeue_exception_e() argument 457 bool kvm_require_cpl(struct kvm_vcpu *vcpu, int required_cpl) kvm_require_cpl() argument 466 bool kvm_require_dr(struct kvm_vcpu *vcpu, int dr) kvm_require_dr() argument 481 int kvm_read_guest_page_mmu(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, kvm_read_guest_page_mmu() argument 500 static int kvm_read_nested_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn, kvm_read_nested_guest_page() argument 510 int load_pdptrs(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, unsigned long cr3) load_pdptrs() argument 545 static bool pdptrs_changed(struct kvm_vcpu *vcpu) pdptrs_changed() argument 572 int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) kvm_set_cr0() argument 626 void kvm_lmsw(struct kvm_vcpu *vcpu, unsigned long msw) kvm_lmsw() argument 632 static void kvm_load_guest_xcr0(struct kvm_vcpu *vcpu) kvm_load_guest_xcr0() argument 642 static void kvm_put_guest_xcr0(struct kvm_vcpu *vcpu) kvm_put_guest_xcr0() argument 651 static int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr) __kvm_set_xcr() argument 690 int kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr) kvm_set_xcr() argument 701 int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) kvm_set_cr4() argument 754 int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) kvm_set_cr3() argument 780 int kvm_set_cr8(struct kvm_vcpu *vcpu, unsigned long cr8) kvm_set_cr8() argument 792 unsigned long kvm_get_cr8(struct kvm_vcpu *vcpu) kvm_get_cr8() argument 801 static void kvm_update_dr0123(struct kvm_vcpu *vcpu) kvm_update_dr0123() argument 812 static void kvm_update_dr6(struct kvm_vcpu *vcpu) kvm_update_dr6() argument 818 static void kvm_update_dr7(struct kvm_vcpu *vcpu) kvm_update_dr7() argument 832 static u64 kvm_dr6_fixed(struct kvm_vcpu *vcpu) kvm_dr6_fixed() argument 841 static int __kvm_set_dr(struct kvm_vcpu *vcpu, int dr, unsigned long val) __kvm_set_dr() argument 870 int kvm_set_dr(struct kvm_vcpu *vcpu, int dr, unsigned long val) kvm_set_dr() argument 880 int kvm_get_dr(struct kvm_vcpu *vcpu, int dr, unsigned long *val) kvm_get_dr() argument 904 bool kvm_rdpmc(struct kvm_vcpu *vcpu) kvm_rdpmc() argument 955 bool kvm_valid_efer(struct kvm_vcpu *vcpu, u64 efer) kvm_valid_efer() argument 980 static int set_efer(struct kvm_vcpu *vcpu, u64 efer) set_efer() argument 1014 int kvm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) kvm_set_msr() argument 1048 static int do_set_msr(struct kvm_vcpu *vcpu, unsigned index, u64 *data) do_set_msr() argument 1099 void kvm_set_pending_timer(struct kvm_vcpu *vcpu) kvm_set_pending_timer() argument 1207 static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec) nsec_to_cycles() argument 1220 static void kvm_set_tsc_khz(struct kvm_vcpu *vcpu, u32 this_tsc_khz) kvm_set_tsc_khz() argument 1250 static u64 compute_guest_tsc(struct kvm_vcpu *vcpu, s64 kernel_ns) compute_guest_tsc() argument 1259 static void kvm_track_tsc_matching(struct kvm_vcpu *vcpu) kvm_track_tsc_matching() argument 1287 static void update_ia32_tsc_adjust_msr(struct kvm_vcpu *vcpu, s64 offset) update_ia32_tsc_adjust_msr() argument 1293 void kvm_write_tsc(struct kvm_vcpu *vcpu, struct msr_data *msr) kvm_write_tsc() argument 1570 struct kvm_vcpu *vcpu; kvm_gen_update_masterclock() local 1592 struct kvm_vcpu_arch *vcpu = &v->arch; kvm_guest_time_update() local 1744 struct kvm_vcpu *vcpu; kvmclock_update_fn() local 1809 bool kvm_mtrr_valid(struct kvm_vcpu *vcpu, u32 msr, u64 data) kvm_mtrr_valid() argument 1854 static int set_msr_mtrr(struct kvm_vcpu *vcpu, u32 msr, u64 data) set_msr_mtrr() argument 1891 static int set_msr_mce(struct kvm_vcpu *vcpu, u32 msr, u64 data) set_msr_mce() argument 1927 static int xen_hvm_config(struct kvm_vcpu *vcpu, u64 data) xen_hvm_config() argument 1978 static int set_msr_hyperv_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data) set_msr_hyperv_pw() argument 2035 static int set_msr_hyperv(struct kvm_vcpu *vcpu, u32 msr, u64 data) set_msr_hyperv() argument 2075 static int kvm_pv_enable_async_pf(struct kvm_vcpu *vcpu, u64 data) kvm_pv_enable_async_pf() argument 2100 static void kvmclock_reset(struct kvm_vcpu *vcpu) kvmclock_reset() argument 2105 static void accumulate_steal_time(struct kvm_vcpu *vcpu) accumulate_steal_time() argument 2117 static void record_steal_time(struct kvm_vcpu *vcpu) record_steal_time() argument 2136 int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info) kvm_set_msr_common() argument 2377 int kvm_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) kvm_get_msr() argument 2383 static int get_msr_mtrr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) get_msr_mtrr() argument 2419 static int get_msr_mce(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) get_msr_mce() argument 2454 static int get_msr_hyperv_pw(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) get_msr_hyperv_pw() argument 2483 static int get_msr_hyperv(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) get_msr_hyperv() argument 2516 int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) kvm_get_msr_common() argument 2693 static int __msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs *msrs, __msr_io() argument 2714 static int msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs __user *user_msrs, msr_io() argument 2917 static bool need_emulate_wbinvd(struct kvm_vcpu *vcpu) need_emulate_wbinvd() argument 2922 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument 2967 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument 2974 static int kvm_vcpu_ioctl_get_lapic(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_get_lapic() argument 2983 static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_set_lapic() argument 2992 static int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_interrupt() argument 3006 static int kvm_vcpu_ioctl_nmi(struct kvm_vcpu *vcpu) kvm_vcpu_ioctl_nmi() argument 3013 static int vcpu_ioctl_tpr_access_reporting(struct kvm_vcpu *vcpu, vcpu_ioctl_tpr_access_reporting() argument 3022 static int kvm_vcpu_ioctl_x86_setup_mce(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_setup_mce() argument 3045 static int kvm_vcpu_ioctl_x86_set_mce(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_mce() argument 3093 static void kvm_vcpu_ioctl_x86_get_vcpu_events(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_vcpu_events() argument 3123 static int kvm_vcpu_ioctl_x86_set_vcpu_events(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_vcpu_events() argument 3158 static void kvm_vcpu_ioctl_x86_get_debugregs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_debugregs() argument 3171 static int kvm_vcpu_ioctl_x86_set_debugregs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_debugregs() argument 3194 static void fill_xsave(u8 *dest, struct kvm_vcpu *vcpu) fill_xsave() argument 3230 static void load_xsave(struct kvm_vcpu *vcpu, u8 *src) load_xsave() argument 3269 static void kvm_vcpu_ioctl_x86_get_xsave(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_xsave() argument 3284 static int kvm_vcpu_ioctl_x86_set_xsave(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_xsave() argument 3308 static void kvm_vcpu_ioctl_x86_get_xcrs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_get_xcrs() argument 3322 static int kvm_vcpu_ioctl_x86_set_xcrs(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_x86_set_xcrs() argument 3351 static int kvm_set_guest_paused(struct kvm_vcpu *vcpu) kvm_set_guest_paused() argument 3363 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local 3628 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument 4143 static int vcpu_mmio_write(struct kvm_vcpu *vcpu, gpa_t addr, int len, vcpu_mmio_write() argument 4164 static int vcpu_mmio_read(struct kvm_vcpu *vcpu, gpa_t addr, int len, void *v) vcpu_mmio_read() argument 4186 static void kvm_set_segment(struct kvm_vcpu *vcpu, kvm_set_segment() argument 4192 void kvm_get_segment(struct kvm_vcpu *vcpu, kvm_get_segment() argument 4198 gpa_t translate_nested_gpa(struct kvm_vcpu *vcpu, gpa_t gpa, u32 access, translate_nested_gpa() argument 4212 gpa_t kvm_mmu_gva_to_gpa_read(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_read() argument 4219 gpa_t kvm_mmu_gva_to_gpa_fetch(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_fetch() argument 4227 gpa_t kvm_mmu_gva_to_gpa_write(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_write() argument 4236 gpa_t kvm_mmu_gva_to_gpa_system(struct kvm_vcpu *vcpu, gva_t gva, kvm_mmu_gva_to_gpa_system() argument 4278 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_fetch_guest_virt() local 4304 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_read_guest_virt() local 4316 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_read_guest_virt_system() local 4325 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); kvm_write_guest_virt_system() local 4354 static int vcpu_mmio_gva_to_gpa(struct kvm_vcpu *vcpu, unsigned long gva, vcpu_mmio_gva_to_gpa() argument 4387 int emulator_write_phys(struct kvm_vcpu *vcpu, gpa_t gpa, emulator_write_phys() argument 4411 static int read_prepare(struct kvm_vcpu *vcpu, void *val, int bytes) read_prepare() argument 4423 static int read_emulate(struct kvm_vcpu *vcpu, gpa_t gpa, read_emulate() argument 4429 static int write_emulate(struct kvm_vcpu *vcpu, gpa_t gpa, write_emulate() argument 4435 static int write_mmio(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes, void *val) write_mmio() argument 4441 static int read_exit_mmio(struct kvm_vcpu *vcpu, gpa_t gpa, read_exit_mmio() argument 4448 static int write_exit_mmio(struct kvm_vcpu *vcpu, gpa_t gpa, write_exit_mmio() argument 4520 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_read_write() local 4605 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_cmpxchg_emulated() local 4663 static int kernel_pio(struct kvm_vcpu *vcpu, void *pd) kernel_pio() argument 4678 static int emulator_pio_in_out(struct kvm_vcpu *vcpu, int size, emulator_pio_in_out() argument 4706 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_pio_in_emulated() local 4728 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_pio_out_emulated() local 4735 static unsigned long get_segment_base(struct kvm_vcpu *vcpu, int seg) get_segment_base() argument 4745 int kvm_emulate_wbinvd_noskip(struct kvm_vcpu *vcpu) kvm_emulate_wbinvd_noskip() argument 4763 int kvm_emulate_wbinvd(struct kvm_vcpu *vcpu) kvm_emulate_wbinvd() argument 4797 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_get_cr() local 4826 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_set_cr() local 4922 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_set_segment() local 5064 static void toggle_interruptibility(struct kvm_vcpu *vcpu, u32 mask) toggle_interruptibility() argument 5083 static bool inject_emulated_exception(struct kvm_vcpu *vcpu) inject_emulated_exception() argument 5097 static void init_emulate_ctxt(struct kvm_vcpu *vcpu) init_emulate_ctxt() argument 5117 int kvm_inject_realmode_interrupt(struct kvm_vcpu *vcpu, int irq, int inc_eip) kvm_inject_realmode_interrupt() argument 5145 static int handle_emulation_failure(struct kvm_vcpu *vcpu) handle_emulation_failure() argument 5162 static bool reexecute_instruction(struct kvm_vcpu *vcpu, gva_t cr2, reexecute_instruction() argument 5236 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); retry_instruction() local 5295 static void kvm_vcpu_check_singlestep(struct kvm_vcpu *vcpu, unsigned long rflags, int *r) kvm_vcpu_check_singlestep() argument 5329 static bool kvm_vcpu_check_breakpoint(struct kvm_vcpu *vcpu, int *r) kvm_vcpu_check_breakpoint() argument 5368 int x86_emulate_instruction(struct kvm_vcpu *vcpu, x86_emulate_instruction() argument 5501 int kvm_fast_pio_out(struct kvm_vcpu *vcpu, int size, unsigned short port) kvm_fast_pio_out() argument 5536 struct kvm_vcpu *vcpu; kvmclock_cpufreq_notifier() local 5703 void kvm_before_handle_nmi(struct kvm_vcpu *vcpu) kvm_before_handle_nmi() argument 5709 void kvm_after_handle_nmi(struct kvm_vcpu *vcpu) kvm_after_handle_nmi() argument 5750 struct kvm_vcpu *vcpu; pvclock_gtod_update_fn() local 5865 int kvm_vcpu_halt(struct kvm_vcpu *vcpu) kvm_vcpu_halt() argument 5878 int kvm_emulate_halt(struct kvm_vcpu *vcpu) kvm_emulate_halt() argument 5885 int kvm_hv_hypercall(struct kvm_vcpu *vcpu) kvm_hv_hypercall() argument 5962 int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) kvm_emulate_hypercall() argument 6017 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); emulator_fix_hypercall() local 6032 static int dm_request_for_irq_injection(struct kvm_vcpu *vcpu) dm_request_for_irq_injection() argument 6039 static void post_kvm_run_save(struct kvm_vcpu *vcpu) post_kvm_run_save() argument 6055 static void update_cr8_intercept(struct kvm_vcpu *vcpu) update_cr8_intercept() argument 6078 static int inject_pending_event(struct kvm_vcpu *vcpu, bool req_int_win) inject_pending_event() argument 6148 static void process_nmi(struct kvm_vcpu *vcpu) process_nmi() argument 6165 static void vcpu_scan_ioapic(struct kvm_vcpu *vcpu) vcpu_scan_ioapic() argument 6181 static void kvm_vcpu_flush_tlb(struct kvm_vcpu *vcpu) kvm_vcpu_flush_tlb() argument 6187 void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu) kvm_vcpu_reload_apic_access_page() argument 6226 static int vcpu_enter_guest(struct kvm_vcpu *vcpu) vcpu_enter_guest() argument 6445 static inline int vcpu_block(struct kvm *kvm, struct kvm_vcpu *vcpu) vcpu_block() argument 6473 static int vcpu_run(struct kvm_vcpu *vcpu) vcpu_run() argument 6520 static inline int complete_emulated_io(struct kvm_vcpu *vcpu) complete_emulated_io() argument 6531 static int complete_emulated_pio(struct kvm_vcpu *vcpu) complete_emulated_pio() argument 6556 static int complete_emulated_mmio(struct kvm_vcpu *vcpu) complete_emulated_mmio() argument 6602 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) kvm_arch_vcpu_ioctl_run() argument 6648 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument 6686 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument 6720 void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) kvm_get_cs_db_l_bits() argument 6730 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument 6769 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument 6782 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument 6798 int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index, kvm_task_switch() argument 6819 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument 6900 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument 6958 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument 6976 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument 6993 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument 7010 int fx_init(struct kvm_vcpu *vcpu) fx_init() argument 7034 static void fx_free(struct kvm_vcpu *vcpu) fx_free() argument 7039 void kvm_load_guest_fpu(struct kvm_vcpu *vcpu) kvm_load_guest_fpu() argument 7055 void kvm_put_guest_fpu(struct kvm_vcpu *vcpu) kvm_put_guest_fpu() argument 7070 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument 7082 struct kvm_vcpu *vcpu; kvm_arch_vcpu_create() local 7099 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument 7114 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument 7131 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument 7145 void kvm_vcpu_reset(struct kvm_vcpu *vcpu) kvm_vcpu_reset() argument 7181 void kvm_vcpu_deliver_sipi_vector(struct kvm_vcpu *vcpu, u8 vector) kvm_vcpu_deliver_sipi_vector() argument 7195 struct kvm_vcpu *vcpu; kvm_arch_hardware_enable() local 7311 bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu) kvm_vcpu_compatible() argument 7318 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument 7397 void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) kvm_arch_vcpu_uninit() argument 7412 void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) kvm_arch_sched_in() argument 7446 static void kvm_unload_vcpu_mmu(struct kvm_vcpu *vcpu) kvm_unload_vcpu_mmu() argument 7458 struct kvm_vcpu *vcpu; kvm_free_vcpus() local 7748 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) kvm_arch_vcpu_runnable() argument 7763 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument 7768 int kvm_arch_interrupt_allowed(struct kvm_vcpu *vcpu) kvm_arch_interrupt_allowed() argument 7773 unsigned long kvm_get_linear_rip(struct kvm_vcpu *vcpu) kvm_get_linear_rip() argument 7782 bool kvm_is_linear_rip(struct kvm_vcpu *vcpu, unsigned long linear_rip) kvm_is_linear_rip() argument 7788 unsigned long kvm_get_rflags(struct kvm_vcpu *vcpu) kvm_get_rflags() argument 7799 static void __kvm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) __kvm_set_rflags() argument 7807 void kvm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags) kvm_set_rflags() argument 7814 void kvm_arch_async_page_ready(struct kvm_vcpu *vcpu, struct kvm_async_pf *work) kvm_arch_async_page_ready() argument 7843 static void kvm_add_async_pf_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_add_async_pf_gfn() argument 7853 static u32 kvm_async_pf_gfn_slot(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_async_pf_gfn_slot() argument 7866 bool kvm_find_async_pf_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_find_async_pf_gfn() argument 7871 static void kvm_del_async_pf_gfn(struct kvm_vcpu *vcpu, gfn_t gfn) kvm_del_async_pf_gfn() argument 7894 static int apf_put_user(struct kvm_vcpu *vcpu, u32 val) apf_put_user() argument 7901 void kvm_arch_async_page_not_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_not_present() argument 7923 void kvm_arch_async_page_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_present() argument 7947 bool kvm_arch_can_inject_async_page_present(struct kvm_vcpu *vcpu) kvm_arch_can_inject_async_page_present() argument 4242 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 4471 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.1.27/arch/powerpc/kvm/ |
H A D | emulate_loadstore.c | 50 int kvmppc_emulate_loadstore(struct kvm_vcpu *vcpu) kvmppc_emulate_loadstore() argument
|
H A D | book3s_64_vio_hv.c | 44 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 D | timing.h | 32 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 D | emulate.c | 37 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 D | book3s_hv_ras.c | 34 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 D | booke_emulate.c | 35 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 D | book3s_hv_rm_xics.c | 53 static void icp_rm_set_vcpu_irq(struct kvm_vcpu *vcpu, icp_rm_set_vcpu_irq() argument 83 static void icp_rm_clr_vcpu_irq(struct kvm_vcpu *vcpu) icp_rm_clr_vcpu_irq() argument 386 unsigned long kvmppc_rm_h_xirr(struct kvm_vcpu *vcpu) kvmppc_rm_h_xirr() argument 424 int kvmppc_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, kvmppc_rm_h_ipi() argument 511 int kvmppc_rm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) kvmppc_rm_h_cppr() argument 573 int kvmppc_rm_h_eoi(struct kvm_vcpu *vcpu, unsigned long xirr) kvmppc_rm_h_eoi() argument
|
H A D | book3s_rtas.c | 21 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 D | e500_emulate.c | 52 static int kvmppc_e500_emul_msgclr(struct kvm_vcpu *vcpu, int rb) kvmppc_e500_emul_msgclr() argument 64 static int kvmppc_e500_emul_msgsnd(struct kvm_vcpu *vcpu, int rb) kvmppc_e500_emul_msgsnd() argument 87 static int kvmppc_e500_emul_ehpriv(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_e500_emul_ehpriv() argument 107 static int kvmppc_e500_emul_dcbtls(struct kvm_vcpu *vcpu) kvmppc_e500_emul_dcbtls() argument 116 int kvmppc_core_emulate_op_e500(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_core_emulate_op_e500() argument 189 int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) kvmppc_core_emulate_mtspr_e500() argument 299 int kvmppc_core_emulate_mfspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) kvmppc_core_emulate_mfspr_e500() argument
|
H A D | timing.c | 33 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 D | book3s_32_mmu.c | 52 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 D | book3s_32_mmu_host.c | 60 void kvmppc_mmu_invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) kvmppc_mmu_invalidate_pte() argument 77 static u16 kvmppc_sid_hash(struct kvm_vcpu *vcpu, u64 gvsid) kvmppc_sid_hash() argument 90 static struct kvmppc_sid_map *find_sid_vsid(struct kvm_vcpu *vcpu, u64 gvsid) find_sid_vsid() argument 117 static u32 *kvmppc_mmu_get_pteg(struct kvm_vcpu *vcpu, u32 vsid, u32 eaddr, kvmppc_mmu_get_pteg() argument 141 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, kvmppc_mmu_map_page() argument 269 void kvmppc_mmu_unmap_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte) kvmppc_mmu_unmap_page() argument 274 static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid) create_sid_map() argument 313 int kvmppc_mmu_map_segment(struct kvm_vcpu *vcpu, ulong eaddr) kvmppc_mmu_map_segment() argument 344 void kvmppc_mmu_flush_segments(struct kvm_vcpu *vcpu) kvmppc_mmu_flush_segments() argument 356 void kvmppc_mmu_destroy_pr(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy_pr() argument 370 int kvmppc_mmu_init(struct kvm_vcpu *vcpu) kvmppc_mmu_init() argument
|
H A D | book3s_64_mmu_host.c | 34 void kvmppc_mmu_invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) kvmppc_mmu_invalidate_pte() argument 43 static u16 kvmppc_sid_hash(struct kvm_vcpu *vcpu, u64 gvsid) kvmppc_sid_hash() argument 56 static struct kvmppc_sid_map *find_sid_vsid(struct kvm_vcpu *vcpu, u64 gvsid) find_sid_vsid() argument 81 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, kvmppc_mmu_map_page() argument 216 void kvmppc_mmu_unmap_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte) kvmppc_mmu_unmap_page() argument 227 static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid) create_sid_map() argument 267 static int kvmppc_mmu_next_segment(struct kvm_vcpu *vcpu, ulong esid) kvmppc_mmu_next_segment() argument 308 int kvmppc_mmu_map_segment(struct kvm_vcpu *vcpu, ulong eaddr) kvmppc_mmu_map_segment() argument 354 void kvmppc_mmu_flush_segment(struct kvm_vcpu *vcpu, ulong ea, ulong seg_size) kvmppc_mmu_flush_segment() argument 371 void kvmppc_mmu_flush_segments(struct kvm_vcpu *vcpu) kvmppc_mmu_flush_segments() argument 379 void kvmppc_mmu_destroy_pr(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy_pr() argument 385 int kvmppc_mmu_init(struct kvm_vcpu *vcpu) kvmppc_mmu_init() argument
|
H A D | book3s_hv_builtin.c | 110 long int kvmppc_rm_h_confer(struct kvm_vcpu *vcpu, int target, kvmppc_rm_h_confer() argument 183 long kvmppc_h_random(struct kvm_vcpu *vcpu) kvmppc_h_random() argument
|
H A D | book3s_mmu_hpte.c | 67 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 D | book3s_pr_papr.c | 26 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 D | e500.c | 218 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 296 void kvmppc_mmu_msr_notify(struct kvm_vcpu *vcpu, u32 old_msr) kvmppc_mmu_msr_notify() argument 302 static void kvmppc_core_vcpu_load_e500(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load_e500() argument 310 static void kvmppc_core_vcpu_put_e500(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put_e500() argument 349 int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_setup() argument 364 static int kvmppc_core_get_sregs_e500(struct kvm_vcpu *vcpu, kvmppc_core_get_sregs_e500() argument 389 static int kvmppc_core_set_sregs_e500(struct kvm_vcpu *vcpu, kvmppc_core_set_sregs_e500() argument 425 static int kvmppc_get_one_reg_e500(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg_e500() argument 432 static int kvmppc_set_one_reg_e500(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg_e500() argument 443 struct kvm_vcpu *vcpu; kvmppc_core_vcpu_create_e500() local 482 static void kvmppc_core_vcpu_free_e500(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free_e500() argument
|
H A D | e500mc.c | 31 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 D | book3s_64_mmu.c | 39 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 D | book3s_emulate.c | 76 static bool spr_allowed(struct kvm_vcpu *vcpu, enum priv_level level) spr_allowed() argument 89 int kvmppc_core_emulate_op_pr(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_core_emulate_op_pr() argument 320 void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat, bool upper, kvmppc_set_bat() argument 340 static struct kvmppc_bat *kvmppc_find_bat(struct kvm_vcpu *vcpu, int sprn) kvmppc_find_bat() argument 365 int kvmppc_core_emulate_mtspr_pr(struct kvm_vcpu *vcpu, int sprn, ulong spr_val) kvmppc_core_emulate_mtspr_pr() argument 514 int kvmppc_core_emulate_mfspr_pr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) kvmppc_core_emulate_mfspr_pr() argument 658 u32 kvmppc_alignment_dsisr(struct kvm_vcpu *vcpu, unsigned int inst) kvmppc_alignment_dsisr() argument 663 ulong kvmppc_alignment_dar(struct kvm_vcpu *vcpu, unsigned int inst) kvmppc_alignment_dar() argument
|
H A D | book3s_xics.h | 63 struct kvm_vcpu *vcpu; member in struct:kvmppc_icp 116 struct kvm_vcpu *vcpu = NULL; kvmppc_xics_find_server() local
|
H A D | e500_mmu.c | 67 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 D | book3s_hv_rm_mmu.c | 344 long kvmppc_h_enter(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_enter() argument 449 long kvmppc_h_remove(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_remove() argument 456 long kvmppc_h_bulk_remove(struct kvm_vcpu *vcpu) kvmppc_h_bulk_remove() argument 566 long kvmppc_h_protect(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_protect() argument 630 long kvmppc_h_read(struct kvm_vcpu *vcpu, unsigned long flags, kvmppc_h_read() argument 789 long kvmppc_hpte_hv_fault(struct kvm_vcpu *vcpu, unsigned long addr, kvmppc_hpte_hv_fault() argument
|
H A D | book3s_xics.c | 570 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 D | e500.h | 61 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 D | e500_mmu_host.c | 160 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 D | book3s.c | 68 void kvmppc_unfixup_split_real(struct kvm_vcpu *vcpu) kvmppc_unfixup_split_real() argument 79 static inline unsigned long kvmppc_interrupt_offset(struct kvm_vcpu *vcpu) kvmppc_interrupt_offset() argument 86 static inline void kvmppc_update_int_pending(struct kvm_vcpu *vcpu, kvmppc_update_int_pending() argument 97 static inline bool kvmppc_critical_section(struct kvm_vcpu *vcpu) kvmppc_critical_section() argument 123 void kvmppc_inject_interrupt(struct kvm_vcpu *vcpu, int vec, u64 flags) kvmppc_inject_interrupt() argument 160 void kvmppc_book3s_dequeue_irqprio(struct kvm_vcpu *vcpu, kvmppc_book3s_dequeue_irqprio() argument 172 void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec) kvmppc_book3s_queue_irqprio() argument 184 void kvmppc_core_queue_program(struct kvm_vcpu *vcpu, ulong flags) kvmppc_core_queue_program() argument 191 void kvmppc_core_queue_dec(struct kvm_vcpu *vcpu) kvmppc_core_queue_dec() argument 197 int kvmppc_core_pending_dec(struct kvm_vcpu *vcpu) kvmppc_core_pending_dec() argument 203 void kvmppc_core_dequeue_dec(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_dec() argument 209 void kvmppc_core_queue_external(struct kvm_vcpu *vcpu, kvmppc_core_queue_external() argument 220 void kvmppc_core_dequeue_external(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_external() argument 226 void kvmppc_core_queue_data_storage(struct kvm_vcpu *vcpu, ulong dar, kvmppc_core_queue_data_storage() argument 234 void kvmppc_core_queue_inst_storage(struct kvm_vcpu *vcpu, ulong flags) kvmppc_core_queue_inst_storage() argument 243 int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, unsigned int priority) kvmppc_book3s_irqprio_deliver() argument 323 static bool clear_irqprio(struct kvm_vcpu *vcpu, unsigned int priority) clear_irqprio() argument 337 int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu) kvmppc_core_prepare_to_enter() argument 367 pfn_t kvmppc_gpa_to_pfn(struct kvm_vcpu *vcpu, gpa_t gpa, bool writing, kvmppc_gpa_to_pfn() argument 393 int kvmppc_xlate(struct kvm_vcpu *vcpu, ulong eaddr, enum xlate_instdata xlid, kvmppc_xlate() argument 423 int kvmppc_load_last_inst(struct kvm_vcpu *vcpu, enum instruction_type type, kvmppc_load_last_inst() argument 440 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument 445 int kvmppc_subarch_vcpu_init(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_init() argument 450 void kvmppc_subarch_vcpu_uninit(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_uninit() argument 454 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument 460 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument 466 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument 494 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument 521 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument 526 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument 531 int kvmppc_get_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg() argument 607 int kvmppc_set_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg() argument 681 void kvmppc_core_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load() argument 686 void kvmppc_core_vcpu_put(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put() argument 691 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u64 msr) kvmppc_set_msr() argument 697 int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) kvmppc_vcpu_run() argument 702 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument 708 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument 715 void kvmppc_decrementer_func(struct kvm_vcpu *vcpu) kvmppc_decrementer_func() argument 726 void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free() argument 731 int kvmppc_core_check_requests(struct kvm_vcpu *vcpu) kvmppc_core_check_requests() argument 798 void kvmppc_mmu_destroy(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy() argument 824 int kvmppc_h_logical_ci_load(struct kvm_vcpu *vcpu) kvmppc_h_logical_ci_load() argument 866 int kvmppc_h_logical_ci_store(struct kvm_vcpu *vcpu) kvmppc_h_logical_ci_store() argument
|
H A D | book3s_pr.c | 65 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 1534 struct kvm_vcpu *vcpu; kvm_vm_ioctl_get_dirty_log_pr() local 1604 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 D | powerpc.c | 55 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 620 struct kvm_vcpu *vcpu; kvm_arch_vcpu_create() local 629 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument 633 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) kvm_arch_vcpu_free() argument 652 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument 657 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument 664 struct kvm_vcpu *vcpu; kvmppc_decrementer_wakeup() local 672 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument 687 void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) kvm_arch_vcpu_uninit() argument 693 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument 708 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument 716 static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, kvmppc_complete_mmio_load() argument 781 int kvmppc_handle_load(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_load() argument 828 int kvmppc_handle_loads(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_loads() argument 840 int kvmppc_handle_store(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_store() argument 898 int kvm_vcpu_ioctl_get_one_reg(struct kvm_vcpu *vcpu, struct kvm_one_reg *reg) kvm_vcpu_ioctl_get_one_reg() argument 946 int kvm_vcpu_ioctl_set_one_reg(struct kvm_vcpu *vcpu, struct kvm_one_reg *reg) kvm_vcpu_ioctl_set_one_reg() argument 995 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_arch_vcpu_ioctl_run() argument 1036 int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, struct kvm_interrupt *irq) kvm_vcpu_ioctl_interrupt() argument 1050 static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_enable_cap() argument 1142 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument 1148 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument 1157 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local 1213 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument
|
H A D | book3s_64_mmu_hv.c | 174 void kvmppc_map_vrma(struct kvm_vcpu *vcpu, struct kvm_memory_slot *memslot, kvmppc_map_vrma() argument 245 static void kvmppc_mmu_book3s_64_hv_reset_msr(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_64_hv_reset_msr() argument 277 static struct kvmppc_slb *kvmppc_mmu_book3s_hv_find_slbe(struct kvm_vcpu *vcpu, kvmppc_mmu_book3s_hv_find_slbe() argument 307 static int kvmppc_mmu_book3s_64_hv_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, kvmppc_mmu_book3s_64_hv_xlate() argument 390 static int kvmppc_hv_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_hv_emulate_mmio() argument 435 int kvmppc_book3s_hv_page_fault(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_book3s_hv_page_fault() argument 1026 struct kvm_vcpu *vcpu; kvmppc_hv_get_dirty_log() local 1627 void kvmppc_mmu_book3s_hv_init(struct kvm_vcpu *vcpu) kvmppc_mmu_book3s_hv_init() argument
|
H A D | book3s_hv.c | 115 static void kvmppc_fast_vcpu_kick_hv(struct kvm_vcpu *vcpu) kvmppc_fast_vcpu_kick_hv() argument 167 static void kvmppc_core_vcpu_load_hv(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load_hv() argument 195 static void kvmppc_core_vcpu_put_hv(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put_hv() argument 211 static void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr) kvmppc_set_msr_hv() argument 223 void kvmppc_set_pvr_hv(struct kvm_vcpu *vcpu, u32 pvr) kvmppc_set_pvr_hv() argument 228 int kvmppc_set_arch_compat(struct kvm_vcpu *vcpu, u32 arch_compat) kvmppc_set_arch_compat() argument 268 void kvmppc_dump_regs(struct kvm_vcpu *vcpu) kvmppc_dump_regs() argument 317 static void init_vpa(struct kvm_vcpu *vcpu, struct lppaca *vpa) init_vpa() argument 323 static int set_vpa(struct kvm_vcpu *vcpu, struct kvmppc_vpa *v, set_vpa() argument 355 static unsigned long do_h_register_vpa(struct kvm_vcpu *vcpu, do_h_register_vpa() argument 465 static void kvmppc_update_vpa(struct kvm_vcpu *vcpu, struct kvmppc_vpa *vpap) kvmppc_update_vpa() argument 515 static void kvmppc_update_vpas(struct kvm_vcpu *vcpu) kvmppc_update_vpas() argument 556 static void kvmppc_create_dtl_entry(struct kvm_vcpu *vcpu, kvmppc_create_dtl_entry() argument 594 static bool kvmppc_power8_compatible(struct kvm_vcpu *vcpu) kvmppc_power8_compatible() argument 604 static int kvmppc_h_set_mode(struct kvm_vcpu *vcpu, unsigned long mflags, kvmppc_h_set_mode() argument 657 static int kvmppc_get_yield_count(struct kvm_vcpu *vcpu) kvmppc_get_yield_count() argument 670 int kvmppc_pseries_do_hcall(struct kvm_vcpu *vcpu) kvmppc_pseries_do_hcall() argument 820 static int kvmppc_handle_exit_hv(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_exit_hv() argument 943 static int kvm_arch_vcpu_ioctl_get_sregs_hv(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs_hv() argument 958 static int kvm_arch_vcpu_ioctl_set_sregs_hv(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs_hv() argument 980 static void kvmppc_set_lpcr(struct kvm_vcpu *vcpu, u64 new_lpcr, kvmppc_set_lpcr() argument 994 struct kvm_vcpu *vcpu; kvmppc_set_lpcr() local 1024 static int kvmppc_get_one_reg_hv(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg_hv() argument 1216 static int kvmppc_set_one_reg_hv(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg_hv() argument 1466 struct kvm_vcpu *vcpu; member in struct:debugfs_timings_state 1473 struct kvm_vcpu *vcpu = inode->i_private; debugfs_timings_open() local 1500 struct kvm_vcpu *vcpu = p->vcpu; debugfs_timings_read() local 1577 static void debugfs_vcpu_init(struct kvm_vcpu *vcpu, unsigned int id) debugfs_vcpu_init() argument 1594 static void debugfs_vcpu_init(struct kvm_vcpu *vcpu, unsigned int id) debugfs_vcpu_init() argument 1602 struct kvm_vcpu *vcpu; kvmppc_core_vcpu_create_hv() local 1685 static void kvmppc_core_vcpu_free_hv(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free_hv() argument 1696 static int kvmppc_core_check_requests_hv(struct kvm_vcpu *vcpu) kvmppc_core_check_requests_hv() argument 1702 static void kvmppc_set_timer(struct kvm_vcpu *vcpu) kvmppc_set_timer() argument 1720 static void kvmppc_end_cede(struct kvm_vcpu *vcpu) kvmppc_end_cede() argument 1791 static void kvmppc_start_thread(struct kvm_vcpu *vcpu) kvmppc_start_thread() argument 1901 struct kvm_vcpu *vcpu, *vnext; prepare_threads() local 1922 struct kvm_vcpu *vcpu, *vnext; post_guest_process() local 1961 struct kvm_vcpu *vcpu, *vnext; kvmppc_run_core() local 2064 static void kvmppc_wait_for_exec(struct kvm_vcpu *vcpu, int wait_state) kvmppc_wait_for_exec() argument 2080 struct kvm_vcpu *vcpu; kvmppc_vcore_blocked() local 2113 static int kvmppc_run_vcpu(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) kvmppc_run_vcpu() argument 2225 static int kvmppc_vcpu_run_hv(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_vcpu_run_hv() argument 2433 static void kvmppc_mmu_destroy_hv(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy_hv() argument 2438 static int kvmppc_hv_setup_htab_rma(struct kvm_vcpu *vcpu) kvmppc_hv_setup_htab_rma() argument 2598 static int kvmppc_core_emulate_op_hv(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_core_emulate_op_hv() argument 2604 static int kvmppc_core_emulate_mtspr_hv(struct kvm_vcpu *vcpu, int sprn, kvmppc_core_emulate_mtspr_hv() argument 2610 static int kvmppc_core_emulate_mfspr_hv(struct kvm_vcpu *vcpu, int sprn, kvmppc_core_emulate_mfspr_hv() argument 796 kvmppc_emulate_debug_inst(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_emulate_debug_inst() argument 1731 kvmppc_remove_runnable(struct kvmppc_vcore *vc, struct kvm_vcpu *vcpu) kvmppc_remove_runnable() argument
|
H A D | book3s_paired_singles.c | 161 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 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 D | booke.c | 74 void kvmppc_dump_vcpu(struct kvm_vcpu *vcpu) kvmppc_dump_vcpu() argument 95 void kvmppc_vcpu_disable_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_disable_spe() argument 104 static void kvmppc_vcpu_enable_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_enable_spe() argument 113 static void kvmppc_vcpu_sync_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_spe() argument 123 static void kvmppc_vcpu_sync_spe(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_spe() argument 137 static inline void kvmppc_load_guest_fp(struct kvm_vcpu *vcpu) kvmppc_load_guest_fp() argument 153 static inline void kvmppc_save_guest_fp(struct kvm_vcpu *vcpu) kvmppc_save_guest_fp() argument 162 static void kvmppc_vcpu_sync_fpu(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_fpu() argument 177 static inline void kvmppc_load_guest_altivec(struct kvm_vcpu *vcpu) kvmppc_load_guest_altivec() argument 195 static inline void kvmppc_save_guest_altivec(struct kvm_vcpu *vcpu) kvmppc_save_guest_altivec() argument 206 static void kvmppc_vcpu_sync_debug(struct kvm_vcpu *vcpu) kvmppc_vcpu_sync_debug() argument 233 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr) kvmppc_set_msr() argument 249 static void kvmppc_booke_queue_irqprio(struct kvm_vcpu *vcpu, kvmppc_booke_queue_irqprio() argument 256 void kvmppc_core_queue_dtlb_miss(struct kvm_vcpu *vcpu, kvmppc_core_queue_dtlb_miss() argument 264 void kvmppc_core_queue_data_storage(struct kvm_vcpu *vcpu, kvmppc_core_queue_data_storage() argument 272 void kvmppc_core_queue_itlb_miss(struct kvm_vcpu *vcpu) kvmppc_core_queue_itlb_miss() argument 277 void kvmppc_core_queue_inst_storage(struct kvm_vcpu *vcpu, ulong esr_flags) kvmppc_core_queue_inst_storage() argument 283 static void kvmppc_core_queue_alignment(struct kvm_vcpu *vcpu, ulong dear_flags, kvmppc_core_queue_alignment() argument 291 void kvmppc_core_queue_program(struct kvm_vcpu *vcpu, ulong esr_flags) kvmppc_core_queue_program() argument 297 void kvmppc_core_queue_dec(struct kvm_vcpu *vcpu) kvmppc_core_queue_dec() argument 302 int kvmppc_core_pending_dec(struct kvm_vcpu *vcpu) kvmppc_core_pending_dec() argument 307 void kvmppc_core_dequeue_dec(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_dec() argument 312 void kvmppc_core_queue_external(struct kvm_vcpu *vcpu, kvmppc_core_queue_external() argument 323 void kvmppc_core_dequeue_external(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_external() argument 329 static void kvmppc_core_queue_watchdog(struct kvm_vcpu *vcpu) kvmppc_core_queue_watchdog() argument 334 static void kvmppc_core_dequeue_watchdog(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_watchdog() argument 339 void kvmppc_core_queue_debug(struct kvm_vcpu *vcpu) kvmppc_core_queue_debug() argument 344 void kvmppc_core_dequeue_debug(struct kvm_vcpu *vcpu) kvmppc_core_dequeue_debug() argument 349 static void set_guest_srr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_srr() argument 355 static void set_guest_csrr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_csrr() argument 361 static void set_guest_dsrr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_dsrr() argument 371 static void set_guest_mcsrr(struct kvm_vcpu *vcpu, unsigned long srr0, u32 srr1) set_guest_mcsrr() argument 378 static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu, kvmppc_booke_irqprio_deliver() argument 540 static unsigned long watchdog_next_timeout(struct kvm_vcpu *vcpu) watchdog_next_timeout() argument 566 static void arm_next_watchdog(struct kvm_vcpu *vcpu) arm_next_watchdog() argument 593 struct kvm_vcpu *vcpu = (struct kvm_vcpu *)data; kvmppc_watchdog_func() local 639 static void update_timer_ints(struct kvm_vcpu *vcpu) update_timer_ints() argument 652 static void kvmppc_core_check_exceptions(struct kvm_vcpu *vcpu) kvmppc_core_check_exceptions() argument 672 int kvmppc_core_prepare_to_enter(struct kvm_vcpu *vcpu) kvmppc_core_prepare_to_enter() argument 697 int kvmppc_core_check_requests(struct kvm_vcpu *vcpu) kvmppc_core_check_requests() argument 723 int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) kvmppc_vcpu_run() argument 793 static int emulation_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) emulation_exit() argument 827 static int kvmppc_handle_debug(struct kvm_run *run, struct kvm_vcpu *vcpu) kvmppc_handle_debug() argument 900 static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, kvmppc_restart_interrupt() argument 946 static int kvmppc_resume_inst_load(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_resume_inst_load() argument 973 int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, kvmppc_handle_exit() argument 1357 static void kvmppc_set_tsr(struct kvm_vcpu *vcpu, u32 new_tsr) kvmppc_set_tsr() argument 1370 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument 1399 int kvmppc_subarch_vcpu_init(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_init() argument 1414 void kvmppc_subarch_vcpu_uninit(struct kvm_vcpu *vcpu) kvmppc_subarch_vcpu_uninit() argument 1419 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument 1447 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument 1475 static void get_sregs_base(struct kvm_vcpu *vcpu, get_sregs_base() argument 1494 static int set_sregs_base(struct kvm_vcpu *vcpu, set_sregs_base() argument 1519 static void get_sregs_arch206(struct kvm_vcpu *vcpu, get_sregs_arch206() argument 1531 static int set_sregs_arch206(struct kvm_vcpu *vcpu, set_sregs_arch206() argument 1548 int kvmppc_get_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) kvmppc_get_sregs_ivor() argument 1571 int kvmppc_set_sregs_ivor(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) kvmppc_set_sregs_ivor() argument 1596 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument 1606 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument 1625 int kvmppc_get_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_get_one_reg() argument 1681 int kvmppc_set_one_reg(struct kvm_vcpu *vcpu, u64 id, kvmppc_set_one_reg() argument 1750 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument 1755 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument 1760 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument 1802 void kvmppc_set_epcr(struct kvm_vcpu *vcpu, u32 new_epcr) kvmppc_set_epcr() argument 1814 void kvmppc_set_tcr(struct kvm_vcpu *vcpu, u32 new_tcr) kvmppc_set_tcr() argument 1821 void kvmppc_set_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits) kvmppc_set_tsr_bits() argument 1829 void kvmppc_clr_tsr_bits(struct kvm_vcpu *vcpu, u32 tsr_bits) kvmppc_clr_tsr_bits() argument 1843 void kvmppc_decrementer_func(struct kvm_vcpu *vcpu) kvmppc_decrementer_func() argument 1908 void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, bool set) kvm_guest_protect_msr() argument 1931 int kvmppc_xlate(struct kvm_vcpu *vcpu, ulong eaddr, enum xlate_instdata xlid, kvmppc_xlate() argument 1982 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument 2053 void kvmppc_booke_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvmppc_booke_vcpu_load() argument 2059 void kvmppc_booke_vcpu_put(struct kvm_vcpu *vcpu) kvmppc_booke_vcpu_put() argument 2068 void kvmppc_mmu_destroy(struct kvm_vcpu *vcpu) kvmppc_mmu_destroy() argument 2083 void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_free() argument 2093 void kvmppc_core_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvmppc_core_vcpu_load() argument 2098 void kvmppc_core_vcpu_put(struct kvm_vcpu *vcpu) kvmppc_core_vcpu_put() argument
|
H A D | mpic.c | 117 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.1.27/arch/arm64/kvm/ |
H A D | regmap.c | 112 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 D | sys_regs_generic_v8.c | 33 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 D | emulate.c | 55 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 D | reset.c | 82 int kvm_reset_vcpu(struct kvm_vcpu *vcpu) kvm_reset_vcpu() argument
|
H A D | handle_exit.c | 36 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 101 static exit_handle_fn kvm_get_exit_handler(struct kvm_vcpu *vcpu) kvm_get_exit_handler() argument 120 int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, handle_exit() argument
|
H A D | inject_fault.c | 32 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 D | sys_regs.h | 67 static inline bool ignore_write(struct kvm_vcpu *vcpu, ignore_write() argument 73 static inline bool read_zero(struct kvm_vcpu *vcpu, read_zero() argument 80 static inline bool write_to_read_only(struct kvm_vcpu *vcpu, write_to_read_only() argument 89 static inline bool read_from_write_only(struct kvm_vcpu *vcpu, read_from_write_only() argument 99 static inline void reset_unknown(struct kvm_vcpu *vcpu, reset_unknown() argument 107 static inline void reset_val(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) reset_val() argument
|
H A D | guest.c | 39 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 74 static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) set_core_reg() argument 122 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument 127 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument 154 static int copy_timer_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) copy_timer_indices() argument 168 static int set_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) set_timer_reg() argument 181 static int get_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) get_timer_reg() argument 195 unsigned long kvm_arm_num_regs(struct kvm_vcpu *vcpu) kvm_arm_num_regs() argument 206 int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_reg_indices() argument 226 int kvm_arm_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_get_reg() argument 242 int kvm_arm_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_set_reg() argument 258 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument 264 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument 319 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument 324 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument 329 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument
|
H A D | sys_regs.c | 78 static bool access_dcsw(struct kvm_vcpu *vcpu, access_dcsw() argument 94 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 137 static bool trap_raz_wi(struct kvm_vcpu *vcpu, trap_raz_wi() argument 147 static bool trap_oslsr_el1(struct kvm_vcpu *vcpu, trap_oslsr_el1() argument 159 static bool trap_dbgauthstatus_el1(struct kvm_vcpu *vcpu, trap_dbgauthstatus_el1() argument 200 static bool trap_debug_regs(struct kvm_vcpu *vcpu, trap_debug_regs() argument 214 static void reset_amair_el1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) reset_amair_el1() argument 222 static void reset_mpidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) reset_mpidr() argument 486 static bool trap_dbgidr(struct kvm_vcpu *vcpu, trap_dbgidr() argument 505 static bool trap_debug32(struct kvm_vcpu *vcpu, trap_debug32() argument 745 int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_load_store() argument 761 static int emulate_cp(struct kvm_vcpu *vcpu, emulate_cp() argument 795 static void unhandled_cp_access(struct kvm_vcpu *vcpu, unhandled_cp_access() argument 825 static int kvm_handle_cp_64(struct kvm_vcpu *vcpu, kvm_handle_cp_64() argument 881 static int kvm_handle_cp_32(struct kvm_vcpu *vcpu, kvm_handle_cp_32() argument 909 int kvm_handle_cp15_64(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp15_64() argument 920 int kvm_handle_cp15_32(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp15_32() argument 931 int kvm_handle_cp14_64(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_64() argument 938 int kvm_handle_cp14_32(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_cp14_32() argument 945 static int emulate_sys_reg(struct kvm_vcpu *vcpu, emulate_sys_reg() argument 982 static void reset_sys_reg_descs(struct kvm_vcpu *vcpu, reset_sys_reg_descs() argument 997 int kvm_handle_sys_reg(struct kvm_vcpu *vcpu, struct kvm_run *run) kvm_handle_sys_reg() argument 1049 static const struct sys_reg_desc *index_to_sys_reg_desc(struct kvm_vcpu *vcpu, index_to_sys_reg_desc() argument 1291 int kvm_arm_sys_reg_get_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_sys_reg_get_reg() argument 1309 int kvm_arm_sys_reg_set_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) kvm_arm_sys_reg_set_reg() argument 1378 static int walk_sys_regs(struct kvm_vcpu *vcpu, u64 __user *uind) walk_sys_regs() argument 1420 unsigned long kvm_arm_num_sys_reg_descs(struct kvm_vcpu *vcpu) kvm_arm_num_sys_reg_descs() argument 1427 int kvm_arm_copy_sys_reg_indices(struct kvm_vcpu *vcpu, u64 __user *uindices) kvm_arm_copy_sys_reg_indices() argument 1504 void kvm_reset_sys_regs(struct kvm_vcpu *vcpu) kvm_reset_sys_regs() argument
|
/linux-4.1.27/arch/x86/xen/ |
H A D | irq.c | 28 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 D | time.c | 99 bool xen_vcpu_stolen(int vcpu) xen_vcpu_stolen() argument
|
/linux-4.1.27/include/kvm/ |
H A D | iodev.h | 54 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.1.27/arch/powerpc/include/asm/ |
H A D | kvm_book3s_32.h | 23 static inline struct kvmppc_book3s_shadow_vcpu *svcpu_get(struct kvm_vcpu *vcpu) svcpu_get() argument
|
H A D | kvm_booke.h | 37 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, u32 val) kvmppc_set_xer() argument 62 static inline u32 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 D | fsl_hcalls.h | 565 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 D | kvm_book3s_64.h | 24 static inline struct kvmppc_book3s_shadow_vcpu *svcpu_get(struct kvm_vcpu *vcpu) svcpu_get() argument
|
H A D | kvm_book3s.h | 194 static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu) to_book3s() argument 208 static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val) kvmppc_set_gpr() argument 213 static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) kvmppc_get_gpr() argument 218 static inline void kvmppc_set_cr(struct kvm_vcpu *vcpu, u32 val) kvmppc_set_cr() argument 223 static inline u32 kvmppc_get_cr(struct kvm_vcpu *vcpu) kvmppc_get_cr() argument 228 static inline void kvmppc_set_xer(struct kvm_vcpu *vcpu, u32 val) kvmppc_set_xer() argument 233 static inline u32 kvmppc_get_xer(struct kvm_vcpu *vcpu) kvmppc_get_xer() argument 238 static inline void kvmppc_set_ctr(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_ctr() argument 243 static inline ulong kvmppc_get_ctr(struct kvm_vcpu *vcpu) kvmppc_get_ctr() argument 248 static inline void kvmppc_set_lr(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_lr() argument 253 static inline ulong kvmppc_get_lr(struct kvm_vcpu *vcpu) kvmppc_get_lr() argument 258 static inline void kvmppc_set_pc(struct kvm_vcpu *vcpu, ulong val) kvmppc_set_pc() argument 263 static inline ulong kvmppc_get_pc(struct kvm_vcpu *vcpu) kvmppc_get_pc() argument 269 static inline bool kvmppc_need_byteswap(struct kvm_vcpu *vcpu) kvmppc_need_byteswap() argument 274 static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu) kvmppc_get_fault_dar() argument 285 static inline bool kvmppc_supports_magic_page(struct kvm_vcpu *vcpu) kvmppc_supports_magic_page() argument
|
H A D | kvm_ppc.h | 277 static inline int kvmppc_get_last_inst(struct kvm_vcpu *vcpu, kvmppc_get_last_inst() argument 400 static inline void kvmppc_fast_vcpu_kick(struct kvm_vcpu *vcpu) kvmppc_fast_vcpu_kick() argument 424 static inline void kvmppc_fast_vcpu_kick(struct kvm_vcpu *vcpu) kvmppc_fast_vcpu_kick() argument 434 static inline int kvmppc_xics_enabled(struct kvm_vcpu *vcpu) kvmppc_xics_enabled() argument 447 static inline int kvmppc_xics_enabled(struct kvm_vcpu *vcpu) kvmppc_xics_enabled() argument 449 static inline void kvmppc_xics_free_icp(struct kvm_vcpu *vcpu) { } kvmppc_xics_create_icp() argument 450 static inline int kvmppc_xics_create_icp(struct kvm_vcpu *vcpu, kvmppc_xics_create_icp() argument 456 static inline int kvmppc_xics_hcall(struct kvm_vcpu *vcpu, u32 cmd) kvmppc_xics_hcall() argument 460 static inline unsigned long kvmppc_get_epr(struct kvm_vcpu *vcpu) kvmppc_get_epr() argument 471 static inline void kvmppc_set_epr(struct kvm_vcpu *vcpu, u32 epr) kvmppc_set_epr() argument 489 static inline void kvmppc_mpic_set_epr(struct kvm_vcpu *vcpu) kvmppc_mpic_set_epr() argument 538 static inline bool kvmppc_shared_big_endian(struct kvm_vcpu *vcpu) kvmppc_shared_big_endian() argument 611 static inline void kvmppc_set_msr_fast(struct kvm_vcpu *vcpu, u64 val) kvmppc_set_msr_fast() argument 625 static inline u32 kvmppc_get_sr(struct kvm_vcpu *vcpu, int nr) kvmppc_get_sr() argument 633 static inline void kvmppc_set_sr(struct kvm_vcpu *vcpu, int nr, u32 val) kvmppc_set_sr() argument 663 static inline ulong kvmppc_get_ea_indexed(struct kvm_vcpu *vcpu, int ra, int rb) kvmppc_get_ea_indexed() argument 493 kvmppc_mpic_connect_vcpu(struct kvm_device *dev, struct kvm_vcpu *vcpu, u32 cpu) kvmppc_mpic_connect_vcpu() argument 499 kvmppc_mpic_disconnect_vcpu(struct openpic *opp, struct kvm_vcpu *vcpu) kvmppc_mpic_disconnect_vcpu() argument
|
H A D | kvm_host.h | 703 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} kvm_arch_exit() argument
|
/linux-4.1.27/virt/kvm/ |
H A D | async_pf.c | 31 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 104 void kvm_clear_async_pf_completion_queue(struct kvm_vcpu *vcpu) kvm_clear_async_pf_completion_queue() argument 137 void kvm_check_async_pf_completion(struct kvm_vcpu *vcpu) kvm_check_async_pf_completion() argument 158 int kvm_setup_async_pf(struct kvm_vcpu *vcpu, gva_t gva, unsigned long hva, kvm_setup_async_pf() argument 205 int kvm_async_pf_wakeup_all(struct kvm_vcpu *vcpu) kvm_async_pf_wakeup_all() argument
|
H A D | coalesced_mmio.c | 63 static int coalesced_mmio_write(struct kvm_vcpu *vcpu, coalesced_mmio_write() argument
|
H A D | eventfd.c | 718 ioeventfd_write(struct kvm_vcpu *vcpu, struct kvm_io_device *this, gpa_t addr, ioeventfd_write() argument
|
H A D | kvm_main.c | 125 int vcpu_load(struct kvm_vcpu *vcpu) vcpu_load() argument 138 void vcpu_put(struct kvm_vcpu *vcpu) vcpu_put() argument 156 struct kvm_vcpu *vcpu; kvm_make_all_cpus_request() local 211 int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) kvm_vcpu_init() argument 247 void kvm_vcpu_uninit(struct kvm_vcpu *vcpu) kvm_vcpu_uninit() argument 1763 static int kvm_vcpu_check_block(struct kvm_vcpu *vcpu) kvm_vcpu_check_block() argument 1780 void kvm_vcpu_block(struct kvm_vcpu *vcpu) kvm_vcpu_block() argument 1825 void kvm_vcpu_kick(struct kvm_vcpu *vcpu) kvm_vcpu_kick() argument 1888 static bool kvm_vcpu_eligible_for_directed_yield(struct kvm_vcpu *vcpu) kvm_vcpu_eligible_for_directed_yield() argument 1908 struct kvm_vcpu *vcpu; kvm_vcpu_on_spin() local 1959 struct kvm_vcpu *vcpu = vma->vm_file->private_data; kvm_vcpu_fault() local 1991 struct kvm_vcpu *vcpu = filp->private_data; kvm_vcpu_release() local 2010 static int create_vcpu_fd(struct kvm_vcpu *vcpu) create_vcpu_fd() argument 2021 struct kvm_vcpu *vcpu, *v; kvm_vm_ioctl_create_vcpu() local 2077 static int kvm_vcpu_ioctl_set_sigmask(struct kvm_vcpu *vcpu, sigset_t *sigset) kvm_vcpu_ioctl_set_sigmask() argument 2091 struct kvm_vcpu *vcpu = filp->private_data; kvm_vcpu_ioctl() local 2295 struct kvm_vcpu *vcpu = filp->private_data; kvm_vcpu_compat_ioctl() local 3005 static int __kvm_io_bus_write(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, __kvm_io_bus_write() argument 3026 int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_write() argument 3044 int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, kvm_io_bus_write_cookie() argument 3071 static int __kvm_io_bus_read(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, __kvm_io_bus_read() argument 3093 int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, kvm_io_bus_read() argument 3193 struct kvm_vcpu *vcpu; vcpu_stat_get() local 3275 struct kvm_vcpu *vcpu = preempt_notifier_to_vcpu(pn); kvm_sched_in() local 3288 struct kvm_vcpu *vcpu = preempt_notifier_to_vcpu(pn); kvm_sched_out() local
|
/linux-4.1.27/arch/s390/kvm/ |
H A D | gaccess.h | 30 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 D | diag.c | 23 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 141 static int __diag_time_slice_end(struct kvm_vcpu *vcpu) __diag_time_slice_end() argument 149 static int __diag_time_slice_end_directed(struct kvm_vcpu *vcpu) __diag_time_slice_end_directed() argument 172 static int __diag_ipl_functions(struct kvm_vcpu *vcpu) __diag_ipl_functions() argument 201 static int __diag_virtio_hypercall(struct kvm_vcpu *vcpu) __diag_virtio_hypercall() argument 231 int kvm_s390_handle_diag(struct kvm_vcpu *vcpu) kvm_s390_handle_diag() argument
|
H A D | intercept.c | 41 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 244 static int handle_instruction_and_prog(struct kvm_vcpu *vcpu) handle_instruction_and_prog() argument 267 static int handle_external_interrupt(struct kvm_vcpu *vcpu) handle_external_interrupt() argument 314 static int handle_mvpg_pei(struct kvm_vcpu *vcpu) handle_mvpg_pei() argument 344 static int handle_partial_execution(struct kvm_vcpu *vcpu) handle_partial_execution() argument 368 int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu) kvm_handle_sie_intercept() argument
|
H A D | guestdbg.c | 62 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 476 void kvm_s390_handle_per_event(struct kvm_vcpu *vcpu) kvm_s390_handle_per_event() argument
|
H A D | kvm-s390.h | 44 static inline int is_vcpu_stopped(struct kvm_vcpu *vcpu) is_vcpu_stopped() argument 61 static inline u32 kvm_s390_get_prefix(struct kvm_vcpu *vcpu) kvm_s390_get_prefix() argument 66 static inline void kvm_s390_set_prefix(struct kvm_vcpu *vcpu, u32 prefix) kvm_s390_set_prefix() argument 75 static inline u64 kvm_s390_get_base_disp_s(struct kvm_vcpu *vcpu, ar_t *ar) kvm_s390_get_base_disp_s() argument 86 static inline void kvm_s390_get_base_disp_sse(struct kvm_vcpu *vcpu, kvm_s390_get_base_disp_sse() argument 104 static inline void kvm_s390_get_regs_rre(struct kvm_vcpu *vcpu, int *r1, int *r2) kvm_s390_get_regs_rre() argument 112 static inline u64 kvm_s390_get_base_disp_rsy(struct kvm_vcpu *vcpu, ar_t *ar) kvm_s390_get_base_disp_rsy() argument 127 static inline u64 kvm_s390_get_base_disp_rs(struct kvm_vcpu *vcpu, ar_t *ar) kvm_s390_get_base_disp_rs() argument 139 static inline void kvm_s390_set_psw_cc(struct kvm_vcpu *vcpu, unsigned long cc) kvm_s390_set_psw_cc() argument 257 static inline int kvm_s390_inject_prog_cond(struct kvm_vcpu *vcpu, int rc) kvm_s390_inject_prog_cond() argument
|
H A D | sigp.c | 23 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 216 static int __sigp_store_status_at_addr(struct kvm_vcpu *vcpu, __sigp_store_status_at_addr() argument 240 static int __sigp_sense_running(struct kvm_vcpu *vcpu, __sigp_sense_running() argument 263 static int __prepare_sigp_re_start(struct kvm_vcpu *vcpu, __prepare_sigp_re_start() argument 279 static int __prepare_sigp_cpu_reset(struct kvm_vcpu *vcpu, __prepare_sigp_cpu_reset() argument 286 static int __prepare_sigp_unknown(struct kvm_vcpu *vcpu, __prepare_sigp_unknown() argument 293 static int handle_sigp_dst(struct kvm_vcpu *vcpu, u8 order_code, handle_sigp_dst() argument 370 static int handle_sigp_order_in_user_space(struct kvm_vcpu *vcpu, u8 order_code) handle_sigp_order_in_user_space() argument 420 int kvm_s390_handle_sigp(struct kvm_vcpu *vcpu) kvm_s390_handle_sigp() argument 470 int kvm_s390_handle_sigp_pei(struct kvm_vcpu *vcpu) kvm_s390_handle_sigp_pei() argument
|
H A D | priv.c | 34 static int handle_set_clock(struct kvm_vcpu *vcpu) handle_set_clock() argument 67 static int handle_set_prefix(struct kvm_vcpu *vcpu) handle_set_prefix() argument 107 static int handle_store_prefix(struct kvm_vcpu *vcpu) handle_store_prefix() argument 137 static int handle_store_cpu_address(struct kvm_vcpu *vcpu) handle_store_cpu_address() argument 163 static int __skey_check_enable(struct kvm_vcpu *vcpu) __skey_check_enable() argument 176 static int handle_skey(struct kvm_vcpu *vcpu) handle_skey() argument 192 static int handle_ipte_interlock(struct kvm_vcpu *vcpu) handle_ipte_interlock() argument 203 static int handle_test_block(struct kvm_vcpu *vcpu) handle_test_block() argument 231 static int handle_tpi(struct kvm_vcpu *vcpu) handle_tpi() argument 295 static int handle_tsch(struct kvm_vcpu *vcpu) handle_tsch() argument 326 static int handle_io_inst(struct kvm_vcpu *vcpu) handle_io_inst() argument 354 static int handle_stfl(struct kvm_vcpu *vcpu) handle_stfl() argument 400 int kvm_s390_handle_lpsw(struct kvm_vcpu *vcpu) kvm_s390_handle_lpsw() argument 428 static int handle_lpswe(struct kvm_vcpu *vcpu) handle_lpswe() argument 450 static int handle_stidp(struct kvm_vcpu *vcpu) handle_stidp() argument 475 static void handle_stsi_3_2_2(struct kvm_vcpu *vcpu, struct sysinfo_3_2_2 *mem) handle_stsi_3_2_2() argument 502 static void insert_stsi_usr_data(struct kvm_vcpu *vcpu, u64 addr, ar_t ar, insert_stsi_usr_data() argument 513 static int handle_stsi(struct kvm_vcpu *vcpu) handle_stsi() argument 622 int kvm_s390_handle_b2(struct kvm_vcpu *vcpu) kvm_s390_handle_b2() argument 638 static int handle_epsw(struct kvm_vcpu *vcpu) handle_epsw() argument 665 static int handle_pfmf(struct kvm_vcpu *vcpu) handle_pfmf() argument 749 static int handle_essa(struct kvm_vcpu *vcpu) handle_essa() argument 797 int kvm_s390_handle_b9(struct kvm_vcpu *vcpu) kvm_s390_handle_b9() argument 809 int kvm_s390_handle_lctl(struct kvm_vcpu *vcpu) kvm_s390_handle_lctl() argument 848 int kvm_s390_handle_stctl(struct kvm_vcpu *vcpu) kvm_s390_handle_stctl() argument 882 static int handle_lctlg(struct kvm_vcpu *vcpu) handle_lctlg() argument 920 static int handle_stctg(struct kvm_vcpu *vcpu) handle_stctg() argument 959 int kvm_s390_handle_eb(struct kvm_vcpu *vcpu) kvm_s390_handle_eb() argument 969 static int handle_tprot(struct kvm_vcpu *vcpu) handle_tprot() argument 1023 int kvm_s390_handle_e5(struct kvm_vcpu *vcpu) kvm_s390_handle_e5() argument 1031 static int handle_sckpf(struct kvm_vcpu *vcpu) handle_sckpf() argument 1052 int kvm_s390_handle_01(struct kvm_vcpu *vcpu) kvm_s390_handle_01() argument
|
H A D | gaccess.c | 260 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 D | interrupt.c | 38 int psw_extint_disabled(struct kvm_vcpu *vcpu) psw_extint_disabled() argument 43 static int psw_ioint_disabled(struct kvm_vcpu *vcpu) psw_ioint_disabled() argument 48 static int psw_mchk_disabled(struct kvm_vcpu *vcpu) psw_mchk_disabled() argument 53 static int psw_interrupts_disabled(struct kvm_vcpu *vcpu) psw_interrupts_disabled() argument 62 static int ckc_interrupts_enabled(struct kvm_vcpu *vcpu) ckc_interrupts_enabled() argument 73 static int ckc_irq_pending(struct kvm_vcpu *vcpu) ckc_irq_pending() argument 81 static int cpu_timer_interrupts_enabled(struct kvm_vcpu *vcpu) cpu_timer_interrupts_enabled() argument 87 static int cpu_timer_irq_pending(struct kvm_vcpu *vcpu) cpu_timer_irq_pending() argument 109 static inline unsigned long pending_floating_irqs(struct kvm_vcpu *vcpu) pending_floating_irqs() argument 114 static inline unsigned long pending_local_irqs(struct kvm_vcpu *vcpu) pending_local_irqs() argument 119 static unsigned long disable_iscs(struct kvm_vcpu *vcpu, disable_iscs() argument 131 static unsigned long deliverable_irqs(struct kvm_vcpu *vcpu) deliverable_irqs() argument 169 static void __set_cpu_idle(struct kvm_vcpu *vcpu) __set_cpu_idle() argument 175 static void __unset_cpu_idle(struct kvm_vcpu *vcpu) __unset_cpu_idle() argument 181 static void __reset_intercept_indicators(struct kvm_vcpu *vcpu) __reset_intercept_indicators() argument 195 static void __set_cpuflag(struct kvm_vcpu *vcpu, u32 flag) __set_cpuflag() argument 200 static void set_intercept_indicators_io(struct kvm_vcpu *vcpu) set_intercept_indicators_io() argument 210 static void set_intercept_indicators_ext(struct kvm_vcpu *vcpu) set_intercept_indicators_ext() argument 220 static void set_intercept_indicators_mchk(struct kvm_vcpu *vcpu) set_intercept_indicators_mchk() argument 230 static void set_intercept_indicators_stop(struct kvm_vcpu *vcpu) set_intercept_indicators_stop() argument 237 static void set_intercept_indicators(struct kvm_vcpu *vcpu) set_intercept_indicators() argument 245 static u16 get_ilc(struct kvm_vcpu *vcpu) get_ilc() argument 262 static int __must_check __deliver_cpu_timer(struct kvm_vcpu *vcpu) __deliver_cpu_timer() argument 281 static int __must_check __deliver_ckc(struct kvm_vcpu *vcpu) __deliver_ckc() argument 300 static int __must_check __deliver_pfault_init(struct kvm_vcpu *vcpu) __deliver_pfault_init() argument 328 static int __must_check __deliver_machine_check(struct kvm_vcpu *vcpu) __deliver_machine_check() argument 399 static int __must_check __deliver_restart(struct kvm_vcpu *vcpu) __deliver_restart() argument 417 static int __must_check __deliver_set_prefix(struct kvm_vcpu *vcpu) __deliver_set_prefix() argument 438 static int __must_check __deliver_emergency_signal(struct kvm_vcpu *vcpu) __deliver_emergency_signal() argument 466 static int __must_check __deliver_external_call(struct kvm_vcpu *vcpu) __deliver_external_call() argument 494 static int __must_check __deliver_prog(struct kvm_vcpu *vcpu) __deliver_prog() argument 607 static int __must_check __deliver_service(struct kvm_vcpu *vcpu) __deliver_service() argument 641 static int __must_check __deliver_pfault_done(struct kvm_vcpu *vcpu) __deliver_pfault_done() argument 680 static int __must_check __deliver_virtio(struct kvm_vcpu *vcpu) __deliver_virtio() argument 726 static int __must_check __deliver_io(struct kvm_vcpu *vcpu, __deliver_io() argument 797 int kvm_s390_ext_call_pending(struct kvm_vcpu *vcpu) kvm_s390_ext_call_pending() argument 809 int kvm_s390_vcpu_has_irq(struct kvm_vcpu *vcpu, int exclude_stop) kvm_s390_vcpu_has_irq() argument 830 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) kvm_cpu_has_pending_timer() argument 835 int kvm_s390_handle_wait(struct kvm_vcpu *vcpu) kvm_s390_handle_wait() argument 876 void kvm_s390_vcpu_wakeup(struct kvm_vcpu *vcpu) kvm_s390_vcpu_wakeup() argument 891 struct kvm_vcpu *vcpu; kvm_s390_idle_wakeup() local 909 void kvm_s390_clear_local_irqs(struct kvm_vcpu *vcpu) kvm_s390_clear_local_irqs() argument 924 int __must_check kvm_s390_deliver_pending_interrupts(struct kvm_vcpu *vcpu) kvm_s390_deliver_pending_interrupts() argument 970 static int __inject_prog(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_prog() argument 979 int kvm_s390_inject_program_int(struct kvm_vcpu *vcpu, u16 code) kvm_s390_inject_program_int() argument 995 int kvm_s390_inject_prog_irq(struct kvm_vcpu *vcpu, kvm_s390_inject_prog_irq() argument 1014 static int __inject_pfault_init(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_pfault_init() argument 1030 static int __inject_extcall_sigpif(struct kvm_vcpu *vcpu, uint16_t src_id) __inject_extcall_sigpif() argument 1045 static int __inject_extcall(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_extcall() argument 1070 static int __inject_set_prefix(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_set_prefix() argument 1089 static int __inject_sigp_stop(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_sigp_stop() argument 1114 static int __inject_sigp_restart(struct kvm_vcpu *vcpu, __inject_sigp_restart() argument 1126 static int __inject_sigp_emergency(struct kvm_vcpu *vcpu, __inject_sigp_emergency() argument 1146 static int __inject_mchk(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) __inject_mchk() argument 1177 static int __inject_ckc(struct kvm_vcpu *vcpu) __inject_ckc() argument 1190 static int __inject_cpu_timer(struct kvm_vcpu *vcpu) __inject_cpu_timer() argument 1503 int kvm_s390_is_stop_irq_pending(struct kvm_vcpu *vcpu) kvm_s390_is_stop_irq_pending() argument 1510 void kvm_s390_clear_stop_irq(struct kvm_vcpu *vcpu) kvm_s390_clear_stop_irq() argument 1520 static int do_inject_vcpu(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) do_inject_vcpu() argument 1567 int kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu, struct kvm_s390_irq *irq) kvm_s390_inject_vcpu() argument 1953 struct kvm_vcpu *vcpu; flic_set_attr() local 2133 int kvm_s390_set_irq_state(struct kvm_vcpu *vcpu, void __user *irqstate, int len) kvm_s390_set_irq_state() argument 2215 int kvm_s390_get_irq_state(struct kvm_vcpu *vcpu, __u8 __user *buf, int len) kvm_s390_get_irq_state() argument
|
H A D | kvm-s390.c | 388 struct kvm_vcpu *vcpu; kvm_s390_vm_set_crypto() local 1116 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_arch_vcpu_destroy() argument 1145 struct kvm_vcpu *vcpu; kvm_free_vcpus() local 1172 static int __kvm_ucontrol_vcpu_init(struct kvm_vcpu *vcpu) __kvm_ucontrol_vcpu_init() argument 1182 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) kvm_arch_vcpu_init() argument 1201 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) kvm_arch_vcpu_load() argument 1221 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) kvm_arch_vcpu_put() argument 1241 static void kvm_s390_vcpu_initial_reset(struct kvm_vcpu *vcpu) kvm_s390_vcpu_initial_reset() argument 1264 void kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) kvm_arch_vcpu_postcreate() argument 1273 static void kvm_s390_vcpu_crypto_setup(struct kvm_vcpu *vcpu) kvm_s390_vcpu_crypto_setup() argument 1288 void kvm_s390_vcpu_unsetup_cmma(struct kvm_vcpu *vcpu) kvm_s390_vcpu_unsetup_cmma() argument 1294 int kvm_s390_vcpu_setup_cmma(struct kvm_vcpu *vcpu) kvm_s390_vcpu_setup_cmma() argument 1305 static void kvm_s390_vcpu_setup_model(struct kvm_vcpu *vcpu) kvm_s390_vcpu_setup_model() argument 1314 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) kvm_arch_vcpu_setup() argument 1356 struct kvm_vcpu *vcpu; kvm_arch_vcpu_create() local 1413 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) kvm_arch_vcpu_runnable() argument 1418 void s390_vcpu_block(struct kvm_vcpu *vcpu) s390_vcpu_block() argument 1423 void s390_vcpu_unblock(struct kvm_vcpu *vcpu) s390_vcpu_unblock() argument 1432 void exit_sie(struct kvm_vcpu *vcpu) exit_sie() argument 1440 void exit_sie_sync(struct kvm_vcpu *vcpu) exit_sie_sync() argument 1450 struct kvm_vcpu *vcpu; kvm_gmap_notifier() local 1462 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) kvm_arch_vcpu_should_kick() argument 1469 static int kvm_arch_vcpu_ioctl_get_one_reg(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_one_reg() argument 1518 static int kvm_arch_vcpu_ioctl_set_one_reg(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_one_reg() argument 1569 static int kvm_arch_vcpu_ioctl_initial_reset(struct kvm_vcpu *vcpu) kvm_arch_vcpu_ioctl_initial_reset() argument 1575 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_set_regs() argument 1581 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvm_arch_vcpu_ioctl_get_regs() argument 1587 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_sregs() argument 1596 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_sregs() argument 1604 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_set_fpu() argument 1615 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) kvm_arch_vcpu_ioctl_get_fpu() argument 1622 static int kvm_arch_vcpu_ioctl_set_initial_psw(struct kvm_vcpu *vcpu, psw_t psw) kvm_arch_vcpu_ioctl_set_initial_psw() argument 1635 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_translate() argument 1645 int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_guest_debug() argument 1677 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_get_mpstate() argument 1685 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, kvm_arch_vcpu_ioctl_set_mpstate() argument 1722 static bool ibs_enabled(struct kvm_vcpu *vcpu) ibs_enabled() argument 1727 static int kvm_s390_handle_requests(struct kvm_vcpu *vcpu) kvm_s390_handle_requests() argument 1787 long kvm_arch_fault_in_page(struct kvm_vcpu *vcpu, gpa_t gpa, int writable) kvm_arch_fault_in_page() argument 1793 static void __kvm_inject_pfault_token(struct kvm_vcpu *vcpu, bool start_token, __kvm_inject_pfault_token() argument 1810 void kvm_arch_async_page_not_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_not_present() argument 1817 void kvm_arch_async_page_present(struct kvm_vcpu *vcpu, kvm_arch_async_page_present() argument 1824 void kvm_arch_async_page_ready(struct kvm_vcpu *vcpu, kvm_arch_async_page_ready() argument 1830 bool kvm_arch_can_inject_async_page_present(struct kvm_vcpu *vcpu) kvm_arch_can_inject_async_page_present() argument 1839 static int kvm_arch_setup_async_pf(struct kvm_vcpu *vcpu) kvm_arch_setup_async_pf() argument 1868 static int vcpu_pre_run(struct kvm_vcpu *vcpu) vcpu_pre_run() argument 1910 static int vcpu_post_run_fault_in_sie(struct kvm_vcpu *vcpu) vcpu_post_run_fault_in_sie() argument 1935 static int vcpu_post_run(struct kvm_vcpu *vcpu, int exit_reason) vcpu_post_run() argument 1982 static int __vcpu_run(struct kvm_vcpu *vcpu) __vcpu_run() argument 2017 static void sync_regs(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) sync_regs() argument 2045 static void store_regs(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) store_regs() argument 2061 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) kvm_arch_vcpu_ioctl_run() argument 2127 int kvm_s390_store_status_unloaded(struct kvm_vcpu *vcpu, unsigned long gpa) kvm_s390_store_status_unloaded() argument 2169 int kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, unsigned long addr) kvm_s390_vcpu_store_status() argument 2186 int kvm_s390_store_adtl_status_unloaded(struct kvm_vcpu *vcpu, kvm_s390_store_adtl_status_unloaded() argument 2197 int kvm_s390_vcpu_store_adtl_status(struct kvm_vcpu *vcpu, unsigned long addr) kvm_s390_vcpu_store_adtl_status() argument 2212 static void __disable_ibs_on_vcpu(struct kvm_vcpu *vcpu) __disable_ibs_on_vcpu() argument 2222 struct kvm_vcpu *vcpu; __disable_ibs_on_all_vcpus() local 2229 static void __enable_ibs_on_vcpu(struct kvm_vcpu *vcpu) __enable_ibs_on_vcpu() argument 2236 void kvm_s390_vcpu_start(struct kvm_vcpu *vcpu) kvm_s390_vcpu_start() argument 2275 void kvm_s390_vcpu_stop(struct kvm_vcpu *vcpu) kvm_s390_vcpu_stop() argument 2313 static int kvm_vcpu_ioctl_enable_cap(struct kvm_vcpu *vcpu, kvm_vcpu_ioctl_enable_cap() argument 2336 static long kvm_s390_guest_mem_op(struct kvm_vcpu *vcpu, kvm_s390_guest_mem_op() argument 2398 struct kvm_vcpu *vcpu = filp->private_data; kvm_arch_vcpu_ioctl() local 2550 int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) kvm_arch_vcpu_fault() argument
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | kvm_emulate.h | 37 static inline void vcpu_reset_hcr(struct kvm_vcpu *vcpu) vcpu_reset_hcr() argument 42 static inline unsigned long vcpu_get_hcr(struct kvm_vcpu *vcpu) vcpu_get_hcr() argument 47 static inline void vcpu_set_hcr(struct kvm_vcpu *vcpu, unsigned long hcr) vcpu_set_hcr() argument 52 static inline bool vcpu_mode_is_32bit(struct kvm_vcpu *vcpu) vcpu_mode_is_32bit() argument 57 static inline unsigned long *vcpu_pc(struct kvm_vcpu *vcpu) vcpu_pc() argument 62 static inline unsigned long *vcpu_cpsr(struct kvm_vcpu *vcpu) vcpu_cpsr() argument 67 static inline void vcpu_set_thumb(struct kvm_vcpu *vcpu) vcpu_set_thumb() argument 72 static inline bool mode_has_spsr(struct kvm_vcpu *vcpu) mode_has_spsr() argument 78 static inline bool vcpu_mode_priv(struct kvm_vcpu *vcpu) vcpu_mode_priv() argument 84 static inline u32 kvm_vcpu_get_hsr(struct kvm_vcpu *vcpu) kvm_vcpu_get_hsr() argument 89 static inline unsigned long kvm_vcpu_get_hfar(struct kvm_vcpu *vcpu) kvm_vcpu_get_hfar() argument 94 static inline phys_addr_t kvm_vcpu_get_fault_ipa(struct kvm_vcpu *vcpu) kvm_vcpu_get_fault_ipa() argument 99 static inline unsigned long kvm_vcpu_get_hyp_pc(struct kvm_vcpu *vcpu) kvm_vcpu_get_hyp_pc() argument 104 static inline bool kvm_vcpu_dabt_isvalid(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isvalid() argument 109 static inline bool kvm_vcpu_dabt_iswrite(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iswrite() argument 114 static inline bool kvm_vcpu_dabt_issext(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_issext() argument 119 static inline int kvm_vcpu_dabt_get_rd(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_rd() argument 124 static inline bool kvm_vcpu_dabt_isextabt(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isextabt() argument 129 static inline bool kvm_vcpu_dabt_iss1tw(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iss1tw() argument 135 static inline int kvm_vcpu_dabt_get_as(struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_as() argument 151 static inline bool kvm_vcpu_trap_il_is32bit(struct kvm_vcpu *vcpu) kvm_vcpu_trap_il_is32bit() argument 156 static inline u8 kvm_vcpu_trap_get_class(struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_class() argument 161 static inline bool kvm_vcpu_trap_is_iabt(struct kvm_vcpu *vcpu) kvm_vcpu_trap_is_iabt() argument 166 static inline u8 kvm_vcpu_trap_get_fault(struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault() argument 171 static inline u8 kvm_vcpu_trap_get_fault_type(struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault_type() argument 176 static inline u32 kvm_vcpu_hvc_get_imm(struct kvm_vcpu *vcpu) kvm_vcpu_hvc_get_imm() argument 181 static inline unsigned long kvm_vcpu_get_mpidr_aff(struct kvm_vcpu *vcpu) kvm_vcpu_get_mpidr_aff() argument 186 static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu) kvm_vcpu_set_be() argument 191 static inline bool kvm_vcpu_is_be(struct kvm_vcpu *vcpu) kvm_vcpu_is_be() argument 196 static inline unsigned long vcpu_data_guest_to_host(struct kvm_vcpu *vcpu, vcpu_data_guest_to_host() argument 221 static inline unsigned long vcpu_data_host_to_guest(struct kvm_vcpu *vcpu, vcpu_data_host_to_guest() argument
|
H A D | kvm_mmu.h | 180 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 D | kvm_host.h | 236 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument 237 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} argument
|
/linux-4.1.27/virt/kvm/arm/ |
H A D | vgic-v2.c | 33 static struct vgic_lr vgic_v2_get_lr(const struct kvm_vcpu *vcpu, int lr) vgic_v2_get_lr() argument 55 static void vgic_v2_set_lr(struct kvm_vcpu *vcpu, int lr, vgic_v2_set_lr() argument 70 static void vgic_v2_sync_lr_elrsr(struct kvm_vcpu *vcpu, int lr, vgic_v2_sync_lr_elrsr() argument 79 static u64 vgic_v2_get_elrsr(const struct kvm_vcpu *vcpu) vgic_v2_get_elrsr() argument 84 static u64 vgic_v2_get_eisr(const struct kvm_vcpu *vcpu) vgic_v2_get_eisr() argument 89 static void vgic_v2_clear_eisr(struct kvm_vcpu *vcpu) vgic_v2_clear_eisr() argument 94 static u32 vgic_v2_get_interrupt_status(const struct kvm_vcpu *vcpu) vgic_v2_get_interrupt_status() argument 107 static void vgic_v2_enable_underflow(struct kvm_vcpu *vcpu) vgic_v2_enable_underflow() argument 112 static void vgic_v2_disable_underflow(struct kvm_vcpu *vcpu) vgic_v2_disable_underflow() argument 117 static void vgic_v2_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v2_get_vmcr() argument 127 static void vgic_v2_set_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v2_set_vmcr() argument 139 static void vgic_v2_enable(struct kvm_vcpu *vcpu) vgic_v2_enable() argument
|
H A D | vgic-v3.c | 47 static struct vgic_lr vgic_v3_get_lr(const struct kvm_vcpu *vcpu, int lr) vgic_v3_get_lr() argument 74 static void vgic_v3_set_lr(struct kvm_vcpu *vcpu, int lr, vgic_v3_set_lr() argument 102 static void vgic_v3_sync_lr_elrsr(struct kvm_vcpu *vcpu, int lr, vgic_v3_sync_lr_elrsr() argument 111 static u64 vgic_v3_get_elrsr(const struct kvm_vcpu *vcpu) vgic_v3_get_elrsr() argument 116 static u64 vgic_v3_get_eisr(const struct kvm_vcpu *vcpu) vgic_v3_get_eisr() argument 121 static void vgic_v3_clear_eisr(struct kvm_vcpu *vcpu) vgic_v3_clear_eisr() argument 126 static u32 vgic_v3_get_interrupt_status(const struct kvm_vcpu *vcpu) vgic_v3_get_interrupt_status() argument 139 static void vgic_v3_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v3_get_vmcr() argument 149 static void vgic_v3_enable_underflow(struct kvm_vcpu *vcpu) vgic_v3_enable_underflow() argument 154 static void vgic_v3_disable_underflow(struct kvm_vcpu *vcpu) vgic_v3_disable_underflow() argument 159 static void vgic_v3_set_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcrp) vgic_v3_set_vmcr() argument 171 static void vgic_v3_enable(struct kvm_vcpu *vcpu) vgic_v3_enable() argument
|
H A D | arch_timer.c | 62 static void kvm_timer_inject_irq(struct kvm_vcpu *vcpu) kvm_timer_inject_irq() argument 76 struct kvm_vcpu *vcpu = *(struct kvm_vcpu **)dev_id; kvm_arch_timer_handler() local 94 struct kvm_vcpu *vcpu; kvm_timer_inject_irq_work() local 114 bool kvm_timer_should_fire(struct kvm_vcpu *vcpu) kvm_timer_should_fire() argument 136 void kvm_timer_flush_hwstate(struct kvm_vcpu *vcpu) kvm_timer_flush_hwstate() argument 162 void kvm_timer_sync_hwstate(struct kvm_vcpu *vcpu) kvm_timer_sync_hwstate() argument 187 void kvm_timer_vcpu_reset(struct kvm_vcpu *vcpu, kvm_timer_vcpu_reset() argument 201 void kvm_timer_vcpu_init(struct kvm_vcpu *vcpu) kvm_timer_vcpu_init() argument 215 int kvm_arm_timer_set_reg(struct kvm_vcpu *vcpu, u64 regid, u64 value) kvm_arm_timer_set_reg() argument 235 u64 kvm_arm_timer_get_reg(struct kvm_vcpu *vcpu, u64 regid) kvm_arm_timer_get_reg() argument 333 void kvm_timer_vcpu_terminate(struct kvm_vcpu *vcpu) kvm_timer_vcpu_terminate() argument
|
H A D | vgic-v2-emul.c | 43 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 D | vgic-v3-emul.c | 52 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 95 static bool handle_mmio_typer(struct kvm_vcpu *vcpu, handle_mmio_typer() argument 110 static bool handle_mmio_iidr(struct kvm_vcpu *vcpu, handle_mmio_iidr() argument 122 static bool handle_mmio_set_enable_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_set_enable_reg_dist() argument 136 static bool handle_mmio_clear_enable_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_clear_enable_reg_dist() argument 150 static bool handle_mmio_set_pending_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_set_pending_reg_dist() argument 163 static bool handle_mmio_clear_pending_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_clear_pending_reg_dist() argument 176 static bool handle_mmio_priority_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_priority_reg_dist() argument 195 static bool handle_mmio_cfg_reg_dist(struct kvm_vcpu *vcpu, handle_mmio_cfg_reg_dist() argument 250 static bool handle_mmio_route_reg(struct kvm_vcpu *vcpu, handle_mmio_route_reg() argument 325 static bool handle_mmio_idregs(struct kvm_vcpu *vcpu, handle_mmio_idregs() argument 505 static bool handle_mmio_ctlr_redist(struct kvm_vcpu *vcpu, handle_mmio_ctlr_redist() argument 515 static bool handle_mmio_typer_redist(struct kvm_vcpu *vcpu, handle_mmio_typer_redist() argument 542 static bool handle_mmio_set_enable_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_set_enable_reg_redist() argument 553 static bool handle_mmio_clear_enable_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_clear_enable_reg_redist() argument 564 static bool handle_mmio_set_pending_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_set_pending_reg_redist() argument 574 static bool handle_mmio_clear_pending_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_clear_pending_reg_redist() argument 584 static bool handle_mmio_priority_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_priority_reg_redist() argument 598 static bool handle_mmio_cfg_reg_redist(struct kvm_vcpu *vcpu, handle_mmio_cfg_reg_redist() argument 711 static bool vgic_v3_queue_sgi(struct kvm_vcpu *vcpu, int irq) vgic_v3_queue_sgi() argument 822 static void vgic_v3_add_sgi_source(struct kvm_vcpu *vcpu, int irq, int source) vgic_v3_add_sgi_source() argument 844 static int match_mpidr(u64 sgi_aff, u16 sgi_cpu_mask, struct kvm_vcpu *vcpu) match_mpidr() argument 885 void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg) vgic_v3_dispatch_sgi() argument
|
H A D | vgic.c | 91 static void add_sgi_source(struct kvm_vcpu *vcpu, int irq, int source) add_sgi_source() argument 96 static bool queue_sgi(struct kvm_vcpu *vcpu, int irq) queue_sgi() argument 246 static bool vgic_irq_is_edge(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_edge() argument 255 static int vgic_irq_is_enabled(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_enabled() argument 262 static int vgic_irq_is_queued(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_queued() argument 269 static int vgic_irq_is_active(struct kvm_vcpu *vcpu, int irq) vgic_irq_is_active() argument 276 static void vgic_irq_set_queued(struct kvm_vcpu *vcpu, int irq) vgic_irq_set_queued() argument 283 static void vgic_irq_clear_queued(struct kvm_vcpu *vcpu, int irq) vgic_irq_clear_queued() argument 290 static void vgic_irq_set_active(struct kvm_vcpu *vcpu, int irq) vgic_irq_set_active() argument 297 static void vgic_irq_clear_active(struct kvm_vcpu *vcpu, int irq) vgic_irq_clear_active() argument 304 static int vgic_dist_irq_get_level(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_get_level() argument 311 static void vgic_dist_irq_set_level(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_set_level() argument 318 static void vgic_dist_irq_clear_level(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_clear_level() argument 325 static int vgic_dist_irq_soft_pend(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_soft_pend() argument 332 static void vgic_dist_irq_clear_soft_pend(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_clear_soft_pend() argument 339 static int vgic_dist_irq_is_pending(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_is_pending() argument 346 void vgic_dist_irq_set_pending(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_set_pending() argument 353 void vgic_dist_irq_clear_pending(struct kvm_vcpu *vcpu, int irq) vgic_dist_irq_clear_pending() argument 360 static void vgic_cpu_irq_set(struct kvm_vcpu *vcpu, int irq) vgic_cpu_irq_set() argument 369 void vgic_cpu_irq_clear(struct kvm_vcpu *vcpu, int irq) vgic_cpu_irq_clear() argument 378 static bool vgic_can_sample_irq(struct kvm_vcpu *vcpu, int irq) vgic_can_sample_irq() argument 444 bool handle_mmio_raz_wi(struct kvm_vcpu *vcpu, struct kvm_exit_mmio *mmio, handle_mmio_raz_wi() argument 660 void vgic_unqueue_irqs(struct kvm_vcpu *vcpu) vgic_unqueue_irqs() argument 756 static bool call_range_handler(struct kvm_vcpu *vcpu, call_range_handler() argument 799 static int vgic_handle_mmio_access(struct kvm_vcpu *vcpu, vgic_handle_mmio_access() argument 848 static int vgic_handle_mmio_read(struct kvm_vcpu *vcpu, vgic_handle_mmio_read() argument 855 static int vgic_handle_mmio_write(struct kvm_vcpu *vcpu, vgic_handle_mmio_write() argument 889 struct kvm_vcpu *vcpu = NULL; vgic_register_kvm_io_dev() local 920 static int compute_active_for_cpu(struct kvm_vcpu *vcpu) compute_active_for_cpu() argument 950 static int compute_pending_for_cpu(struct kvm_vcpu *vcpu) compute_pending_for_cpu() argument 986 struct kvm_vcpu *vcpu; vgic_update_state() local 1005 static struct vgic_lr vgic_get_lr(const struct kvm_vcpu *vcpu, int lr) vgic_get_lr() argument 1010 static void vgic_set_lr(struct kvm_vcpu *vcpu, int lr, vgic_set_lr() argument 1016 static void vgic_sync_lr_elrsr(struct kvm_vcpu *vcpu, int lr, vgic_sync_lr_elrsr() argument 1022 static inline u64 vgic_get_elrsr(struct kvm_vcpu *vcpu) vgic_get_elrsr() argument 1027 static inline u64 vgic_get_eisr(struct kvm_vcpu *vcpu) vgic_get_eisr() argument 1032 static inline void vgic_clear_eisr(struct kvm_vcpu *vcpu) vgic_clear_eisr() argument 1037 static inline u32 vgic_get_interrupt_status(struct kvm_vcpu *vcpu) vgic_get_interrupt_status() argument 1042 static inline void vgic_enable_underflow(struct kvm_vcpu *vcpu) vgic_enable_underflow() argument 1047 static inline void vgic_disable_underflow(struct kvm_vcpu *vcpu) vgic_disable_underflow() argument 1052 void vgic_get_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcr) vgic_get_vmcr() argument 1057 void vgic_set_vmcr(struct kvm_vcpu *vcpu, struct vgic_vmcr *vmcr) vgic_set_vmcr() argument 1062 static inline void vgic_enable(struct kvm_vcpu *vcpu) vgic_enable() argument 1067 static void vgic_retire_lr(int lr_nr, int irq, struct kvm_vcpu *vcpu) vgic_retire_lr() argument 1088 static void vgic_retire_disabled_irqs(struct kvm_vcpu *vcpu) vgic_retire_disabled_irqs() argument 1104 static void vgic_queue_irq_to_lr(struct kvm_vcpu *vcpu, int irq, vgic_queue_irq_to_lr() argument 1129 bool vgic_queue_irq(struct kvm_vcpu *vcpu, u8 sgi_source_id, int irq) vgic_queue_irq() argument 1174 static bool vgic_queue_hwirq(struct kvm_vcpu *vcpu, int irq) vgic_queue_hwirq() argument 1197 static void __kvm_vgic_flush_hwstate(struct kvm_vcpu *vcpu) __kvm_vgic_flush_hwstate() argument 1259 static bool vgic_process_maintenance(struct kvm_vcpu *vcpu) vgic_process_maintenance() argument 1345 static void __kvm_vgic_sync_hwstate(struct kvm_vcpu *vcpu) __kvm_vgic_sync_hwstate() argument 1377 void kvm_vgic_flush_hwstate(struct kvm_vcpu *vcpu) kvm_vgic_flush_hwstate() argument 1389 void kvm_vgic_sync_hwstate(struct kvm_vcpu *vcpu) kvm_vgic_sync_hwstate() argument 1397 int kvm_vgic_vcpu_pending_irq(struct kvm_vcpu *vcpu) kvm_vgic_vcpu_pending_irq() argument 1407 int kvm_vgic_vcpu_active_irq(struct kvm_vcpu *vcpu) kvm_vgic_vcpu_active_irq() argument 1420 struct kvm_vcpu *vcpu; vgic_kick_vcpus() local 1433 static int vgic_validate_injection(struct kvm_vcpu *vcpu, int irq, int level) vgic_validate_injection() argument 1455 struct kvm_vcpu *vcpu; vgic_update_irq_pending() local 1588 void kvm_vgic_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_vgic_vcpu_destroy() argument 1602 static int vgic_vcpu_init_maps(struct kvm_vcpu *vcpu, int nr_irqs) vgic_vcpu_init_maps() argument 1646 struct kvm_vcpu *vcpu; kvm_vgic_destroy() local 1684 struct kvm_vcpu *vcpu; vgic_init() local 1795 struct kvm_vcpu *vcpu; kvm_vgic_create() local
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | kvm_emulate.h | 44 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_reg(const struct kvm_vcpu *vcpu, u8 reg_num) vcpu_reg() argument 113 static inline unsigned long *vcpu_spsr(const struct kvm_vcpu *vcpu) vcpu_spsr() argument 121 static inline bool vcpu_mode_priv(const struct kvm_vcpu *vcpu) vcpu_mode_priv() argument 131 static inline u32 kvm_vcpu_get_hsr(const struct kvm_vcpu *vcpu) kvm_vcpu_get_hsr() argument 136 static inline unsigned long kvm_vcpu_get_hfar(const struct kvm_vcpu *vcpu) kvm_vcpu_get_hfar() argument 141 static inline phys_addr_t kvm_vcpu_get_fault_ipa(const struct kvm_vcpu *vcpu) kvm_vcpu_get_fault_ipa() argument 146 static inline u32 kvm_vcpu_hvc_get_imm(const struct kvm_vcpu *vcpu) kvm_vcpu_hvc_get_imm() argument 151 static inline bool kvm_vcpu_dabt_isvalid(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isvalid() argument 156 static inline bool kvm_vcpu_dabt_iswrite(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iswrite() argument 161 static inline bool kvm_vcpu_dabt_issext(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_issext() argument 166 static inline int kvm_vcpu_dabt_get_rd(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_rd() argument 171 static inline bool kvm_vcpu_dabt_isextabt(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_isextabt() argument 176 static inline bool kvm_vcpu_dabt_iss1tw(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_iss1tw() argument 181 static inline int kvm_vcpu_dabt_get_as(const struct kvm_vcpu *vcpu) kvm_vcpu_dabt_get_as() argument 187 static inline bool kvm_vcpu_trap_il_is32bit(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_il_is32bit() argument 192 static inline u8 kvm_vcpu_trap_get_class(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_class() argument 197 static inline bool kvm_vcpu_trap_is_iabt(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_is_iabt() argument 202 static inline u8 kvm_vcpu_trap_get_fault(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault() argument 207 static inline u8 kvm_vcpu_trap_get_fault_type(const struct kvm_vcpu *vcpu) kvm_vcpu_trap_get_fault_type() argument 212 static inline unsigned long kvm_vcpu_get_mpidr_aff(struct kvm_vcpu *vcpu) kvm_vcpu_get_mpidr_aff() argument 217 static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu) kvm_vcpu_set_be() argument 225 static inline bool kvm_vcpu_is_be(struct kvm_vcpu *vcpu) kvm_vcpu_is_be() argument 233 static inline unsigned long vcpu_data_guest_to_host(struct kvm_vcpu *vcpu, vcpu_data_guest_to_host() argument 264 static inline unsigned long vcpu_data_host_to_guest(struct kvm_vcpu *vcpu, vcpu_data_host_to_guest() argument
|
H A D | kvm_host.h | 250 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument 251 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} argument
|
/linux-4.1.27/tools/perf/util/ |
H A D | kvm-stat.h | 33 struct kvm_event_stats *vcpu; member in struct:kvm_event
|
/linux-4.1.27/include/xen/interface/ |
H A D | event_channel.h | 63 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.1.27/drivers/iommu/ |
H A D | fsl_pamu.c | 519 u32 get_stash_id(u32 stash_dest_hint, u32 vcpu) get_stash_id() argument
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-kvm.c | 320 int vcpu; handle_end_event() local 501 int vcpu = kvm->trace_vcpu; update_total_count() local 507 static bool event_is_valid(struct kvm_event *event, int vcpu) event_is_valid() argument 515 int vcpu = kvm->trace_vcpu; sort_result() local 543 int vcpu = kvm->trace_vcpu; print_vcpu_info() local 580 int vcpu = kvm->trace_vcpu; print_result() local 701 static bool verify_vcpu(int vcpu) verify_vcpu() argument 1092 int vcpu = kvm->trace_vcpu; kvm_events_report_vcpu() local 477 insert_to_result(struct rb_root *result, struct kvm_event *event, key_cmp_fun bigger, int vcpu) insert_to_result() argument
|
/linux-4.1.27/include/linux/ |
H A D | kvm_host.h | 184 struct kvm_vcpu *vcpu; member in struct:kvm_async_pf 273 static inline int kvm_vcpu_exiting_guest_mode(struct kvm_vcpu *vcpu) kvm_vcpu_exiting_guest_mode() argument 428 struct kvm_vcpu *vcpu; kvm_get_vcpu_by_id() local 704 static inline wait_queue_head_t *kvm_arch_vcpu_wq(struct kvm_vcpu *vcpu) kvm_arch_vcpu_wq() argument 888 static inline void kvm_migrate_timers(struct kvm_vcpu *vcpu) kvm_migrate_timers() argument 997 static inline bool kvm_vcpu_is_reset_bsp(struct kvm_vcpu *vcpu) kvm_vcpu_is_reset_bsp() argument 1002 static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu) kvm_vcpu_is_bsp() argument 1011 static inline bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu) { return true; } kvm_vcpu_compatible() argument 1015 static inline void kvm_make_request(int req, struct kvm_vcpu *vcpu) kvm_make_request() argument 1020 static inline bool kvm_check_request(int req, struct kvm_vcpu *vcpu) kvm_check_request() argument 1074 static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_in_spin_loop() argument 1078 static inline void kvm_vcpu_set_dy_eligible(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_dy_eligible() argument 1085 static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_in_spin_loop() argument 1089 static inline void kvm_vcpu_set_dy_eligible(struct kvm_vcpu *vcpu, bool val) kvm_vcpu_set_dy_eligible() argument
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | kvm_host.h | 574 static inline bool kvm_mips_guest_can_have_fpu(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_can_have_fpu() argument 580 static inline bool kvm_mips_guest_has_fpu(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_has_fpu() argument 586 static inline bool kvm_mips_guest_can_have_msa(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_can_have_msa() argument 592 static inline bool kvm_mips_guest_has_msa(struct kvm_vcpu_arch *vcpu) kvm_mips_guest_has_msa() argument 846 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument 847 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} argument
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | kvm_host.h | 633 static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} kvm_arch_sched_in() argument 634 static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} kvm_arch_free_memslot() argument
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | kvm_host.h | 320 struct kvm_vcpu *vcpu; member in struct:kvm_pmc 850 static inline void adjust_tsc_offset_guest(struct kvm_vcpu *vcpu, adjust_tsc_offset_guest() argument 856 static inline void adjust_tsc_offset_host(struct kvm_vcpu *vcpu, s64 adjustment) adjust_tsc_offset_host() argument 933 static inline int emulate_instruction(struct kvm_vcpu *vcpu, emulate_instruction() argument 1036 static inline gpa_t translate_gpa(struct kvm_vcpu *vcpu, gpa_t gpa, u32 access, translate_gpa() argument 1076 static inline void kvm_inject_gp(struct kvm_vcpu *vcpu, u32 error_code) kvm_inject_gp() argument
|