From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Leonard Subject: [PATCH ARM v5 04/20] mini-os: use unbind_evtchn in unbind_all_ports Date: Thu, 26 Jun 2014 12:28:21 +0100 Message-ID: <1403782117-15125-5-git-send-email-talex5@gmail.com> References: <1403782117-15125-1-git-send-email-talex5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X07rL-0004Co-KX for xen-devel@lists.xenproject.org; Thu, 26 Jun 2014 11:28:55 +0000 Received: by mail-wi0-f177.google.com with SMTP id r20so815412wiv.16 for ; Thu, 26 Jun 2014 04:28:52 -0700 (PDT) In-Reply-To: <1403782117-15125-1-git-send-email-talex5@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Thomas Leonard , Dave.Scott@eu.citrix.com, anil@recoil.org, stefano.stabellini@eu.citrix.com, samuel.thibault@ens-lyon.org List-Id: xen-devel@lists.xenproject.org This marks the channel as closed, in case someone tries to use it again. Signed-off-by: Thomas Leonard Acked-by: Ian Campbell Acked-by: Samuel Thibault --- extras/mini-os/events.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/extras/mini-os/events.c b/extras/mini-os/events.c index f708cb4..3c92d82 100644 --- a/extras/mini-os/events.c +++ b/extras/mini-os/events.c @@ -43,7 +43,6 @@ void unbind_all_ports(void) int cpu = 0; shared_info_t *s = HYPERVISOR_shared_info; vcpu_info_t *vcpu_info = &s->vcpu_info[cpu]; - int rc; for ( i = 0; i < NR_EVS; i++ ) { @@ -53,14 +52,8 @@ void unbind_all_ports(void) if ( test_and_clear_bit(i, bound_ports) ) { - struct evtchn_close close; printk("port %d still bound!\n", i); - mask_evtchn(i); - close.port = i; - rc = HYPERVISOR_event_channel_op(EVTCHNOP_close, &close); - if ( rc ) - printk("WARN: close_port %s failed rc=%d. ignored\n", i, rc); - clear_evtchn(i); + unbind_evtchn(i); } } vcpu_info->evtchn_upcall_pending = 0; -- 2.0.0