WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] ioemu: unmap INTx interrupt on hot-remove

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] ioemu: unmap INTx interrupt on hot-remove
From: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Date: Thu, 26 Mar 2009 17:11:29 +0900
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 26 Mar 2009 01:12:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090326051238.GD24011@xxxxxxxxxxxx>
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>
References: <20090313134807.66F0.27C06F64@xxxxxxxxxxxxxxx> <20090326051238.GD24011@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 26 Mar 2009 16:12:38 +1100
Simon Horman <horms@xxxxxxxxxxxx> wrote:

> > +char mapped_machine_irq[PT_NR_IRQS] = {0};
> 
> This only initialises the first element of mapped_machine_irq[] to 0.

Do you have any issue relating to this code?
I think remaining elements are initialized to 0.

Please read the following page.
http://flash-gordon.me.uk/ansi.c.txt (3.5.7 Initialization)
http://www.eskimo.com/~scs/cclass/notes/sx4aa.html
http://stackoverflow.com/questions/201101/how-to-initialize-an-array-in-c

Thanks,
--
Yuji Shimada


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel