From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from www.sr71.net ([198.145.64.142] helo=blackbird.sr71.net) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UQmHw-0004t6-Dv for kexec@lists.infradead.org; Fri, 12 Apr 2013 22:17:45 +0000 Message-ID: <51688803.8020401@sr71.net> Date: Fri, 12 Apr 2013 15:17:39 -0700 From: Dave Hansen MIME-Version: 1.0 Subject: Re: [PATCH 5/5] kexec: X86: Pass memory ranges via e820 table instead of memmap= boot parameter References: <1365683207-42425-1-git-send-email-trenn@suse.de> <1365683207-42425-6-git-send-email-trenn@suse.de> <5166D18A.7090800@zytor.com> <20130412143104.GA4301@redhat.com> <5168208B.7050107@zytor.com> In-Reply-To: <5168208B.7050107@zytor.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: "H. Peter Anvin" Cc: "kexec@lists.infradead.org" , Linux Kernel Mailing List , Cliff Wickman , Simon Horman , "Eric W. Biederman" , Yinghai Lu , Thomas Renninger , Vivek Goyal On 04/12/2013 07:56 AM, H. Peter Anvin wrote: > On 04/12/2013 07:31 AM, Vivek Goyal wrote: >>> I also have to admit that I don't see the difference between /dev/mem >>> and /dev/oldmem, as the former allows access to memory ranges outside >>> the ones used by the current kernel, which is what the oldmem device >>> seems to be intended to od. It varies from arch to arch of course. But, /dev/mem has restrictions on it, like CONFIG_STRICT_DEVMEM or the ARCH_HAS_VALID_PHYS_ADDR_RANGE. There's a lot of stuff that depends on it, *and* folks have tried to fix it up so that it's not _as_ blatant of a way to completely screw your system. /dev/mem also tries to be nice to arches that have restrictions like: > /* > * On ia64 if a page has been mapped somewhere as > * uncached, then it must also be accessed uncached > * by the kernel or data corruption may occur > */ I think /dev/oldmem isn't so nice and could actually cause some real problems if used on ia64 where the cached/uncached accesses are mixed. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec