Return-Path: Date: Sun, 3 Jul 2011 19:46:16 +0200 From: Pavel Machek Subject: Re: [patch 1/1] [PATCH] include storage keys in hibernation image. Message-ID: <20110703174616.GB26790@elf.ucw.cz> References: <20110608074523.211912903@de.ibm.com> <201106121441.35059.rjw@sisk.pl> <20110614105001.2f991377@mschwide> <201106142250.15041.rjw@sisk.pl> <20110615093629.07f01779@mschwide> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110615093629.07f01779@mschwide> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: Martin Schwidefsky Cc: "Rafael J. Wysocki" , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Jiri Slaby , Len Brown List-ID: Hi! > > I think, however, that we really should try to merge them. The only > > difference seems to be how the additionally allocated pages will be populated > > and what's going to happen to their contents during restore. > > > > ACPI will simply copy the NVS memory to those pages, while S390 will save > > the relevant storage key bits in there. > > One complication to keep in mind is that we need to know which storage key > goes to which page frame. We need something like the orig_bm/copy_bm or > we'd have to store the pfn with the key. Simply storing the key for every > page will make the array unnecessarily big. How big is the overhead? In percent / in megabytes? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html