From: "Jan Beulich" Subject: Re: pfn_pte/pfn_pmd Date: Wed, 21 Dec 2005 16:34:02 +0100 Message-ID: <43A983FA.76F0.0078.0@novell.com> References: <43A9401F.76F0.0078.0@novell.com> <43A94AE7.76F0.0078.0@novell.com> <43A965F4.1010203@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <43A965F4.1010203@suse.de> 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: Gerd Knorr Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Gerd Knorr 21.12.05 15:25:56 >>> >> I still wonder, however, whether the BUG()/panic() in PAE's pfn_pmd() >> couldn't be removed... > >Wonder why it is still in there though, seems pfn_pmd() is never ever >used, checking code ... > >Ok, seems they are needed for 2M/4M pages, we don't support these >anyway, so BUG()'ing in case this is called looks perfectly fine. I was about to think so, too, but I wasn't able to prove that the code in arch/i386/mm/init-xen.c that uses it (and that is conditional upon cpu_has_pse) can't get executed. Specifically, I missed include/asm-i386/mach-xen/setup_arch_post.h clearing X86_FEATURE_PSE... >The panic msg probably should be changed to something more reasonable, >such as "Huh? Who tried to use 2M pages?" maybe ;) Jan