This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] xen: Check for valid pirq values in hvm_domain_use_p

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xen: Check for valid pirq values in hvm_domain_use_pirq
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Thu, 12 May 2011 15:29:52 +0100
Cc: Keir Fraser <keir@xxxxxxx>, Simon Rowe <Simon.Rowe@xxxxxxxxxxxxx>
Delivery-date: Thu, 12 May 2011 07:29:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
Check for valid pirq values in hvm_domain_use_pirq.

This patch should also be backported to 4.1.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>

diff -r 7955bb98ee9d xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Thu May 12 14:13:29 2011 +0000
+++ b/xen/arch/x86/irq.c        Thu May 12 14:25:40 2011 +0000
@@ -1955,7 +1955,7 @@ int hvm_domain_use_pirq(struct domain *d
     int emuirq;
-    if ( !is_hvm_domain(d) )
+    if ( !is_hvm_domain(d) || pirq < 0 )
         return 0;
     emuirq = domain_pirq_to_emuirq(d, pirq);

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen: Check for valid pirq values in hvm_domain_use_pirq, Stefano Stabellini <=