linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Question regarding page fault handlers in kernel mappings
@ 2021-01-04 16:38 Andrey Grodzovsky
  2021-01-04 16:56 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Grodzovsky @ 2021-01-04 16:38 UTC (permalink / raw)
  To: linux-mm, majordomo; +Cc: Andrew Morton

Hello, I am AMD developer and I am trying to implement support for on the fly 
graceful graphic card extraction. One issue I am facing is how to avoid accesses 
to physical addresses both in RAM and MMIO from user mode and kernel after 
device is gone. For user accesses (mmap) I use the page fault handler to route 
all RW accesses to dummy zero page. I would like to do the same for kernel side 
mappings both form RAM (kmap) and device IO
(ioremap) but it looks like there is no same mechanism of page fault handlers 
for kernel side mappings.

Am I correct in my understanding ?

Thanks,
Andrey




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-04 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 16:38 Question regarding page fault handlers in kernel mappings Andrey Grodzovsky
2021-01-04 16:56 ` Matthew Wilcox
2021-01-04 20:00   ` Andrey Grodzovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox