• Home
  • Raw
  • Download

Lines Matching refs:kvm_run

211 static int handle_vm_error(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)  in handle_vm_error()  argument
213 kvm_run->exit_reason = KVM_EXIT_UNKNOWN; in handle_vm_error()
214 kvm_run->hw.hardware_exit_reason = 1; in handle_vm_error()
218 static int handle_mmio(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_mmio() argument
228 vcpu->mmio_phys_addr = kvm_run->mmio.phys_addr = p->addr; in handle_mmio()
229 vcpu->mmio_size = kvm_run->mmio.len = p->size; in handle_mmio()
230 vcpu->mmio_is_write = kvm_run->mmio.is_write = !p->dir; in handle_mmio()
234 memcpy(kvm_run->mmio.data, &p->data, p->size); in handle_mmio()
235 kvm_run->exit_reason = KVM_EXIT_MMIO; in handle_mmio()
254 static int handle_pal_call(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_pal_call() argument
261 return kvm_pal_emul(vcpu, kvm_run); in handle_pal_call()
263 kvm_run->exit_reason = KVM_EXIT_UNKNOWN; in handle_pal_call()
264 kvm_run->hw.hardware_exit_reason = 2; in handle_pal_call()
269 static int handle_sal_call(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_sal_call() argument
279 kvm_run->exit_reason = KVM_EXIT_UNKNOWN; in handle_sal_call()
280 kvm_run->hw.hardware_exit_reason = 3; in handle_sal_call()
328 static int handle_ipi(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_ipi() argument
338 return handle_vm_error(vcpu, kvm_run); in handle_ipi()
382 static int handle_global_purge(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_global_purge() argument
411 static int handle_switch_rr6(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in handle_switch_rr6() argument
465 struct kvm_run *kvm_run) in handle_vm_shutdown() argument
467 kvm_run->exit_reason = KVM_EXIT_SHUTDOWN; in handle_vm_shutdown()
472 struct kvm_run *kvm_run) in handle_external_interrupt() argument
478 struct kvm_run *kvm_run) in handle_vcpu_debug() argument
485 struct kvm_run *kvm_run) = {
514 static int kvm_handle_exit(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu) in kvm_handle_exit() argument
521 return kvm_vti_exit_handlers[exit_reason](vcpu, kvm_run); in kvm_handle_exit()
523 kvm_run->exit_reason = KVM_EXIT_UNKNOWN; in kvm_handle_exit()
524 kvm_run->hw.hardware_exit_reason = exit_reason; in kvm_handle_exit()
589 static int vti_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in vti_vcpu_run() argument
608 static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in __vcpu_run() argument
620 kvm_run->exit_reason = KVM_EXIT_INTR; in __vcpu_run()
627 r = vti_vcpu_run(vcpu, kvm_run); in __vcpu_run()
631 kvm_run->exit_reason = KVM_EXIT_FAIL_ENTRY; in __vcpu_run()
650 r = kvm_handle_exit(kvm_run, vcpu); in __vcpu_run()
675 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in kvm_arch_vcpu_ioctl_run() argument
693 memcpy(vcpu->mmio_data, kvm_run->mmio.data, 8); in kvm_arch_vcpu_ioctl_run()
698 r = __vcpu_run(vcpu, kvm_run); in kvm_arch_vcpu_ioctl_run()