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: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>, Simon Horman <horms@xxxxxxxxxxxx>, Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] ioemu: unmap INTx interrupt on hot-remove
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 27 Mar 2009 08:54:33 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 27 Mar 2009 01:55:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <EADF0A36011179459010BDF5142A45750FA9777C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmuWagx/0NGTq7GTN+hBrT44oW5ugAUk3hQAANr7GM=
Thread-topic: [Xen-devel] [PATCH] ioemu: unmap INTx interrupt on hot-remove
User-agent: Microsoft-Entourage/12.15.0.081119
On 27/03/2009 07:29, "Cui, Dexuan" <dexuan.cui@xxxxxxxxx> wrote:

>>  +char mapped_machine_irq[PT_NR_IRQS] = {0};
> My understanding is:
> This does ensure all the elements of the array are 0, no matter the array is
> global or local. Because in C99's  6.7.8 Initialization, we can find

Dexuan is correct. If you specify an incomplete initializer, the unspecified
data values default to zero.

 -- Keir



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