From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx195.postini.com [74.125.245.195]) by kanga.kvack.org (Postfix) with SMTP id C872A6B003C for ; Mon, 1 Jul 2013 07:58:09 -0400 (EDT) From: Vladimir Davydov Subject: [PATCH RFC 07/13] mm: PRAM: preserve persistent memory at boot Date: Mon, 1 Jul 2013 15:57:42 +0400 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, criu@openvz.org, devel@openvz.org, xemul@parallels.com, khorenko@parallels.com Persistent memory preservation is done by reserving memory pages belonging to PRAM at early boot so that they will not be recycled. If memory reservation fails for some reason (e.g. memory region is busy), persistent memory will be lost. Currently, PRAM preservation is only implemented for x86. --- arch/x86/kernel/setup.c | 2 + arch/x86/mm/init_32.c | 4 + arch/x86/mm/init_64.c | 4 + include/linux/pram.h | 8 ++ mm/Kconfig | 1 + mm/pram.c | 203 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 222 insertions(+) diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index fae9134..caf1b29 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -69,6 +69,7 @@ #include #include #include +#include #include