Searched defs:run (Results 1 - 25 of 31) sorted by relevance

12

/arch/powerpc/kvm/
H A Demulate_loadstore.c52 struct kvm_run *run = vcpu->run; local
73 emulated = kvmppc_handle_load(run, vcpu, rt, 4, 1);
77 emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1);
81 emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1);
86 emulated = kvmppc_handle_store(run, vcpu,
92 emulated = kvmppc_handle_store(run, vcpu,
98 emulated = kvmppc_handle_store(run, vcpu,
105 emulated = kvmppc_handle_loads(run, vcpu, rt, 2, 1);
109 emulated = kvmppc_handle_load(run, vcp
[all...]
H A Demulate.c212 int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) argument
283 run->exit_reason = KVM_EXIT_DEBUG;
284 run->debug.arch.address = kvmppc_get_pc(vcpu);
297 emulated = vcpu->kvm->arch.kvm_ops->emulate_op(run, vcpu, inst,
H A Dbooke_emulate.c53 int kvmppc_booke_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
H A De500_emulate.c87 static int kvmppc_e500_emul_ehpriv(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
94 run->exit_reason = KVM_EXIT_DEBUG;
95 run->debug.arch.address = vcpu->arch.pc;
96 run->debug.arch.status = 0;
116 int kvmppc_core_emulate_op_e500(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
169 emulated = kvmppc_e500_emul_ehpriv(run, vcpu, inst,
184 emulated = kvmppc_booke_emulate_op(run, vcpu, inst, advance);
H A Dbook3s_emulate.c89 int kvmppc_core_emulate_op_pr(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
208 run->papr_hcall.nr = cmd;
211 run->papr_hcall.args[i] = gpr;
214 run->exit_reason = KVM_EXIT_PAPR_HCALL;
315 emulated = kvmppc_emulate_paired_single(run, vcpu);
H A Dbook3s_pr.c11 * we don't have access to hypervisor mode, and we run the guest
530 int kvmppc_handle_pagefault(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
639 r = kvmppc_emulate_mmio(run, vcpu);
824 er = kvmppc_emulate_instruction(vcpu->run, vcpu);
886 int kvmppc_handle_exit_pr(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
894 run->exit_reason = KVM_EXIT_UNKNOWN;
895 run->ready_for_interrupt_injection = 1;
932 r = kvmppc_handle_pagefault(run, vcpu, kvmppc_get_pc(vcpu), exit_nr);
984 r = kvmppc_handle_pagefault(run, vcpu, dar, exit_nr);
1057 er = kvmppc_emulate_instruction(run, vcp
[all...]
H A Dpowerpc.c86 vcpu->run->exit_reason = KVM_EXIT_INTR;
270 int kvmppc_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu) argument
286 run->exit_reason = KVM_EXIT_MMIO;
721 struct kvm_run *run)
725 if (run->mmio.len > sizeof(gpr)) {
726 printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len);
731 switch (run->mmio.len) {
732 case 8: gpr = *(u64 *)run->mmio.data; break;
733 case 4: gpr = *(u32 *)run->mmio.data; break;
734 case 2: gpr = *(u16 *)run
720 kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
785 kvmppc_handle_load(struct kvm_run *run, struct kvm_vcpu *vcpu, unsigned int rt, unsigned int bytes, int is_default_endian) argument
833 kvmppc_handle_loads(struct kvm_run *run, struct kvm_vcpu *vcpu, unsigned int rt, unsigned int bytes, int is_default_endian) argument
845 kvmppc_handle_store(struct kvm_run *run, struct kvm_vcpu *vcpu, u64 val, unsigned int bytes, int is_default_endian) argument
1001 kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
[all...]
H A Dbook3s_64_mmu_hv.c528 static int kvmppc_hv_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
570 return kvmppc_emulate_mmio(run, vcpu);
573 int kvmppc_book3s_hv_page_fault(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
627 return kvmppc_hv_emulate_mmio(run, vcpu, gpa, ea,
H A Dbook3s_hv.c114 * run as part of a virtual core, but the task running the vcore
123 * Hence we accumulate stolen time when the vcpu can run as part of
728 static int kvmppc_emulate_debug_inst(struct kvm_run *run, argument
743 run->exit_reason = KVM_EXIT_DEBUG;
744 run->debug.arch.address = kvmppc_get_pc(vcpu);
752 static int kvmppc_handle_exit_hv(struct kvm_run *run, struct kvm_vcpu *vcpu, argument
759 run->exit_reason = KVM_EXIT_UNKNOWN;
760 run->ready_for_interrupt_injection = 1;
809 run->papr_hcall.nr = kvmppc_get_gpr(vcpu, 3);
811 run
1943 kvmppc_vcpu_run_hv(struct kvm_run *run, struct kvm_vcpu *vcpu) argument
2519 kvmppc_core_emulate_op_hv(struct kvm_run *run, struct kvm_vcpu *vcpu, unsigned int inst, int *advance) argument
[all...]
/arch/arm/include/asm/
H A Dkvm_mmio.h32 * The in-kernel MMIO emulation code wants to use a copy of run->mmio,
42 static inline void kvm_prepare_mmio(struct kvm_run *run, argument
45 run->mmio.phys_addr = mmio->phys_addr;
46 run->mmio.len = mmio->len;
47 run->mmio.is_write = mmio->is_write;
48 memcpy(run->mmio.data, mmio->data, mmio->len);
49 run->exit_reason = KVM_EXIT_MMIO;
52 int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run);
53 int io_mem_abort(struct kvm_vcpu *vcpu, struct kvm_run *run,
/arch/arm/kvm/
H A Dhandle_exit.c31 static int handle_svc_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
39 static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
55 static int handle_smc(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
61 static int handle_pabt_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
69 static int handle_dabt_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
80 * @run: the kvm_run structure pointer
88 static int kvm_handle_wfx(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
137 int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, argument
164 return exit_handler(vcpu, run);
168 run
[all...]
H A Dmmio.c91 * @run: The VCPU run struct containing the mmio data
96 int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
102 if (!run->mmio.is_write) {
103 len = run->mmio.len;
107 data = mmio_read_buf(run->mmio.data, len);
115 trace_kvm_mmio(KVM_TRACE_MMIO_READ, len, run->mmio.phys_addr,
165 int io_mem_abort(struct kvm_vcpu *vcpu, struct kvm_run *run, argument
176 * kernel can't handle it, copy it into run->mmio and let user
200 if (vgic_handle_mmio(vcpu, run,
[all...]
H A Dcoproc.c72 int kvm_handle_cp10_id(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
78 int kvm_handle_cp_0_13_access(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
88 int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
94 int kvm_handle_cp14_access(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
513 * @run: The kvm_run struct
515 int kvm_handle_cp15_64(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
545 * @run: The kvm_run struct
547 int kvm_handle_cp15_32(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
H A Darm.c362 * @kvm The guest that we are about to run
455 * kvm_arch_vcpu_ioctl_run - the main VCPU run function to execute guest code
457 * @run: The kvm_run structure pointer used for userspace state exchange
465 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
477 if (run->exit_reason == KVM_EXIT_MMIO) {
478 ret = kvm_handle_mmio_return(vcpu, vcpu->run);
487 run->exit_reason = KVM_EXIT_UNKNOWN;
509 run->exit_reason = KVM_EXIT_INTR;
551 ret = handle_exit(vcpu, run, ret);
H A Dmmu.c952 * @run: the kvm_run structure
961 int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
1008 ret = io_mem_abort(vcpu, run, fault_ipa);
/arch/arm64/include/asm/
H A Dkvm_mmio.h35 * The in-kernel MMIO emulation code wants to use a copy of run->mmio,
45 static inline void kvm_prepare_mmio(struct kvm_run *run, argument
48 run->mmio.phys_addr = mmio->phys_addr;
49 run->mmio.len = mmio->len;
50 run->mmio.is_write = mmio->is_write;
51 memcpy(run->mmio.data, mmio->data, mmio->len);
52 run->exit_reason = KVM_EXIT_MMIO;
55 int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run);
56 int io_mem_abort(struct kvm_vcpu *vcpu, struct kvm_run *run,
/arch/arm64/kvm/
H A Dhandle_exit.c31 static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
44 static int handle_smc(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
62 static int kvm_handle_wfx(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
108 int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, argument
128 return exit_handler(vcpu, run);
132 run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
H A Dsys_regs.c761 int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
839 * @run: The kvm_run struct
895 * @run: The kvm_run struct
925 int kvm_handle_cp15_64(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
936 int kvm_handle_cp15_32(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
947 int kvm_handle_cp14_64(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
954 int kvm_handle_cp14_32(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
1011 * @run: The kvm_run struct
1013 int kvm_handle_sys_reg(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
/arch/mips/kvm/
H A Dtrap_emul.c42 struct kvm_run *run = vcpu->run; local
49 er = kvm_mips_emulate_fpu_exc(cause, opc, run, vcpu);
51 er = kvm_mips_emulate_inst(cause, opc, run, vcpu);
59 run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
64 run->exit_reason = KVM_EXIT_INTR;
76 struct kvm_run *run = vcpu->run; local
87 er = kvm_mips_handle_tlbmod(cause, opc, run, vcpu);
92 run
120 struct kvm_run *run = vcpu->run; local
167 struct kvm_run *run = vcpu->run; local
221 struct kvm_run *run = vcpu->run; local
251 struct kvm_run *run = vcpu->run; local
281 struct kvm_run *run = vcpu->run; local
299 struct kvm_run *run = vcpu->run; local
317 struct kvm_run *run = vcpu->run; local
[all...]
H A Demulate.c779 vcpu->run->exit_reason = KVM_EXIT_IRQ_WINDOW_OPEN;
888 uint32_t cause, struct kvm_run *run,
1132 struct kvm_run *run,
1138 void *data = run->mmio.data;
1158 if (bytes > sizeof(run->mmio.data)) {
1160 run->mmio.len);
1162 run->mmio.phys_addr =
1165 if (run->mmio.phys_addr == KVM_INVALID_ADDR) {
1169 run->mmio.len = bytes;
1170 run
887 kvm_mips_emulate_CP0(uint32_t inst, uint32_t *opc, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1131 kvm_mips_emulate_store(uint32_t inst, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1243 kvm_mips_emulate_load(uint32_t inst, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1387 kvm_mips_emulate_cache(uint32_t inst, uint32_t *opc, uint32_t cause, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1541 kvm_mips_emulate_inst(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1588 kvm_mips_emulate_syscall(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1623 kvm_mips_emulate_tlbmiss_ld(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1669 kvm_mips_emulate_tlbinv_ld(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1715 kvm_mips_emulate_tlbmiss_st(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1759 kvm_mips_emulate_tlbinv_st(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1804 kvm_mips_handle_tlbmod(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1832 kvm_mips_emulate_tlbmod(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1874 kvm_mips_emulate_fpu_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1903 kvm_mips_emulate_ri_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1938 kvm_mips_emulate_bp_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1988 kvm_mips_handle_ri(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
2073 kvm_mips_complete_mmio_load(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
2124 kvm_mips_emulate_exc(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
2162 kvm_mips_check_privilege(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
2254 kvm_mips_handle_tlbmiss(unsigned long cause, uint32_t *opc, struct kvm_run *run, struct kvm_vcpu *vcpu) argument
[all...]
H A Dmips.c367 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
377 kvm_mips_complete_mmio_load(vcpu, run);
388 r = __kvm_mips_vcpu_run(run, vcpu);
996 int kvm_mips_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) argument
1006 run->exit_reason = KVM_EXIT_UNKNOWN;
1007 run->ready_for_interrupt_injection = 1;
1018 cause, opc, run, vcpu);
1024 er = kvm_mips_check_privilege(cause, opc, run, vcpu);
1028 run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
1053 if (run
[all...]
/arch/blackfin/kernel/
H A Dnmi.c123 int run; local
133 run = nmi_wdt_running();
136 if (run)
/arch/ia64/kvm/
H A Dkvm_fw.c439 int kvm_pal_emul(struct kvm_vcpu *vcpu, struct kvm_run *run) argument
/arch/cris/include/arch-v32/arch/hwregs/
H A Dbif_dma_defs.h115 unsigned int run : 1; member in struct:__anon398
133 unsigned int run : 1; member in struct:__anon400
164 unsigned int run : 1; member in struct:__anon403
182 unsigned int run : 1; member in struct:__anon405
214 unsigned int run : 1; member in struct:__anon408
232 unsigned int run : 1; member in struct:__anon410
263 unsigned int run : 1; member in struct:__anon413
281 unsigned int run : 1; member in struct:__anon415
/arch/cris/include/arch-v32/mach-fs/mach/hwregs/
H A Dbif_dma_defs.h115 unsigned int run : 1; member in struct:__anon1265
133 unsigned int run : 1; member in struct:__anon1267
164 unsigned int run : 1; member in struct:__anon1270
182 unsigned int run : 1; member in struct:__anon1272
214 unsigned int run : 1; member in struct:__anon1275
232 unsigned int run : 1; member in struct:__anon1277
263 unsigned int run : 1; member in struct:__anon1280
281 unsigned int run : 1; member in struct:__anon1282

Completed in 632 milliseconds

12