Lines Matching full:injected
623 ex->injected = false; in kvm_queue_exception_vmexit()
649 * previously injected exception is not checked because it was checked in kvm_multiple_exception()
651 * injected the exception, in which case it's exempt from interception. in kvm_multiple_exception()
660 if (!vcpu->arch.exception.pending && !vcpu->arch.exception.injected) { in kvm_multiple_exception()
671 vcpu->arch.exception.injected = true; in kvm_multiple_exception()
682 vcpu->arch.exception.injected = false; in kvm_multiple_exception()
707 * Synthesize #DF. Clear the previously injected or pending in kvm_multiple_exception()
710 vcpu->arch.exception.injected = false; in kvm_multiple_exception()
4858 * instruction boundary and with no events half-injected. in kvm_vcpu_ready_for_interrupt_injection()
5050 * of the injected exception. in kvm_vcpu_ioctl_x86_get_vcpu_events()
5054 !vcpu->arch.exception.injected) in kvm_vcpu_ioctl_x86_get_vcpu_events()
5078 events->exception.injected = 0; in kvm_vcpu_ioctl_x86_get_vcpu_events()
5081 events->exception.injected = ex->injected; in kvm_vcpu_ioctl_x86_get_vcpu_events()
5085 * pending and injected exceptions when in kvm_vcpu_ioctl_x86_get_vcpu_events()
5089 events->exception.injected |= ex->pending; in kvm_vcpu_ioctl_x86_get_vcpu_events()
5097 events->interrupt.injected = in kvm_vcpu_ioctl_x86_get_vcpu_events()
5098 vcpu->arch.interrupt.injected && !vcpu->arch.interrupt.soft; in kvm_vcpu_ioctl_x86_get_vcpu_events()
5103 events->nmi.injected = vcpu->arch.nmi_injected; in kvm_vcpu_ioctl_x86_get_vcpu_events()
5146 events->exception.injected = 0; in kvm_vcpu_ioctl_x86_set_vcpu_events()
5154 if ((events->exception.injected || events->exception.pending) && in kvm_vcpu_ioctl_x86_set_vcpu_events()
5169 * pending exceptions, already-injected exceptions are not subject to in kvm_vcpu_ioctl_x86_set_vcpu_events()
5170 * intercpetion. Note, userspace that conflates pending and injected in kvm_vcpu_ioctl_x86_set_vcpu_events()
5171 * is hosed, and will incorrectly convert an injected exception into a in kvm_vcpu_ioctl_x86_set_vcpu_events()
5178 vcpu->arch.exception.injected = events->exception.injected; in kvm_vcpu_ioctl_x86_set_vcpu_events()
5186 vcpu->arch.interrupt.injected = events->interrupt.injected; in kvm_vcpu_ioctl_x86_set_vcpu_events()
5193 vcpu->arch.nmi_injected = events->nmi.injected; in kvm_vcpu_ioctl_x86_set_vcpu_events()
9827 vcpu->arch.exception.injected); in kvm_inject_exception()
9835 * Check for any event (interrupt or exception) that is ready to be injected,
9838 * been injected into the guest, and "injected" events, i.e. events that were
9839 * injected as part of a previous VM-Enter, but weren't successfully delivered
9840 * and need to be re-injected.
9846 * I.e. for exceptions and re-injected events, NOT invoking this on instruction
9850 * that are injected directly from L1 to L2) and doesn't explicitly track
9862 * injected on the restarted instruction instead of being deferred until the
9891 * to/from L2 is needed, as any event that has already been injected in kvm_check_and_inject_events()
9896 * injected event, KVM intercepted said exception, and KVM ultimately in kvm_check_and_inject_events()
9900 * "Injected" interrupts can also collide with pending exceptions if in kvm_check_and_inject_events()
9912 if (vcpu->arch.exception.injected) in kvm_check_and_inject_events()
9918 else if (vcpu->arch.interrupt.injected) in kvm_check_and_inject_events()
9923 * exceptions on top of injected exceptions that do not VM-Exit should in kvm_check_and_inject_events()
9924 * either morph to #DF or, sadly, override the injected exception. in kvm_check_and_inject_events()
9926 WARN_ON_ONCE(vcpu->arch.exception.injected && in kvm_check_and_inject_events()
9936 * there may now be events that can be injected into L1. in kvm_check_and_inject_events()
9944 * VM-Exits cannot be injected (flag should _never_ be set). in kvm_check_and_inject_events()
9946 WARN_ON_ONCE(vcpu->arch.exception_vmexit.injected || in kvm_check_and_inject_events()
9950 * New events, other than exceptions, cannot be injected if KVM needs in kvm_check_and_inject_events()
9982 vcpu->arch.exception.injected = true; in kvm_check_and_inject_events()
9992 * Finally, inject interrupt events. If an event cannot be injected in kvm_check_and_inject_events()
9995 * and can architecturally be injected, but we cannot do it right now: in kvm_check_and_inject_events()
10050 * is done emulating and should only propagate the to-be-injected event in kvm_check_and_inject_events()
10363 * When APICv gets disabled, we may still have injected interrupts in kvm_vcpu_update_apicv()
11165 ex->injected = false; in kvm_arch_vcpu_ioctl_run()
11331 if (vcpu->arch.interrupt.injected && !vcpu->arch.interrupt.soft) in __get_sregs()
11667 * Read rflags as long as potentially injected trace flags are still in kvm_arch_vcpu_ioctl_set_guest_debug()