All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cong Wang <amwang@redhat.com>
To: Dave Anderson <anderson@redhat.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 00/10] Enhance /dev/mem to allow read/write of arbitrary physical addresses
Date: Tue, 21 Jun 2011 10:52:38 +0800	[thread overview]
Message-ID: <4E000776.7000504@redhat.com> (raw)
In-Reply-To: <818132268.99935.1308576273046.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>

于 2011年06月20日 21:24, Dave Anderson 写道:
>> On Mon, Jun 20, 2011 at 10:42:47, Amerigo Wang<amwang@redhat.com>  wrote:
>>> On Fri, Jun 17, 2011 at 5:55 PM, Petr Tesarik<ptesarik@suse.cz>  wrote:
>>> Dne Pá 17. června 2011 11:30:32 Ingo Molnar napsal(a):
>>>> * Petr Tesarik<ptesarik@suse.cz>  wrote:
>>>>> This patch series enhances /dev/mem, so that read and write is
>>>>> possible at any address. The patchset includes actual
>>>>> implementation for x86.
>>>>
>>>> This series lacks a description of why this is desired.
>>>
>>> Hi Ingo,
>>>
>>>> My strong opinion is that it's not desired at all: /dev/mem never
>>>> worked beyond 4G addresses so by today it has become largely obsolete
>>>> and is on the way out really.
>>>>
>>>> I'm aware of these current /dev/mem uses:
>>>>
>>>>   - Xorg maps below 4G non-RAM addresses and the video BIOS
>>>>
>>>>   - It used to have some debugging role but these days kexec and kgdb
>>>>     has largely taken over that role - partly due to the 4G limit.
>>>
>>> It is still used as a "memory source" by Dave Anderson's crash utility for
>>> live examination of a running system. Redhat has "overcome" the /dev/mem
>>> deficiencies by writing an out-of-tree re-implementation of /dev/mem, which
>>> uses /dev/crash instead. As it is an "unnecessary duplication of an existing
>>> driver", this method was rejected by the project manager here at SUSE.
>>>
>>> The suggested alternative was to enhance (or fix) the existing driver. Without
>>> this patch series there is no way to access high memory. In conjunction with
>>> CONFIG_HIGHPTE, it makes the crash utility near to useless on anything with
>>> high memory, because crash can no longer translate virtual to physical
>>> addresses.
>>>
>>
>> How about /proc/kcore? AFAIK, it can access highmem, but Dave didn't consider
>> it for some reason.
>
> I don't know what you mean by I "didn't consider it", because
> the crash utility does support using /proc/kcore as an alternative
> live memory source.

Sorry, I recall that in our last discussion you didn't
mention this. But it is good to know that crash supports this!

>
> The problem is that /proc/kcore can only access highmem if it
> is mapped as kernel virtual address.  So it cannot read 32-bit
> highmem PTE's, user-space memory, etc.
>

Hmm, looking at the code, you are right, it only has
low memory in kernel space.

But what's the problem of adding highmem into kcore? :-/

