On Tue, May 02, 2023 at 11:32:57AM -0400, Peter Xu wrote:
quoted
How does s390 avoid mmu notifiers without having lots of problems?? It
is not really optional to hook the invalidations if you need to build
a shadow page table..
Totally no idea on s390 details, but.. per my read above, if the firmware
needs to make sure the page is always available (so no way to fault it in
on demand), which means a longterm pinning seems appropriate here.
Then if pinned a must, there's no need for mmu notifiers (as the page will
simply not be invalidated anyway)?
And what if someone deliberately changes the mapping? memory hotplug
in the VM, or whatever?
We have ways to deal with this class of stuff in kvm and in
iommufd/vfio - this does not.
Jason