Re: [v4 15/16] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

Paolo Bonzini
2015-06-23T16:05:50Z

On 11/06/2015 12:51, Feng Wu wrote:
> - vcpu->arch.mp_state = KVM_MP_STATE_HALTED;
> + /* Handle posted-interrupt when vCPU is to be halted */
> + if (!kvm_x86_ops->pi_pre_block ||
> + (kvm_x86_ops->pi_pre_block &&

This condition is unnecessary.

Paolo

> + kvm_x86_ops->pi_pre_block(vcpu) == 0))
> + vcpu->arch.mp_state = KVM_MP_STATE_HALTED;