The commit is pushed to "branch-rh7-3.10.0-327.4.5.vz7.11.x-ovz" and will 
appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.4.5.vz7.11.2
------>
commit 6d55a8cc1fad64072cada9b1e0e4695c7687e6fa
Author: Andrey Smetanin <[email protected]>
Date:   Tue Feb 16 13:50:14 2016 +0400

    ms/kvm/irqchip: allow only multiple irqchip routes per GSI
    
    Any other irq routing types (MSI, S390_ADAPTER, upcoming Hyper-V
    SynIC) map one-to-one to GSI.
    
    ms commit f33143d80907602deb1b96db42da93507ed03b31.
    
    Signed-off-by: Andrey Smetanin <[email protected]>
    
    Reviewed-by: Roman Kagan <[email protected]>
    Signed-off-by: Denis V. Lunev <[email protected]>
    CC: Vitaly Kuznetsov <[email protected]>
    CC: "K. Y. Srinivasan" <[email protected]>
    CC: Gleb Natapov <[email protected]>
    CC: Paolo Bonzini <[email protected]>
    Signed-off-by: Paolo Bonzini <[email protected]>
---
 virt/kvm/irqchip.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/virt/kvm/irqchip.c b/virt/kvm/irqchip.c
index 7f256f3..d6c2145 100644
--- a/virt/kvm/irqchip.c
+++ b/virt/kvm/irqchip.c
@@ -134,11 +134,11 @@ static int setup_routing_entry(struct 
kvm_irq_routing_table *rt,
 
        /*
         * Do not allow GSI to be mapped to the same irqchip more than once.
-        * Allow only one to one mapping between GSI and MSI.
+        * Allow only one to one mapping between GSI and non-irqchip routing.
         */
        hlist_for_each_entry(ei, &rt->map[ue->gsi], link)
-               if (ei->type == KVM_IRQ_ROUTING_MSI ||
-                   ue->type == KVM_IRQ_ROUTING_MSI ||
+               if (ei->type != KVM_IRQ_ROUTING_IRQCHIP ||
+                   ue->type != KVM_IRQ_ROUTING_IRQCHIP ||
                    ue->u.irqchip.irqchip == ei->irqchip.irqchip)
                        return r;
 
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to