> On 03/10/19 17:42, Jerome Glisse wrote: > > All that is needed is to make sure that vm_normal_page() will see > > those pte (inside the process that is mirroring the other process) as > > special which is the case either because insert_pfn() mark the pte as > > special or the kvm device driver which control the vm_operation struct > > set a > > find_special_page() callback that always return NULL, or the vma has > > either VM_PFNMAP or VM_MIXEDMAP set (which is the case with > insert_pfn). > > > > So you can keep the existing kvm code unmodified. > > Great, thanks. And KVM is already able to handle > VM_PFNMAP/VM_MIXEDMAP, so that should work. This means setting VM_PFNMAP/VM_MIXEDMAP on the anon VMA that acts as the VM's system RAM. Will it have any side effects?