From: Ian Jackson Subject: Re: [PATCH] ioemu: unmap INTx interrupt on hot-remove Date: Mon, 30 Mar 2009 16:13:17 +0100 Message-ID: <18896.57741.503428.226506@mariner.uk.xensource.com> References: <20090313134807.66F0.27C06F64@necst.nec.co.jp> <20090326051238.GD24011@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090326051238.GD24011@verge.net.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman Cc: Yuji Shimada , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Simon Horman writes ("Re: [Xen-devel] [PATCH] ioemu: unmap INTx interrupt on hot-remove"): > On Fri, Mar 13, 2009 at 01:59:24PM +0900, Yuji Shimada wrote: > > +char mapped_machine_irq[PT_NR_IRQS] = {0}; > > This only initialises the first element of mapped_machine_irq[] to 0. Statically allocated objects (that is, ones in the data and code segments rather than on the stack) are initialised to 0 by the system anyway. But I agree that it's an unusual style. Ian.