(Oliver and David, I added you to CC, since I recall you were planning
for user space tracing in mmiotrace.)
On Tue, 10 Feb 2009 14:42:56 -0800
Jeremy Fitzhardinge <jeremy@goop.org> wrote:
Okay, will look into those, but it also means I need to record which
one I am dealing with.
This is good to know. So far these are kernel mappings, as they are all
created by ioremap*(), but there are plans to extend mmiotrace to
trace IO-mappings accessed from user space. Do you have hints for that?
OTOH, we are always dealing with PCI IO-mem-mappings, so would those ever
be not present, excluding the mmiotrace case?
Well, Stuart already found out that the kernel ioremap*()'ed pages might
not really be present, there are some fixes coming up to mmiotrace to
cope with that. The plan is to restore the state of the pte like it was
before mmiotrace cleared the _PAGE_PRESENT flag, and if the same
instruction and address faults again, fall through to the normal page
fault handling. How can/will this fail? And if it is a user page?
Oh, we are on x86/x86_64 only.
Thanks.
--
Pekka Paalanen
http://www.iki.fi/pq/
--