> The KVM MMU notifier exists so that nothing (including mirroring) needs to > know that there is KVM on the other side. Any interaction between KVM > page tables and VMAs must be mediated by MMU notifiers, anything else is > unacceptable. > > If it is possible to invoke the MMU notifiers around the calls to insert_pfn, > that of course would be perfect. Looks to me like a work-around. Any reason why insert_pfn() can't do set_pte_at_notify() so it triggers the KVM MMU notifier instead?