From: Bernhard Walle <bwalle@suse.de>
To: linux-ia64@vger.kernel.org
Subject: Re: BINIT and physical address
Date: Tue, 14 Aug 2007 21:36:28 +0000 [thread overview]
Message-ID: <20070814213628.GA825@suse.de> (raw)
In-Reply-To: <32209efe0708131042p68748b3el85d3ec4d76864244@mail.gmail.com>
* Luck, Tony <tony.luck@intel.com> [2007-08-14 23:10]:
> But there isn't a user-mode accessible way to convert them to
> physical addresses.
Well, there is a way (indirectly).
Because there's /dev/mem, any userspace program can expose the page tables of
the kernel. If you have debugging information of the kernel available, you can
use the crash utility (http://people.redhat.com/~anderson/) which is normally
used to analyse dump files in the running system.
$ crash -s
crash> vtop 0xa00000020b520000
VIRTUAL PHYSICAL
a00000020b520000 a3078494000
PAGE DIRECTORY: a000000100708000
PGD: a000000100708000 => 30030ac000
PUD: e0000030030ac000 => 3006d54000
PMD: e000003006d54828 => 63003f44000
PTE: e000063003f46a40 => 100a3078494661
PAGE: a3078494000
PTE PHYSICAL FLAGS
100a3078494661 a3078494000 (P|MA_WB|PL_0|AR_RWX|A|D|ED)
PAGE PHYSICAL MAPPING INDEX CNT FLAGS
a0007ffb2ffcc018 a3078494000 ------- ----- 0 500000000000000
Of course it may be easier to use a simple kernel module. ;-)
Thanks,
Bernhard
next prev parent reply other threads:[~2007-08-14 21:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-13 17:42 BINIT and physical address Natalie Protasevich
2007-08-14 21:10 ` Luck, Tony
2007-08-14 21:36 ` Bernhard Walle [this message]
2007-08-15 19:12 ` Natalie Protasevich
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=20070814213628.GA825@suse.de \
--to=bwalle@suse.de \
--cc=linux-ia64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox