Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960AbdFEQqZ (ORCPT ); Mon, 5 Jun 2017 12:46:25 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:31122 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbdFEQqX (ORCPT ); Mon, 5 Jun 2017 12:46:23 -0400 Subject: Re: [Xen-devel] [PATCH] xen-evtchn: Bind dyn evtchn:qemu-dm interrupt to next online VCPU To: Anoob Soman , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org References: <1496414988-12878-1-git-send-email-anoob.soman@citrix.com> <363cb97a-7dc1-ae4f-da93-30e7658cef00@oracle.com> <5a5d9355-34fc-57aa-825c-81123f6bb74e@citrix.com> <0c2a3a4b-e442-8c8c-6a71-6f9972ff29fc@citrix.com> Cc: jgross@suse.com From: Boris Ostrovsky Message-ID: <35eefa99-ba11-2c3d-f231-be48869d35e1@oracle.com> Date: Mon, 5 Jun 2017 12:46:06 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 352 Lines: 17 >> (BTW, I just noticed --- you don't need to initialize desc) > > Sorry, I didn't get it. Which desc doesn't need init ? +static void evtchn_bind_interdom_next_vcpu(int evtchn) +{ + unsigned int selected_cpu, irq; + struct irq_desc *desc = NULL; <==== + unsigned long flags; + + irq = irq_from_evtchn(evtchn); + desc = irq_to_desc(irq); -boris