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