From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764240AbXGFUEX (ORCPT ); Fri, 6 Jul 2007 16:04:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762295AbXGFUEQ (ORCPT ); Fri, 6 Jul 2007 16:04:16 -0400 Received: from smtp-outbound-1.vmware.com ([65.113.40.141]:37675 "EHLO smtp-outbound-1.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762233AbXGFUEP (ORCPT ); Fri, 6 Jul 2007 16:04:15 -0400 Message-ID: <468E9E0E.1050705@vmware.com> Date: Fri, 06 Jul 2007 12:54:54 -0700 From: Zachary Amsden User-Agent: Thunderbird 1.5.0.12 (X11/20070509) MIME-Version: 1.0 To: Stefan Richter CC: "Robert P. J. Day" , Linux Kernel Mailing List , Andrew Morton , Jeremy Fitzhardinge , Chris Wright , Rusty Russell , virtualization@lists.osdl.org Subject: Re: [PATCH] I386: Deactivate the test for the dead CONFIG_DEBUG_PAGE_TYPE variable. References: <468E890A.1070504@s5r6.in-berlin.de> In-Reply-To: <468E890A.1070504@s5r6.in-berlin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Stefan Richter wrote: > Robert P. J. Day wrote: > >> Signed-off-by: Robert P. J. Day >> >> --- >> >> diff --git a/arch/i386/kernel/vmi.c b/arch/i386/kernel/vmi.c >> > > Maintainers are apparently those under "PARAVIRT_OPS INTERFACE". > CCs added. > > >> index c12720d..e3ce5c8 100644 >> --- a/arch/i386/kernel/vmi.c >> +++ b/arch/i386/kernel/vmi.c >> @@ -235,7 +235,7 @@ static void vmi_nop(void) >> { >> } >> >> -#ifdef CONFIG_DEBUG_PAGE_TYPE >> +#if 0 /* debug page type */ >> >> #ifdef CONFIG_X86_PAE >> #define MAX_BOOT_PTS (2048+4+1) >> @@ -336,7 +336,7 @@ static void vmi_check_page_type(u32 pfn, int type) >> #else >> #define vmi_set_page_type(p,t) do { } while (0) >> #define vmi_check_page_type(p,t) do { } while (0) >> -#endif >> +#endif /* debug page type */ >> >> #ifdef CONFIG_HIGHPTE >> static void *vmi_kmap_atomic_pte(struct page *page, enum km_type type) >> > > This misnamed CONFIG_DEBUG_PAGE_TYPE (it's not a Kconfig variable) has > about 120 lines debug code dangling on it. So, replacing it by #if 0 > will hopefully motivate a kind janitor to send a removal patch for that > debug code eventually. I don't do so just now because that code went in > between 2.6.20 and 2.6.21-rc1, i.e. not so long ago. > Nack. This code was very tricky to get right and found some very obscure bugs. I want to keep it around even in broken form for as long as possible. Also, it is not misnamed. I didn't add the rest of the code upstream because it steals bits from struct page. Zach