Thanks.

  reply	other threads:[~2011-06-21  2:52 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-20 13:24 [PATCH 00/10] Enhance /dev/mem to allow read/write of arbitrary physical addresses Dave Anderson
2011-06-21  2:52 ` Cong Wang [this message]
2011-06-21 13:03   ` Dave Anderson
  -- strict thread matches above, loose matches on Subject: below --
2011-06-17  8:38 Petr Tesarik
2011-06-17  8:38 ` Petr Tesarik
2011-06-17  8:38 ` Petr Tesarik
2011-06-17  9:30 ` Ingo Molnar
2011-06-17  9:30   ` Ingo Molnar
2011-06-17  9:41   ` Russell King - ARM Linux
2011-06-17  9:41     ` Russell King - ARM Linux
2011-06-17  9:55   ` Petr Tesarik
2011-06-17  9:55     ` Petr Tesarik
2011-06-17  9:55     ` Petr Tesarik
2011-06-20  2:42     ` Américo Wang
2011-06-20  2:42       ` Américo Wang
2011-06-27  7:46       ` Petr Tesarik
2011-06-27  7:46         ` Petr Tesarik
2011-06-19 23:02   ` Ryan Mallon
2011-06-19 23:02     ` Ryan Mallon
2011-06-19 23:44     ` H. Peter Anvin
2011-06-19 23:44       ` H. Peter Anvin
2011-06-20  7:41       ` Ingo Molnar
2011-06-20  7:41         ` Ingo Molnar
2011-06-20 15:59         ` H. Peter Anvin
2011-06-20 15:59           ` H. Peter Anvin
2011-06-20 16:40           ` Ingo Molnar
2011-06-20 16:40             ` Ingo Molnar
2011-06-20 16:44             ` H. Peter Anvin
2011-06-20 16:44               ` H. Peter Anvin
2011-06-21  6:55           ` Srivatsa Vaddagiri
2011-06-21  6:55             ` Srivatsa Vaddagiri
2011-06-20  0:42     ` Matthew Wilcox
2011-06-20  0:42       ` Matthew Wilcox
2011-06-20  0:46       ` Ryan Mallon
2011-06-20  0:46         ` Ryan Mallon
2011-06-20  0:52         ` Matthew Wilcox
2011-06-20  0:52           ` Matthew Wilcox
2011-06-20  1:02           ` Ryan Mallon
2011-06-20  1:02             ` Ryan Mallon
2011-06-20  7:31     ` Ingo Molnar
2011-06-20  7:31       ` Ingo Molnar
2011-06-20  8:03       ` Ryan Mallon
2011-06-20  8:03         ` Ryan Mallon
2011-06-20 17:10     ` Ray Lee
2011-06-20 17:10       ` Ray Lee
2011-06-29  9:05   ` Petr Tesarik
2011-06-29  9:05     ` Petr Tesarik
2011-06-29  9:05     ` Petr Tesarik
2011-07-01 12:58     ` Ingo Molnar
2011-07-01 12:58       ` Ingo Molnar
2011-07-01 13:43       ` Petr Tesarik
2011-07-01 13:43         ` Petr Tesarik
2011-07-01 13:43         ` Petr Tesarik
2011-07-01 13:47       ` Christoph Hellwig
2011-07-01 13:47         ` Christoph Hellwig
2011-07-01 14:37         ` Ingo Molnar
2011-07-01 14:37           ` Ingo Molnar
2011-07-01 14:41           ` Christoph Hellwig
2011-07-01 14:41             ` Christoph Hellwig
2011-07-01 14:46             ` Ingo Molnar
2011-07-01 14:46               ` Ingo Molnar
2011-07-01 14:54               ` Petr Tesarik
2011-07-01 14:54                 ` Petr Tesarik
2011-07-01 14:54                 ` Petr Tesarik
2011-07-01 15:36                 ` Ingo Molnar
2011-07-01 15:36                   ` Ingo Molnar
2011-07-01 16:00                   ` H. Peter Anvin
2011-07-01 16:00                     ` H. Peter Anvin
2011-07-01 16:13                     ` Ingo Molnar
2011-07-01 16:13                       ` Ingo Molnar
2011-07-01 19:34                       ` Petr Tesarik
2011-07-01 19:34                         ` Petr Tesarik
2011-07-01 19:34                         ` Petr Tesarik
2011-07-01 19:56                         ` Ingo Molnar
2011-07-01 19:56                           ` Ingo Molnar
2011-07-01 20:44                           ` Petr Tesarik
2011-07-01 20:44                             ` Petr Tesarik
2011-07-01 20:44                             ` Petr Tesarik
2011-07-03 19:46                             ` Ingo Molnar
2011-07-03 19:46                               ` Ingo Molnar
2011-07-05 17:49                               ` Matthew Garrett
2011-07-05 17:49                                 ` Matthew Garrett
2011-07-05 17:56                                 ` H. Peter Anvin
2011-07-05 17:56                                   ` H. Peter Anvin
2011-07-05 22:34                                 ` H. Peter Anvin
2011-07-05 22:34                                   ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E000776.7000504@redhat.com \
    --to=amwang@redhat.com \
    --cc=anderson@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.