From owner-svn-src-projects@FreeBSD.ORG Sun Dec 28 07:06:20 2008 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 980281065675; Sun, 28 Dec 2008 07:06:20 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 884318FC17; Sun, 28 Dec 2008 07:06:20 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBS76Krc006027; Sun, 28 Dec 2008 07:06:20 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBS76Klr006026; Sun, 28 Dec 2008 07:06:20 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812280706.mBS76Klr006026@svn.freebsd.org> From: Kip Macy Date: Sun, 28 Dec 2008 07:06:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186537 - projects/releng_7_xen/sys/xen/evtchn X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 07:06:20 -0000 Author: kmacy Date: Sun Dec 28 07:06:20 2008 New Revision: 186537 URL: http://svn.freebsd.org/changeset/base/186537 Log: unmask evtchn in bind_{virq, ipi}_to_irq Modified: projects/releng_7_xen/sys/xen/evtchn/evtchn.c Modified: projects/releng_7_xen/sys/xen/evtchn/evtchn.c ============================================================================== --- projects/releng_7_xen/sys/xen/evtchn/evtchn.c Sun Dec 28 06:16:35 2008 (r186536) +++ projects/releng_7_xen/sys/xen/evtchn/evtchn.c Sun Dec 28 07:06:20 2008 (r186537) @@ -364,7 +364,7 @@ static int bind_virq_to_irq(unsigned int virq, unsigned int cpu) { struct evtchn_bind_virq bind_virq; - int evtchn, irq; + int evtchn = 0, irq; mtx_lock_spin(&irq_mapping_update_lock); @@ -388,6 +388,7 @@ bind_virq_to_irq(unsigned int virq, unsi } irq_bindcount[irq]++; + unmask_evtchn(evtchn); out: mtx_unlock_spin(&irq_mapping_update_lock); @@ -401,8 +402,9 @@ int bind_ipi_to_irq(unsigned int ipi, unsigned int cpu) { struct evtchn_bind_ipi bind_ipi; - int evtchn, irq; - + int irq; + int evtchn = 0; + mtx_lock_spin(&irq_mapping_update_lock); if ((irq = per_cpu(ipi_to_irq, cpu)[ipi]) == -1) { @@ -421,6 +423,7 @@ bind_ipi_to_irq(unsigned int ipi, unsign bind_evtchn_to_cpu(evtchn, cpu); } irq_bindcount[irq]++; + unmask_evtchn(evtchn); out: mtx_unlock_spin(&irq_mapping_update_lock);