On 16/09/2015 10:50, Feng Wu wrote:
> +
> +     if (!irq_remapping_cap(IRQ_POSTING_CAP) ||
> +             (!kvm_arch_has_assigned_device(vcpu->kvm)))
> +             return;
> +

Better:

        if (!arch_has_assigned_device(vcpu->kvm)) ||
            !irq_remapping_cap(IRQ_POSTING_CAP))
                return;

(In the future we might add a static_key here).

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to