Re: [PATCH v2] KVM: nVMX: Fix pending events injection

From: Paolo Bonzini
Date: Mon Feb 27 2017 - 07:18:10 EST




On 27/02/2017 13:11, Wanpeng Li wrote:
> + if (vcpu->arch.exception.pending ||
> + vcpu->arch.nmi_injected ||
> + vcpu->arch.interrupt.pending)
> + return -EBUSY;
> +
> if (nested_cpu_has_preemption_timer(get_vmcs12(vcpu)) &&
> vmx->nested.preemption_timer_expired) {
> if (vmx->nested.nested_run_pending)
> -- 2.7.4

You should remove the check below for vcpu->arch.interrupt.pending, too.

Paolo