Lines Matching refs:kvm_run
2243 struct kvm_run *run,
2459 int kvm_emulate_pio(struct kvm_vcpu *vcpu, struct kvm_run *run, int in,
2497 int kvm_emulate_pio_string(struct kvm_vcpu *vcpu, struct kvm_run *run, int in,
2885 struct kvm_run *kvm_run)
2888 kvm_run->request_interrupt_window &&
2894 struct kvm_run *kvm_run)
2896 kvm_run->if_flag = (kvm_x86_ops->get_rflags(vcpu) & X86_EFLAGS_IF) != 0;
2897 kvm_run->cr8 = kvm_get_cr8(vcpu);
2898 kvm_run->apic_base = kvm_get_apic_base(vcpu);
2900 kvm_run->ready_for_interrupt_injection = 1;
2902 kvm_run->ready_for_interrupt_injection =
2933 static int vcpu_enter_guest(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
2954 kvm_run->exit_reason = KVM_EXIT_TPR_ACCESS;
2959 kvm_run->exit_reason = KVM_EXIT_SHUTDOWN;
2997 kvm_x86_ops->inject_pending_vectors(vcpu, kvm_run);
3007 kvm_x86_ops->run(vcpu, kvm_run);
3041 r = kvm_x86_ops->handle_exit(kvm_run, vcpu);
3046 static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
3066 r = vcpu_enter_guest(vcpu, kvm_run);
3080 if (dm_request_for_irq_injection(vcpu, kvm_run)) {
3082 kvm_run->exit_reason = KVM_EXIT_INTR;
3087 kvm_run->exit_reason = KVM_EXIT_INTR;
3099 post_kvm_run_save(vcpu, kvm_run);
3106 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
3125 kvm_set_cr8(vcpu, kvm_run->cr8);
3134 memcpy(vcpu->mmio_data, kvm_run->mmio.data, 8);
3139 r = emulate_instruction(vcpu, kvm_run,
3152 if (kvm_run->exit_reason == KVM_EXIT_HYPERCALL)
3154 kvm_run->hypercall.ret);
3156 r = __vcpu_run(vcpu, kvm_run);