From: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
To: linux-mm@kvack.org, majordomo@kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: Question regarding page fault handlers in kernel mappings
Date: Mon, 4 Jan 2021 11:38:38 -0500 [thread overview]
Message-ID: <d511840d-50af-44bd-92db-876180c503a5@amd.com> (raw)
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
next reply other threads:[~2021-01-04 16:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-04 16:38 Andrey Grodzovsky [this message]
2021-01-04 16:56 ` Matthew Wilcox
2021-01-04 20:00 ` Andrey Grodzovsky
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=d511840d-50af-44bd-92db-876180c503a5@amd.com \
--to=andrey.grodzovsky@amd.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=majordomo@kvack.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