Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262795AbUAWQxQ (ORCPT ); Fri, 23 Jan 2004 11:53:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262960AbUAWQxQ (ORCPT ); Fri, 23 Jan 2004 11:53:16 -0500 Received: from gprs154-79.eurotel.cz ([160.218.154.79]:896 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S262795AbUAWQxP (ORCPT ); Fri, 23 Jan 2004 11:53:15 -0500 Date: Fri, 23 Jan 2004 17:53:04 +0100 From: Pavel Machek To: Patrick Mochel Cc: Benjamin Herrenschmidt , Nigel Cunningham , Linux Kernel list Subject: Re: swsusp vs pgdir Message-ID: <20040123165304.GA257@elf.ucw.cz> References: <1074833921.975.197.camel@gaston> <20040123073426.GA211@elf.ucw.cz> <1074843781.878.1.camel@gaston> <20040123075451.GB211@elf.ucw.cz> <1074874219.835.32.camel@gaston> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1012 Lines: 25 Hi! > > Wait... wait... If the whole linear mapping isn't mapped by this flat > > pgdir, then we have a problem, since the MMU will have to go down the > > kernel pagetables to actually access the pages data when copying them > > around... but at this point, we are overriding the boot kernel page > > tables with the loader ones, so ... > > A new pgdir is allocated on resume that does not overlap with any pages > being restored. See relocate_pagedir() in the code.. Look again. relocate_pagedir() does not work with hardware page directories. Instead, it deals with swsusp data structure telling it what to copy where. Okay, it could use some better name... Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/