From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH] fix ia64 breakage with PHYSDEVOP_pirq_eoi_mfn (wasRe:[PATCH 2/2] linux/x86: use shared page indicatingthe need foran EOI notification) Date: Wed, 10 Dec 2008 10:23:46 +0000 Message-ID: <493FA6C2.76E4.0078.0@novell.com> References: <493F982A.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Isaku Yamahata Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 10.12.08 11:07 >>> >On 10/12/2008 09:21, "Jan Beulich" wrote: > >>>>> Isaku Yamahata 10.12.08 05:16 >>> >>> Sorry I sent out the old one. Here is the corrected one. >>> NULL check must be before its use. >>=20 >> Not really - alloc_bootmem() etc panic for themselves unless you use = the >> _nopanic variants. >> Also, alloc_bootmem() etc zero the allocated memory, so no need for >> memset(), and the subsequent BUG_ON() can obviously go away. >> And finally, PAGE_SIZE isn't correct, you should use the size originally= >> used, just slightly modified: >>=20 >> BITS_TO_LONGS(ALIGN(NR_PIRQS, PAGE_SIZE * 8)) >>=20 >> I was about to put together a patch for this myself... > >Can you just fix up Isaku's patch and then we'll collect a fresh sign-off >from him too? Yes, I'm in the process of doing this (here and for the other one) - my suggestions actually needed some further refinement, and getting the HIGHPTE case of the other patch to build is actually non-trivial. Jan