From: Stefano Stabellini Subject: Re: [PATCH 1 of 4] xen: interrupt remapping in HVM guests Date: Mon, 30 Aug 2010 14:28:41 +0100 Message-ID: References: <1283167504-7787-1-git-send-email-stefano.stabellini@eu.citrix.com> <4C7BBD210200007800012D3E@vpn.id2.novell.com> <4C7BC76A0200007800012D78@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <4C7BC76A0200007800012D78@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 30 Aug 2010, Jan Beulich wrote: > >>> On 30.08.10 at 14:40, Stefano Stabellini wrote: > > On Mon, 30 Aug 2010, Jan Beulich wrote: > >> Additionally, shouldn't you add a build time check making sure > >> that IRQ_UNBOUND is actually suitable for initialization via > >> memset() (or alternatively use a loop)? > >> > > > > something like typeof? > > No, something that makes sure all bytes of the int are identical (since > of the int you pass to memset() only the low 8 bits actually get used). > For the moment, checking the value is either 0 or -1 would probably > do. I understand now, but I think I prefer to use a loop instead :)